diff --git a/buildapp/build_app_mac_arm.sh b/buildapp/build_app_mac_arm.sh index bdd425b21..b37a8fdbc 100755 --- a/buildapp/build_app_mac_arm.sh +++ b/buildapp/build_app_mac_arm.sh @@ -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 "\nCFBundleVersion" >> $DESTDIR/Contents/Info.plist +cat $VERSIONNUMFILE >> $DESTDIR/Contents/Info.plist +printf "\n" >> $DESTDIR/Contents/Info.plist + # Copy over a Java runtime mkdir $DESTDIR/Contents/MacOS/out cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/out/ diff --git a/buildapp/build_app_mac_x86.sh b/buildapp/build_app_mac_x86.sh index dde0fd1e9..24d698e90 100755 --- a/buildapp/build_app_mac_x86.sh +++ b/buildapp/build_app_mac_x86.sh @@ -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 "\nCFBundleVersion" >> $DESTDIR/Contents/Info.plist +cat $VERSIONNUMFILE >> $DESTDIR/Contents/Info.plist +printf "\n" >> $DESTDIR/Contents/Info.plist + # Copy over a Java runtime mkdir $DESTDIR/Contents/MacOS/out cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/out/ diff --git a/buildapp/terrarummac_arm/Info.plist b/buildapp/terrarummac_arm/Info.plist index 98007e222..1b3380386 100644 --- a/buildapp/terrarummac_arm/Info.plist +++ b/buildapp/terrarummac_arm/Info.plist @@ -4,5 +4,4 @@ CFBundleExecutableTerrarum.sh CFBundleDisplayNameTerrarum CFBundleNameTerrarum -CFBundleIconFileAppIcon.icns - +CFBundleIconFileAppIcon.icns \ No newline at end of file diff --git a/buildapp/terrarummac_x86/Info.plist b/buildapp/terrarummac_x86/Info.plist index 98007e222..1b3380386 100644 --- a/buildapp/terrarummac_x86/Info.plist +++ b/buildapp/terrarummac_x86/Info.plist @@ -4,5 +4,4 @@ CFBundleExecutableTerrarum.sh CFBundleDisplayNameTerrarum CFBundleNameTerrarum -CFBundleIconFileAppIcon.icns - +CFBundleIconFileAppIcon.icns \ No newline at end of file