summaryrefslogtreecommitdiff
path: root/bin/build-distribution-archives
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2019-04-30 20:27:52 -0400
committerGitHub <noreply@github.com>2019-04-30 20:27:52 -0400
commit8152c63ee393de68c7c7f53858792d8385c82463 (patch)
treec5089a63555329434b894f0825d104b5de91437c /bin/build-distribution-archives
parent5b6923fe9d8d5f3afb0ef298ad34708e735fc5e5 (diff)
parent953990739b742bdad5221c39b35d47fd530502bb (diff)
use electron for Print PDF UI (#432)
electron proof of concept
Diffstat (limited to 'bin/build-distribution-archives')
-rwxr-xr-xbin/build-distribution-archives27
1 files changed, 27 insertions, 0 deletions
diff --git a/bin/build-distribution-archives b/bin/build-distribution-archives
new file mode 100755
index 00000000..1015d246
--- /dev/null
+++ b/bin/build-distribution-archives
@@ -0,0 +1,27 @@
+# TRAVIS_BRANCH is the branch name or the name of the tag.
+VERSION="$(echo ${TRAVIS_BRANCH} | tr / -)"
+OS="${TRAVIS_OS_NAME}"
+ARCH="$(uname -m)"
+
+cp -a images/examples palettes symbols fonts dist/inkstitch
+cp -a icons locales print dist/inkstitch/bin
+
+if [ "$BUILD" = "osx" ]; then
+ cp -a electron/dist/mac dist/inkstitch/electron
+else
+ cp -a electron/dist/*-unpacked dist/inkstitch/electron
+fi
+
+for d in inx/*; do
+ lang=${d%.*}
+ lang=${lang#*/}
+ cp $d/*.inx dist
+
+ cd dist
+ if [ "$BUILD" = "windows" ]; then
+ zip -r ../inkstitch-${VERSION}-win32-${lang}.zip *
+ else
+ tar zcf ../inkstitch-${VERSION}-${OS}-${ARCH}-$lang.tar.gz *
+ fi
+ cd ..
+done \ No newline at end of file