Do not modify package after it was built

This commit is contained in:
DarkPhoenix
2023-12-04 23:11:34 +06:00
parent da7a4a2df0
commit c230480464
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,5 @@ echo "Building distributive..."
python3 -m PyInstaller -y --clean dist_assets/mac/pyfa.spec
echo "Compressing distributive..."
cd dist
/usr/libexec/PlistBuddy -c "Add :CFBundleVersion string ${PYFA_VERSION}" "pyfa.app/Contents/Info.plist" # Add missing
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${PYFA_VERSION}" "pyfa.app/Contents/Info.plist" # Modify existing
zip -r "pyfa-$PYFA_VERSION-mac.zip" pyfa.app
md5 -r "pyfa-$PYFA_VERSION-mac.zip"