diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-04-20 21:46:28 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2019-04-20 21:46:28 -0400 |
| commit | d61b99891285ff879cbacdb8e23f9c025efc6a09 (patch) | |
| tree | 748f0ff73ce0b1a5459f8e2c4f963e87ffe8090e /Makefile | |
| parent | 09c46e0fb499987899a2e67819099eba2c121487 (diff) | |
| parent | e717fa140d4d2b46bb4884999b945c9a875ef59d (diff) | |
Merge remote-tracking branch 'origin/master' into lexelby/electron
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -8,7 +8,6 @@ ARCH:=$(shell uname -m) dist: locales inx bin/build-dist $(EXTENSIONS) bin/build-electron - cp inx/*.inx dist cp -a images/examples dist/inkstitch cp -a palettes dist/inkstitch cp -a symbols dist/inkstitch @@ -21,11 +20,16 @@ dist: locales inx else \ cp -a electron/dist/*-unpacked dist/inkstitch/electron; \ fi - if [ "$$BUILD" = "windows" ]; then \ - cd dist; zip -r ../inkstitch-$(VERSION)-win32.zip *; \ - else \ - cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH).tar.gz *; \ - fi + for d in inx/*; do \ + lang=$${d%.*}; \ + lang=$${lang#*/}; \ + cp $$d/*.inx dist; \ + if [ "$$BUILD" = "windows" ]; then \ + cd dist; zip -r ../inkstitch-$(VERSION)-win32-$$lang.zip *; cd ..; \ + else \ + cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH)-$$lang.tar.gz *; cd ..; \ + fi; \ + done distclean: rm -rf build dist inx locales *.spec *.tar.gz *.zip electron/node_modules electron/dist |
