2024-03-19 11:24:08 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-04-17 11:00:48 +08:00
|
|
|
version=`cat ../VERSION`
|
2024-04-16 17:29:36 +08:00
|
|
|
|
|
|
|
rm -rf SourceGit.app *.zip
|
2024-03-19 11:24:08 +08:00
|
|
|
|
|
|
|
mkdir -p SourceGit.app/Contents/Resources
|
2024-04-16 17:29:36 +08:00
|
|
|
cp resources/app/App.icns SourceGit.app/Contents/Resources/App.icns
|
2024-04-16 20:32:18 +08:00
|
|
|
sed "s/SOURCE_GIT_VERSION/${version}/g" resources/app/App.plist > SourceGit.app/Contents/Info.plist
|
2024-03-19 11:24:08 +08:00
|
|
|
|
|
|
|
mkdir -p SourceGit.app/Contents/MacOS
|
2024-04-02 20:00:33 +08:00
|
|
|
dotnet publish ../src/SourceGit.csproj -c Release -r osx-arm64 -o SourceGit.app/Contents/MacOS -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
2024-04-16 17:29:36 +08:00
|
|
|
zip sourcegit_${version}.osx-arm64.zip -r SourceGit.app -x "*/*\.dsym/*"
|
2024-03-19 11:24:08 +08:00
|
|
|
|
|
|
|
rm -rf SourceGit.app/Contents/MacOS
|
|
|
|
|
|
|
|
mkdir -p SourceGit.app/Contents/MacOS
|
2024-04-02 20:00:33 +08:00
|
|
|
dotnet publish ../src/SourceGit.csproj -c Release -r osx-x64 -o SourceGit.app/Contents/MacOS -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
2024-04-16 17:29:36 +08:00
|
|
|
zip sourcegit_${version}.osx-x64.zip -r SourceGit.app -x "*/*\.dsym/*"
|
|
|
|
|
2024-04-17 11:00:48 +08:00
|
|
|
rm -rf SourceGit.app
|