2016-11-29 23:41:23 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
MESSAGE="$(git log --format=%B -n 1 HEAD)"
|
|
|
|
case ${MESSAGE} in
|
|
|
|
Bump* ) export ELECTRON_RELEASE=1 ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
set +x
|
2016-11-30 17:28:10 +00:00
|
|
|
|
2016-11-29 23:41:23 +00:00
|
|
|
export ELECTRON_GITHUB_TOKEN="$BUILD_ELECTRON_ELECTRON_GITHUB_TOKEN"
|
2016-11-30 17:28:10 +00:00
|
|
|
export ELECTRON_S3_BUCKET="$BUILD_ELECTRON_ELECTRON_S3_BUCKET"
|
2016-11-29 23:41:23 +00:00
|
|
|
export ELECTRON_S3_ACCESS_KEY="$BUILD_ELECTRON_ELECTRON_S3_ACCESS_KEY"
|
|
|
|
export ELECTRON_S3_SECRET_KEY="$BUILD_ELECTRON_ELECTRON_S3_SECRET_KEY"
|
|
|
|
|
2016-11-30 17:28:10 +00:00
|
|
|
if [[ -z "${ELECTRON_RELEASE}" ]]; then
|
|
|
|
echo "Generating Linux $TARGET_ARCH debug build"
|
|
|
|
else
|
|
|
|
echo "Generating Linux $TARGET_ARCH release build"
|
|
|
|
fi
|
2016-11-29 23:41:23 +00:00
|
|
|
|
2016-11-30 17:28:10 +00:00
|
|
|
set -x
|
2016-11-29 23:41:23 +00:00
|
|
|
|
|
|
|
script/cibuild
|