mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-14 07:36:06 +09:00
app version string for .plist
This commit is contained in:
@@ -6,6 +6,7 @@ SRCFILES="terrarummac_arm"
|
|||||||
APPDIR="./TerrarumMac.arm.app"
|
APPDIR="./TerrarumMac.arm.app"
|
||||||
DESTDIR="out/$APPDIR"
|
DESTDIR="out/$APPDIR"
|
||||||
RUNTIME="runtime-osx-arm"
|
RUNTIME="runtime-osx-arm"
|
||||||
|
VERSIONNUMFILE="../out/build_version_string.autogen"
|
||||||
|
|
||||||
if [ ! -d "../assets_release" ]; then
|
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
|
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
|
# Prepare an application
|
||||||
cp AppIcon.icns $DESTDIR/Contents/Resources/AppIcon.icns
|
cp AppIcon.icns $DESTDIR/Contents/Resources/AppIcon.icns
|
||||||
cp $SRCFILES/Info.plist $DESTDIR/Contents/
|
|
||||||
cp $SRCFILES/Terrarum.sh $DESTDIR/Contents/MacOS/
|
cp $SRCFILES/Terrarum.sh $DESTDIR/Contents/MacOS/
|
||||||
chmod +x $DESTDIR/Contents/MacOS/Terrarum.sh
|
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
|
# Copy over a Java runtime
|
||||||
mkdir $DESTDIR/Contents/MacOS/out
|
mkdir $DESTDIR/Contents/MacOS/out
|
||||||
cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/out/
|
cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/out/
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ SRCFILES="terrarummac_x86"
|
|||||||
APPDIR="./TerrarumMac.x86.app"
|
APPDIR="./TerrarumMac.x86.app"
|
||||||
DESTDIR="out/$APPDIR"
|
DESTDIR="out/$APPDIR"
|
||||||
RUNTIME="runtime-osx-x86"
|
RUNTIME="runtime-osx-x86"
|
||||||
|
VERSIONNUMFILE="../out/build_version_string.autogen"
|
||||||
|
|
||||||
if [ ! -d "../assets_release" ]; then
|
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
|
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
|
# Prepare an application
|
||||||
cp AppIcon.icns $DESTDIR/Contents/Resources/AppIcon.icns
|
cp AppIcon.icns $DESTDIR/Contents/Resources/AppIcon.icns
|
||||||
cp $SRCFILES/Info.plist $DESTDIR/Contents/
|
|
||||||
cp $SRCFILES/Terrarum.sh $DESTDIR/Contents/MacOS/
|
cp $SRCFILES/Terrarum.sh $DESTDIR/Contents/MacOS/
|
||||||
chmod +x $DESTDIR/Contents/MacOS/Terrarum.sh
|
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
|
# Copy over a Java runtime
|
||||||
mkdir $DESTDIR/Contents/MacOS/out
|
mkdir $DESTDIR/Contents/MacOS/out
|
||||||
cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/out/
|
cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/out/
|
||||||
|
|||||||
@@ -5,4 +5,3 @@
|
|||||||
<key>CFBundleDisplayName</key><string>Terrarum</string>
|
<key>CFBundleDisplayName</key><string>Terrarum</string>
|
||||||
<key>CFBundleName</key><string>Terrarum</string>
|
<key>CFBundleName</key><string>Terrarum</string>
|
||||||
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
|
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
|
||||||
</dict></plist>
|
|
||||||
|
|||||||
@@ -5,4 +5,3 @@
|
|||||||
<key>CFBundleDisplayName</key><string>Terrarum</string>
|
<key>CFBundleDisplayName</key><string>Terrarum</string>
|
||||||
<key>CFBundleName</key><string>Terrarum</string>
|
<key>CFBundleName</key><string>Terrarum</string>
|
||||||
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
|
<key>CFBundleIconFile</key><string>AppIcon.icns</string>
|
||||||
</dict></plist>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user