mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-23 14:00:21 +00:00
Updated macOS app metadata in osx/Info.plist.in:
Raised LSMinimumSystemVersion to 11.0. Aligned CFBundleIdentifier with project naming (net.zoite.Zoitechat). Kept version placeholders (@VERSION@) in CFBundleGetInfoString, CFBundleShortVersionString, and CFBundleVersion so they map cleanly via template substitution. Confirmed icon/document declarations still point to zoitechat.icns and zct/hct extensions. Made Info.plist generation deterministic in bundling workflow by updating osx/makebundle.sh: Force script execution from its own directory for stable relative paths. Always render Info.plist from Info.plist.in before bundling. Use a single explicit version source: VERSION env var or fallback to meson.build project version. Use LC_ALL=C substitution and atomic temp-file move for stable output behavior.
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>zoitechat.icns</string>
|
<string>zoitechat.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>org.zoitechat</string>
|
<string>net.zoite.Zoitechat</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
@@ -41,6 +41,6 @@
|
|||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>10.4</string>
|
<string>11.0</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
||||||
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
BUNDLE_DEF="zoitechat.bundle"
|
BUNDLE_DEF="zoitechat.bundle"
|
||||||
APP_NAME="ZoiteChat.app"
|
APP_NAME="ZoiteChat.app"
|
||||||
|
|
||||||
@@ -27,6 +30,19 @@ fi
|
|||||||
rm -rf "$APP_NAME"
|
rm -rf "$APP_NAME"
|
||||||
rm -f ./*.app.zip
|
rm -f ./*.app.zip
|
||||||
|
|
||||||
|
|
||||||
|
# Keep Info.plist generation deterministic by always rendering from template
|
||||||
|
# using a single, explicit version source.
|
||||||
|
VERSION_STRING="${VERSION:-$(sed -n "s/^ version: '\([^']*\)',$/\1/p" ../meson.build | head -n1)}"
|
||||||
|
if [ -z "$VERSION_STRING" ]; then
|
||||||
|
echo "error: unable to determine VERSION_STRING for Info.plist" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
TMP_PLIST="Info.plist.tmp"
|
||||||
|
LC_ALL=C sed "s/@VERSION@/$VERSION_STRING/g" Info.plist.in > "$TMP_PLIST"
|
||||||
|
mv -f "$TMP_PLIST" Info.plist
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
$BUNDLER_CMD "$BUNDLE_DEF"
|
$BUNDLER_CMD "$BUNDLE_DEF"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user