mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
app version string for .plist
This commit is contained in:
@@ -6,6 +6,7 @@ SRCFILES="terrarummac_arm"
|
||||
APPDIR="./TerrarumMac.arm.app"
|
||||
DESTDIR="out/$APPDIR"
|
||||
RUNTIME="runtime-osx-arm"
|
||||
VERSIONNUMFILE="../out/build_version_string.autogen"
|
||||
|
||||
if [ ! -d "../assets_release" ]; then
|
||||
echo "'assets_release' does not exist; prepare the assets for the release and put them into the assets_release directory, exiting now." >&2
|
||||
@@ -21,10 +22,15 @@ mkdir $DESTDIR/Contents/Resources
|
||||
|
||||
# Prepare an application
|
||||
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
|
||||
|
||||
# Prepare an plist
|
||||
cp $SRCFILES/Info.plist $DESTDIR/Contents/
|
||||
printf "\n<key>CFBundleVersion</key><string>" >> $DESTDIR/Contents/Info.plist
|
||||
cat $VERSIONNUMFILE >> $DESTDIR/Contents/Info.plist
|
||||
printf "</string>\n</dict></plist>" >> $DESTDIR/Contents/Info.plist
|
||||
|
||||
# Copy over a Java runtime
|
||||
mkdir $DESTDIR/Contents/MacOS/out
|
||||
cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/out/
|
||||
|
||||
@@ -6,6 +6,7 @@ SRCFILES="terrarummac_x86"
|
||||
APPDIR="./TerrarumMac.x86.app"
|
||||
DESTDIR="out/$APPDIR"
|
||||
RUNTIME="runtime-osx-x86"
|
||||
VERSIONNUMFILE="../out/build_version_string.autogen"
|
||||
|
||||
if [ ! -d "../assets_release" ]; then
|
||||
echo "'assets_release' does not exist; prepare the assets for the release and put them into the assets_release directory, exiting now." >&2
|
||||
@@ -21,10 +22,15 @@ mkdir $DESTDIR/Contents/Resources
|
||||
|
||||
# Prepare an application
|
||||
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
|
||||
|
||||
# Prepare an plist
|
||||
cp $SRCFILES/Info.plist $DESTDIR/Contents/
|
||||
printf "\n<key>CFBundleVersion</key><string>" >> $DESTDIR/Contents/Info.plist
|
||||
cat $VERSIONNUMFILE >> $DESTDIR/Contents/Info.plist
|
||||
printf "</string>\n</dict></plist>" >> $DESTDIR/Contents/Info.plist
|
||||
|
||||
# Copy over a Java runtime
|
||||
mkdir $DESTDIR/Contents/MacOS/out
|
||||
cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/out/
|
||||
|
||||
@@ -4,5 +4,4 @@
|
||||
<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>
|
||||
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
|
||||
@@ -4,5 +4,4 @@
|
||||
<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>
|
||||
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
|
||||
Reference in New Issue
Block a user