mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
update<Build>: update build script for macOS. add build/ and .DS_Store to ignore list
This commit is contained in:
parent
7f20437464
commit
b934049dba
2 changed files with 20 additions and 14 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,5 +2,7 @@
|
||||||
.vs
|
.vs
|
||||||
.vscode
|
.vscode
|
||||||
bin
|
bin
|
||||||
|
build
|
||||||
obj
|
obj
|
||||||
*.user
|
*.user
|
||||||
|
.DS_Store
|
||||||
|
|
|
@ -3,21 +3,25 @@
|
||||||
dotnet publish -c Release -r osx-x64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
dotnet publish -c Release -r osx-x64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||||
dotnet publish -c Release -r osx-arm64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
dotnet publish -c Release -r osx-arm64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||||
|
|
||||||
rm -rf macOS
|
rm -rf build
|
||||||
mkdir -p macOS
|
|
||||||
mkdir -p macOS/x64/SourceGit.app/Contents/MacOS
|
|
||||||
mkdir -p macOS/arm64/SourceGit.app/Contents/MacOS
|
|
||||||
mkdir -p macOS/x64/SourceGit.app/Contents/Resources
|
|
||||||
mkdir -p macOS/arm64/SourceGit.app/Contents/Resources
|
|
||||||
|
|
||||||
cp App.plist macOS/x64/SourceGit.app/Contents/Info.plist
|
mkdir -p build/SourceGit
|
||||||
cp App.plist macOS/arm64/SourceGit.app/Contents/Info.plist
|
mkdir -p build/SourceGit/x64/SourceGit.app/Contents/MacOS
|
||||||
|
mkdir -p build/SourceGit/arm64/SourceGit.app/Contents/MacOS
|
||||||
|
mkdir -p build/SourceGit/x64/SourceGit.app/Contents/Resources
|
||||||
|
mkdir -p build/SourceGit/arm64/SourceGit.app/Contents/Resources
|
||||||
|
|
||||||
cp App.icns macOS/x64/SourceGit.app/Contents/Resources/App.icns
|
cp App.plist build/SourceGit/x64/SourceGit.app/Contents/Info.plist
|
||||||
cp App.icns macOS/arm64/SourceGit.app/Contents/Resources/App.icns
|
cp App.plist build/SourceGit/arm64/SourceGit.app/Contents/Info.plist
|
||||||
|
|
||||||
cp -r bin/Release/net8.0/osx-x64/publish/* macOS/x64/SourceGit.app/Contents/MacOS/
|
cp App.icns build/SourceGit/x64/SourceGit.app/Contents/Resources/App.icns
|
||||||
cp -r bin/Release/net8.0/osx-arm64/publish/* macOS/arm64/SourceGit.app/Contents/MacOS/
|
cp App.icns build/SourceGit/arm64/SourceGit.app/Contents/Resources/App.icns
|
||||||
|
|
||||||
rm -rf macOS/x64/SourceGit.app/Contents/MacOS/SourceGit.dsym
|
cp -r bin/Release/net8.0/osx-x64/publish/* build/SourceGit/x64/SourceGit.app/Contents/MacOS/
|
||||||
rm -rf macOS/arm64/SourceGit.app/Contents/MacOS/SourceGit.dsym
|
cp -r bin/Release/net8.0/osx-arm64/publish/* build/SourceGit/arm64/SourceGit.app/Contents/MacOS/
|
||||||
|
|
||||||
|
rm -rf build/SourceGit/x64/SourceGit.app/Contents/MacOS/SourceGit.dsym
|
||||||
|
rm -rf build/SourceGit/arm64/SourceGit.app/Contents/MacOS/SourceGit.dsym
|
||||||
|
|
||||||
|
cd build
|
||||||
|
zip SourceGit.macOS.zip -r SourceGit
|
Loading…
Reference in a new issue