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)

12
assets/Info.plist Normal file
View File

@ -0,0 +1,12 @@
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version=\"1.0\">
<dict>
<key>CFBundleExecutable</key>
<string>ecload-tui</string>
<key>CFBundleIdentifier</key>
<string>ch.vanwa.ecload</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>__VERSION__</string>
</dict>
</plist>