Support various macOS Versions

pull/504/head
Kaalleen 2019-07-31 17:32:39 +02:00 zatwierdzone przez GitHub
rodzic 27670996b4
commit 604a957c67
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 25 dodań i 1 usunięć

Wyświetl plik

@ -27,6 +27,19 @@ matrix:
if: type != cron AND (tag =~ ^v[0-9.]+$ OR branch != master)
- language: generic
os: osx
osx_image: xcode10.2
sudo: required
env: BUILD=osx
if: type != cron AND (tag =~ ^v[0-9.]+$ OR branch != master)
- language: generic
os: osx
osx_image: xcode9.4
sudo: required
env: BUILD=osx
if: type != cron AND (tag =~ ^v[0-9.]+$ OR branch != master)
- language: generic
os: osx
osx_image: xcode9.2
sudo: required
env: BUILD=osx
if: type != cron AND (tag =~ ^v[0-9.]+$ OR branch != master)

Wyświetl plik

@ -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
done