From fcd13815d31f4b927e498fbbb4305fb29a959acf Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 26 Sep 2021 11:42:17 +0200 Subject: One Version for all Languages (#1346) Co-authored-by: Lex Neva --- bin/build-distribution-archives | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'bin/build-distribution-archives') diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives index 6402122b..68dd46cf 100755 --- a/bin/build-distribution-archives +++ b/bin/build-distribution-archives @@ -5,30 +5,23 @@ OS="${BUILD:-$(uname)}" ARCH="$(uname -m)" if [ "$BUILD" = "osx" ]; then - cp -a images/examples palettes symbols fonts LICENSE VERSION dist/inkstitch.app/Contents + cp -a images/examples palettes symbols fonts inx LICENSE VERSION dist/inkstitch.app/Contents cp -a icons locales print dist/inkstitch.app/Contents/MacOS cp -a electron/build/mac dist/inkstitch.app/Contents/electron rm -rf dist/inkstitch/ else - cp -a images/examples palettes symbols fonts LICENSE VERSION dist/inkstitch + cp -a images/examples palettes symbols fonts inx LICENSE VERSION dist/inkstitch cp -a icons locales print dist/inkstitch/bin cp -a electron/build/*-unpacked dist/inkstitch/electron fi mkdir artifacts +cd dist -for d in inx/*; do - lang=${d%.*} - lang=${lang#*/} - cp $d/*.inx dist - - cd dist - 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 +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}.zip *; +else + python -m zipfile -c ../artifacts/inkstitch-${VERSION}-${OS}.zip *; +fi -- cgit v1.2.3