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:
Vishwas Shashidhar
2020-12-14 19:15:37 +05:30
committed by GitHub
parent c547175d42
commit 538f2e92a0
3 changed files with 211 additions and 63 deletions

View File

@@ -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