diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-12-19 22:35:58 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2020-01-29 01:29:49 -0500 |
| commit | 46da97fba53d488cfd807021504de081fcd8fe56 (patch) | |
| tree | dc98de30d27d4a6ac99f051e90e849fe8f1e0a70 /bin/build-distribution-archives | |
| parent | 2eb072987eafb6276fa7bbc15816d2d733b7bd93 (diff) | |
mac build
Diffstat (limited to 'bin/build-distribution-archives')
| -rwxr-xr-x | bin/build-distribution-archives | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives index d1a30014..4aa83edf 100755 --- a/bin/build-distribution-archives +++ b/bin/build-distribution-archives @@ -2,18 +2,9 @@ # TRAVIS_BRANCH is the branch name or the name of the tag. VERSION="$(echo ${TRAVIS_BRANCH:-${GITHUB_REF}} | tr / -)" -OS="${TRAVIS_OS_NAME:-$(uname)}" +OS="${TRAVIS_OS_NAME:-${BUILD:-$(uname)}}" 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 @@ -31,13 +22,6 @@ for d in inx/*; do cp $d/*.inx dist cd dist - if [ "$BUILD" = "windows" ]; then - echo - python -m zipfile -c ../artifacts/inkstitch-${VERSION}-win32-${lang}.zip * - elif [ "$BUILD" = "osx" ]; then - tar zcf ../artifacts/inkstitch-${VERSION}-${OS}-${MACVERSION}-${ARCH}-$lang.tar.gz * - else - tar zcf ../artifacts/inkstitch-${VERSION}-${OS}-${ARCH}-$lang.tar.gz * - fi + python -m zipfile -c ../artifacts/inkstitch-${VERSION}-${OS}-${lang}.zip * cd .. done |
