From a25fa17cda72b682c680b76bc574730b228d1479 Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Sun, 6 Jan 2019 15:04:22 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Install=20to=20writable=20locati?= =?UTF-8?q?on=20on=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- script/package | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d86d866..04c4976 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') { diff --git a/script/package b/script/package index 4a1983e..8ad6daf 100755 --- a/script/package +++ b/script/package @@ -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"