mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
21 lines
744 B
Bash
Executable file
21 lines
744 B
Bash
Executable file
#!/bin/sh
|
|
|
|
version=`cat ../VERSION`
|
|
|
|
rm -rf SourceGit.app *.zip
|
|
|
|
mkdir -p SourceGit.app/Contents/Resources
|
|
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
|
|
|
|
mkdir -p SourceGit.app/Contents/MacOS
|
|
dotnet publish ../src/SourceGit.csproj -c Release -r osx-arm64 -o SourceGit.app/Contents/MacOS
|
|
zip sourcegit_${version}.osx-arm64.zip -r SourceGit.app -x "*/*\.dsym/*"
|
|
|
|
rm -rf SourceGit.app/Contents/MacOS
|
|
|
|
mkdir -p SourceGit.app/Contents/MacOS
|
|
dotnet publish ../src/SourceGit.csproj -c Release -r osx-x64 -o SourceGit.app/Contents/MacOS
|
|
zip sourcegit_${version}.osx-x64.zip -r SourceGit.app -x "*/*\.dsym/*"
|
|
|
|
rm -rf SourceGit.app
|