fix: SDA-2010 (Mac and Linux build scripts) (#983)

* Linux: Install new packages to support latest SDA dependency

* Fix build-linux scripts

An issue with if condition and install gulp-cli deps

* Fix build-mac scripts

An issue with if condition and install gulp-cli deps
This commit is contained in:
Kiran Niranjan 2020-05-01 10:33:56 +05:30 committed by GitHub
parent 90bbfc526e
commit a20c196490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ fi
if ! [ -x "$(command -v gulp)" ]; then
echo 'Gulp does not exist! Installing it!' >&2
npm install -g gulp
npm install -g gulp gulp-cli
fi
if ! [ -x "$(command -v snyk)" ]; then
@ -81,7 +81,7 @@ sed -i -e "s/\"buildNumber\"[[:space:]]*\:[[:space:]]*\".*\"/\"buildNumber\":\"
echo "Setting package version in pre install script to ${PKG_VERSION}"
sed -i -e "s/CURRENT_VERSION=APP_VERSION/CURRENT_VERSION=${PKG_VERSION}/g" ./installer/mac/preinstall.sh
if [ -z "$EXPIRY_PERIOD" ]; then
if [ "$EXPIRY_PERIOD" == "0" ] || [ "$EXPIRY_PERIOD" == 0 ]; then
echo 'Expiry period not set, so, not creating expiry for the build'
else
gulp setExpiry --period ${EXPIRY_PERIOD}

View File

@ -37,7 +37,7 @@ fi
if ! [ -x "$(command -v gulp)" ]; then
echo 'Gulp does not exist! Installing it!' >&2
npm install -g gulp
npm install -g gulp gulp-cli
fi
if ! [ -x "$(command -v snyk)" ]; then
@ -98,7 +98,7 @@ echo "Setting package version in pre install script to ${PKG_VERSION}"
sed -i -e "s/CURRENT_VERSION=APP_VERSION/CURRENT_VERSION=${PKG_VERSION}/g" ./installer/mac/preinstall.sh
# Set expiry period for TTL builds
if [ -z "$EXPIRY_PERIOD" ]; then
if [ "$EXPIRY_PERIOD" == "0" ] || [ "$EXPIRY_PERIOD" == 0 ]; then
echo 'Expiry period not set, so, not creating expiry for the build'
else
gulp setExpiry --period ${EXPIRY_PERIOD}