build macOS app bundle
This commit is contained in:
parent
9b5238af59
commit
57ee482a4e
7
Makefile
7
Makefile
@ -30,6 +30,13 @@ dist/%.tar.gz:
|
|||||||
for FILE in $(TMP)/*; do mv $$FILE $$FILE.exe; done \
|
for FILE in $(TMP)/*; do mv $$FILE $$FILE.exe; done \
|
||||||
fi
|
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) .
|
tar -zcf $@ -C $(TMP) .
|
||||||
|
|
||||||
@rm -rf $(TMP)
|
@rm -rf $(TMP)
|
||||||
|
12
assets/Info.plist
Normal file
12
assets/Info.plist
Normal 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>
|
Loading…
Reference in New Issue
Block a user