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__ + +