(macOS) Improved Apple compliance for the Info.plist file.

This commit is contained in:
Leon Styhre 2022-06-27 18:40:58 +02:00
parent 1dcc728291
commit 8dfe472d0c
2 changed files with 9 additions and 1 deletions

View file

@ -18,8 +18,14 @@
<string>EmulationStation Desktop Edition</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>ESDE</string>
<key>CFBundleShortVersionString</key>
<string>2.0.0-alpha</string>
<key>CFBundleVersion</key>
<string>2.0.0-alpha</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.games</string>
<key>LSMinimumSystemVersion</key>

View file

@ -95,8 +95,10 @@ NEWSTRING="<string>EmulationStation Desktop Edition ${1}.${2}.${3}"
cat $MODIFYFILE | sed s/"${MODIFYSTRING}"/"${NEWSTRING}"/ > $TEMPFILE
mv $TEMPFILE $MODIFYFILE
MODIFYSTRING=$(grep "<string>${OLDVERSION}" $MODIFYFILE)
MODIFYSTRING=$(grep -m1 "<string>${OLDVERSION}" $MODIFYFILE)
MODIFYSTRING=$(echo $MODIFYSTRING | sed s/".........$"//)
# Adding the suffix is not fully compliant with the Apple documentation but seems to be working.
# It's not used for the release builds anyway so it should hopefully not be an issue.
NEWSTRING="<string>${1}.${2}.${3}${SUFFIX}"
cat $MODIFYFILE | sed s/"${MODIFYSTRING}"/"${NEWSTRING}"/ > $TEMPFILE