From 13fe706716a383e12b47c0458324580b6b12b84c Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Fri, 15 Nov 2019 13:09:53 -0500 Subject: windows build github action --- bin/build-distribution-archives | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'bin/build-distribution-archives') diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives index bbc61996..d1a30014 100755 --- a/bin/build-distribution-archives +++ b/bin/build-distribution-archives @@ -1,14 +1,16 @@ +#!/bin/bash + # TRAVIS_BRANCH is the branch name or the name of the tag. -VERSION="$(echo ${TRAVIS_BRANCH} | tr / -)" -OS="${TRAVIS_OS_NAME}" +VERSION="$(echo ${TRAVIS_BRANCH:-${GITHUB_REF}} | tr / -)" +OS="${TRAVIS_OS_NAME:-$(uname)}" ARCH="$(uname -m)" MACVERSION="${TRAVIS_OSX_IMAGE}" -if [ ${MACVERSION} = "xcode9.2" ]; then +if [ "${MACVERSION}" = "xcode9.2" ]; then MACVERSION="sierra" -elif [ ${MACVERSION} = "xcode9.4" ]; then +elif [ "${MACVERSION}" = "xcode9.4" ]; then MACVERSION="high_sierra" -elif [ ${MACVERSION} = "xcode10.2" ]; then +elif [ "${MACVERSION}" = "xcode10.2" ]; then MACVERSION="mojave" fi @@ -21,6 +23,8 @@ else cp -a electron/dist/*-unpacked dist/inkstitch/electron fi +mkdir artifacts + for d in inx/*; do lang=${d%.*} lang=${lang#*/} @@ -28,11 +32,12 @@ for d in inx/*; do cd dist if [ "$BUILD" = "windows" ]; then - zip -r ../inkstitch-${VERSION}-win32-${lang}.zip * + echo + python -m zipfile -c ../artifacts/inkstitch-${VERSION}-win32-${lang}.zip * elif [ "$BUILD" = "osx" ]; then - tar zcf ../inkstitch-${VERSION}-${OS}-${MACVERSION}-${ARCH}-$lang.tar.gz * + tar zcf ../artifacts/inkstitch-${VERSION}-${OS}-${MACVERSION}-${ARCH}-$lang.tar.gz * else - tar zcf ../inkstitch-${VERSION}-${OS}-${ARCH}-$lang.tar.gz * + tar zcf ../artifacts/inkstitch-${VERSION}-${OS}-${ARCH}-$lang.tar.gz * fi cd .. done -- cgit v1.2.3 From 46da97fba53d488cfd807021504de081fcd8fe56 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 19 Dec 2019 22:35:58 -0500 Subject: mac build --- bin/build-distribution-archives | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'bin/build-distribution-archives') 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 -- cgit v1.2.3 From 6573b167958ff1de882466acc455d2dfed767fe1 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Mon, 27 Jan 2020 22:22:22 -0500 Subject: remove obselete TRAVIS_ references --- bin/build-distribution-archives | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin/build-distribution-archives') diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives index 4aa83edf..0fcadb59 100755 --- a/bin/build-distribution-archives +++ b/bin/build-distribution-archives @@ -1,8 +1,7 @@ #!/bin/bash -# TRAVIS_BRANCH is the branch name or the name of the tag. -VERSION="$(echo ${TRAVIS_BRANCH:-${GITHUB_REF}} | tr / -)" -OS="${TRAVIS_OS_NAME:-${BUILD:-$(uname)}}" +VERSION="$(echo ${GITHUB_REF} | tr / -)" +OS="${BUILD:-$(uname)}" ARCH="$(uname -m)" cp -a images/examples palettes symbols fonts dist/inkstitch -- cgit v1.2.3 From 6c81429111727cb6bccfa29354396c7782b65e2b Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 30 Jan 2020 23:57:17 -0500 Subject: fix fonts on windows --- bin/build-distribution-archives | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'bin/build-distribution-archives') diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives index 0fcadb59..825db510 100755 --- a/bin/build-distribution-archives +++ b/bin/build-distribution-archives @@ -17,10 +17,16 @@ mkdir artifacts for d in inx/*; do lang=${d%.*} - lang=${lang#*/} + lang=${lang#*/} cp $d/*.inx dist cd dist - python -m zipfile -c ../artifacts/inkstitch-${VERSION}-${OS}-${lang}.zip * - cd .. + if [ "$BUILD" = "windows" ]; then + # The python zipfile command line utility can't handle directories + # containing files with UTF-8 names on Windows, so we use 7-zip instead. + 7z a ../artifacts/inkstitch-${VERSION}-${OS}-${lang}.zip * + else + python -m zipfile -c ../artifacts/inkstitch-${VERSION}-${OS}-${lang}.zip * + fi + cd .. done -- cgit v1.2.3