mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
docs: SDA-2702: generate install instructions pdf for macOS (#1148)
* SDA-2702: generate install instructions - Generate installation instructions for macOS builds * SDA-2702: generate install instructions - Generate installation instructions for macOS builds * SDA-2702: fix build script issue * SDA-2702: fix path and update documentation * SDA-2702: unify documentation * SDA-2702: create targets directory
This commit is contained in:
committed by
GitHub
parent
c547175d42
commit
538f2e92a0
@@ -115,3 +115,22 @@ npm run unpacked-mac
|
||||
# Create .pkg installer
|
||||
echo "Creating .pkg"
|
||||
/usr/local/bin/packagesbuild -v installer/mac/symphony-mac-packager.pkgproj
|
||||
|
||||
if ! [ -x "$(command -v markdown-pdf)" ]; then
|
||||
echo 'Markdown PDF does not exist! Installing it' >&2
|
||||
npm install -g markdown-pdf
|
||||
fi
|
||||
|
||||
ARCHIVE_NAME="${PKG_VERSION}_${PARENT_BUILD_VERSION}"
|
||||
|
||||
echo "Generating PDF for installation instructions"
|
||||
markdown-pdf installer/mac/install_instructions_mac.md
|
||||
|
||||
# Create targets directory
|
||||
mkdir -p targets
|
||||
|
||||
if [ "${EXPIRY_PERIOD}" != "0" ]; then
|
||||
cp installer/mac/install_instructions_mac.pdf "targets/Install-Instructions-macOS-${PKG_VERSION}-${PARENT_BUILD_VERSION}-TTL-${EXPIRY_PERIOD}.pdf"
|
||||
else
|
||||
cp installer/mac/install_instructions_mac.pdf "targets/Install-Instructions-macOS-${PKG_VERSION}-${PARENT_BUILD_VERSION}.pdf"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user