mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
update<Build>: macOS build toolchain
This commit is contained in:
parent
ef82525323
commit
fce873d58c
3 changed files with 47 additions and 1 deletions
BIN
src/App.icns
Normal file
BIN
src/App.icns
Normal file
Binary file not shown.
26
src/App.plist
Normal file
26
src/App.plist
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>App.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sourcegit-scm.sourcegit</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>SourceGit</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>8.0.0</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.12</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>SourceGit</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>8.0</string>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,3 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
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
|
||||
|
||||
rm -rf macOS
|
||||
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
|
||||
cp App.plist macOS/arm64/SourceGit.app/Contents/Info.plist
|
||||
|
||||
cp App.icns macOS/x64/SourceGit.app/Contents/Resources/App.icns
|
||||
cp App.icns macOS/arm64/SourceGit.app/Contents/Resources/App.icns
|
||||
|
||||
cp -r bin/Release/net8.0/osx-x64/publish/* macOS/x64/SourceGit.app/Contents/MacOS/
|
||||
cp -r bin/Release/net8.0/osx-arm64/publish/* macOS/arm64/SourceGit.app/Contents/MacOS/
|
||||
|
||||
rm -f macOS/x64/SourceGit.app/Contents/MacOS/*.dsym
|
||||
rm -f macOS/arm64/SourceGit.app/Contents/MacOS/*.dsym
|
||||
|
|
Loading…
Reference in a new issue