🐛 Install to writable location on CI

This commit is contained in:
Ben Chatelain 2019-01-06 15:04:22 -07:00
parent 50574d5e61
commit a25fa17cda
2 changed files with 10 additions and 2 deletions

2
Jenkinsfile vendored
View file

@ -34,7 +34,7 @@ pipeline {
sh 'script/bootstrap'
sh 'script/build'
sh 'script/archive'
sh 'script/package'
sh 'script/package build/distribution-tmp'
}
}
stage('Test') {

View file

@ -20,8 +20,16 @@ mkdir -p $INSTALL_TEMPORARY_FOLDER
VERSION=$(agvtool what-marketing-version -terse1)
# Final destination.
PREFIX=/usr/local
# Override default prefix path with optional 1st arg
if test -n "$1"; then
PREFIX="$1"
fi
# Run Xcode's install process
script/install
script/install "$PREFIX"
echo "==> 📦 Assemble an installer package"