mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
96d4150d26
* remove dotnet-tool.json because the project does not rely on any dotnet tools. * remove Directory.Build.props because the solution has only one project. * move src/SourceGit to src. It's not needed to put all sources into a subfolder of src since there's only one project.
17 lines
821 B
Bash
17 lines
821 B
Bash
#!/bin/sh
|
|
|
|
rm -rf SourceGit.app
|
|
|
|
mkdir -p SourceGit.app/Contents/Resources
|
|
cp resources/App.plist SourceGit.app/Contents/Info.plist
|
|
cp resources/App.icns SourceGit.app/Contents/Resources/App.icns
|
|
|
|
mkdir -p SourceGit.app/Contents/MacOS
|
|
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
|
|
zip SourceGit.osx-arm64.zip -r SourceGit.app -x "*/en/*" -x "*/zh/*" -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 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
|
zip SourceGit.osx-x64.zip -r SourceGit.app -x "*/en/*" -x "*/zh/*" -x "*/*\.dsym/*"
|