build macOS app bundle

This commit is contained in:
Sebastian Hugentobler 2019-05-29 19:32:39 +02:00
parent 9b5238af59
commit 57ee482a4e
2 changed files with 19 additions and 0 deletions

View file

@ -30,6 +30,13 @@ dist/%.tar.gz:
for FILE in $(TMP)/*; do mv $$FILE $$FILE.exe; done \
fi
if [ "$(PLATFORM)" == "darwin" ]; then \
mkdir -p $(TMP)/ecload.app/Contents/MacOS; \
mv $(TMP)/ecload-tui $(TMP)/ecload.app/Contents/MacOS; \
chmod 775 $(TMP)/ecload.app/Contents/MacOS/ecload-tui; \
sed 's/__VERSION__/$(VERSION)/' assets/Info.plist > $(TMP)/ecload.app/Contents/Info.plist ; \
fi
tar -zcf $@ -C $(TMP) .
@rm -rf $(TMP)