summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2019-07-31 17:32:39 +0200
committerGitHub <noreply@github.com>2019-07-31 17:32:39 +0200
commit604a957c6780fb09f8748b7577a8349efc074005 (patch)
tree5d7191cccabc2a02f81b865434b1527b6aa2ee59 /bin
parent27670996b4ecac97d261f6f9e08c6db18b128429 (diff)
Support various macOS Versions
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-distribution-archives13
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives
index 1015d246..bbc61996 100755
--- a/bin/build-distribution-archives
+++ b/bin/build-distribution-archives
@@ -3,6 +3,15 @@ VERSION="$(echo ${TRAVIS_BRANCH} | tr / -)"
OS="${TRAVIS_OS_NAME}"
ARCH="$(uname -m)"
+MACVERSION="${TRAVIS_OSX_IMAGE}"
+if [ ${MACVERSION} = "xcode9.2" ]; then
+ MACVERSION="sierra"
+elif [ ${MACVERSION} = "xcode9.4" ]; then
+ MACVERSION="high_sierra"
+elif [ ${MACVERSION} = "xcode10.2" ]; then
+ MACVERSION="mojave"
+fi
+
cp -a images/examples palettes symbols fonts dist/inkstitch
cp -a icons locales print dist/inkstitch/bin
@@ -20,8 +29,10 @@ for d in inx/*; do
cd dist
if [ "$BUILD" = "windows" ]; then
zip -r ../inkstitch-${VERSION}-win32-${lang}.zip *
+ elif [ "$BUILD" = "osx" ]; then
+ tar zcf ../inkstitch-${VERSION}-${OS}-${MACVERSION}-${ARCH}-$lang.tar.gz *
else
tar zcf ../inkstitch-${VERSION}-${OS}-${ARCH}-$lang.tar.gz *
fi
cd ..
-done \ No newline at end of file
+done