ci: try to sign macOS package locally

This commit is contained in:
leo 2024-08-21 16:17:19 +08:00
parent 7e4eca9691
commit e1ac596261
No known key found for this signature in database

View file

@ -18,5 +18,7 @@ mkdir -p SourceGit.app/Contents/Resources
mv SourceGit SourceGit.app/Contents/MacOS mv SourceGit SourceGit.app/Contents/MacOS
cp resources/app/App.icns SourceGit.app/Contents/Resources/App.icns cp resources/app/App.icns SourceGit.app/Contents/Resources/App.icns
sed "s/SOURCE_GIT_VERSION/$VERSION/g" resources/app/App.plist > SourceGit.app/Contents/Info.plist sed "s/SOURCE_GIT_VERSION/$VERSION/g" resources/app/App.plist > SourceGit.app/Contents/Info.plist
rm -rf SourceGit.app/Contents/MacOS/SourceGit.dsym
codesign --force --deep --sign - SourceGit.app
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit.app -x "*/*\.dsym/*" zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit.app