app version string for .plist

This commit is contained in:
minjaesong
2023-08-25 21:26:51 +09:00
parent 89846db5d3
commit cc2c841f76
4 changed files with 16 additions and 6 deletions

View File

@@ -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/

View File

@@ -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/

View File

@@ -5,4 +5,3 @@
<key>CFBundleDisplayName</key><string>Terrarum</string>
<key>CFBundleName</key><string>Terrarum</string>
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
</dict></plist>

View File

@@ -5,4 +5,3 @@
<key>CFBundleDisplayName</key><string>Terrarum</string>
<key>CFBundleName</key><string>Terrarum</string>
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
</dict></plist>