mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
mac app building with icons
This commit is contained in:
BIN
buildapp/AppIcon.icns
Normal file
BIN
buildapp/AppIcon.icns
Normal file
Binary file not shown.
@@ -16,9 +16,10 @@ rm -rf $DESTDIR || true
|
||||
mkdir $DESTDIR
|
||||
mkdir $DESTDIR/Contents
|
||||
mkdir $DESTDIR/Contents/MacOS
|
||||
mkdir $DESTDIR/Contents/Resources
|
||||
|
||||
# Prepare an application
|
||||
cp icns.png $DESTDIR/.icns
|
||||
cp AppIcon.icns $DESTDIR/Contents/Resources/AppIcon.icns
|
||||
cp $SRCFILES/Info.plist $DESTDIR/Contents/
|
||||
cp $SRCFILES/Terrarum.sh $DESTDIR/Contents/MacOS/
|
||||
chmod +x $DESTDIR/Contents/MacOS/Terrarum.sh
|
||||
|
||||
@@ -16,9 +16,10 @@ rm -rf $DESTDIR || true
|
||||
mkdir $DESTDIR
|
||||
mkdir $DESTDIR/Contents
|
||||
mkdir $DESTDIR/Contents/MacOS
|
||||
mkdir $DESTDIR/Contents/Resources
|
||||
|
||||
# Prepare an application
|
||||
cp icns.png $DESTDIR/.icns
|
||||
cp AppIcon.icns $DESTDIR/Contents/Resources/AppIcon.icns
|
||||
cp $SRCFILES/Info.plist $DESTDIR/Contents/
|
||||
cp $SRCFILES/Terrarum.sh $DESTDIR/Contents/MacOS/
|
||||
chmod +x $DESTDIR/Contents/MacOS/Terrarum.sh
|
||||
|
||||
BIN
buildapp/icns.png
LFS
BIN
buildapp/icns.png
LFS
Binary file not shown.
@@ -56,6 +56,14 @@ Terrarum.*.app
|
||||
|
||||
Hide the `.jar` within the subdirectory; users will think this file is the main executable and will try to execute it using whatever JVM they may (or may not) have.
|
||||
|
||||
### OSX .icns creation
|
||||
|
||||
0. Do this on a real macOS
|
||||
1. Create a folder `icon.iconset`, then cp the .png file as `icon_512x512.png`
|
||||
2. On Terminal, `iconutil -c icns icon.iconset`
|
||||
|
||||
https://gist.github.com/jamieweavis/b4c394607641e1280d447deed5fc85fc
|
||||
|
||||
#### Some Notes
|
||||
|
||||
- Windows EXE creation is not there yet. Maybe use one of [these?](https://sourceforge.net/projects/batch-compiler/)
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
<key>CFBundleExecutable</key><string>Terrarum.sh</string>
|
||||
<key>CFBundleDisplayName</key><string>Terrarum</string>
|
||||
<key>CFBundleName</key><string>Terrarum</string>
|
||||
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
|
||||
</dict></plist>
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
<key>CFBundleExecutable</key><string>Terrarum.sh</string>
|
||||
<key>CFBundleDisplayName</key><string>Terrarum</string>
|
||||
<key>CFBundleName</key><string>Terrarum</string>
|
||||
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
|
||||
</dict></plist>
|
||||
|
||||
Reference in New Issue
Block a user