mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00:00
build: update build scripts
This commit is contained in:
parent
5f02f95e62
commit
17b0d7ddcb
5 changed files with 16 additions and 11 deletions
|
@ -9,13 +9,13 @@ 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 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||
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 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||
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
|
||||
|
|
|
@ -6,7 +6,7 @@ if (Test-Path SourceGit) {
|
|||
|
||||
Remove-Item *.zip -Force
|
||||
|
||||
dotnet publish ..\src\SourceGit.csproj -c Release -r win-arm64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||
dotnet publish ..\src\SourceGit.csproj -c Release -r win-arm64 -o SourceGit
|
||||
|
||||
Remove-Item SourceGit\*.pdb -Force
|
||||
|
||||
|
@ -16,7 +16,7 @@ if (Test-Path SourceGit) {
|
|||
Remove-Item SourceGit -Recurse -Force
|
||||
}
|
||||
|
||||
dotnet publish ..\src\SourceGit.csproj -c Release -r win-x64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||
dotnet publish ..\src\SourceGit.csproj -c Release -r win-x64 -o SourceGit
|
||||
|
||||
Remove-Item SourceGit\*.pdb -Force
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ DOTNET_PROJECT_PATH="../../../src/SourceGit.csproj"
|
|||
# Additional useful arguments include:
|
||||
# "-p:DebugType=None -p:DebugSymbols=false -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=link"
|
||||
# Refer: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish
|
||||
DOTNET_PUBLISH_ARGS="-c Release -p:DebugType=None -p:DebugSymbols=false -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained"
|
||||
DOTNET_PUBLISH_ARGS="-c Release -p:DebugType=None -p:DebugSymbols=false"
|
||||
|
||||
|
||||
########################################
|
||||
|
@ -137,4 +137,4 @@ PKG_APPIMAGE_SUFFIX=".AppImage"
|
|||
APPIMAGETOOL_COMMAND="appimagetool"
|
||||
|
||||
# Internal use only. Used for compatibility between conf and script. Do not modify.
|
||||
CONF_IMPL_VERSION=1
|
||||
CONF_IMPL_VERSION=1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue