From 57ee482a4e4901e1f105a7bdfd477265c9b3a44b Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 29 May 2019 19:32:39 +0200 Subject: [PATCH] build macOS app bundle --- Makefile | 7 +++++++ assets/Info.plist | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 assets/Info.plist diff --git a/Makefile b/Makefile index 4a8d332..818cd76 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/assets/Info.plist b/assets/Info.plist new file mode 100644 index 0000000..b5ca2c3 --- /dev/null +++ b/assets/Info.plist @@ -0,0 +1,12 @@ + + + + + CFBundleExecutable + ecload-tui + CFBundleIdentifier + ch.vanwa.ecload + CFBundleInfoDictionaryVersion + __VERSION__ + +