mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-12 06:14:59 +00:00
refactor: rewrite all build scripts
* supports generate rpm package on Linux * use a global VERSION file
This commit is contained in:
parent
de5a60c6dd
commit
7f7e5ef5f8
11 changed files with 102 additions and 54 deletions
|
@ -1,13 +1,13 @@
|
|||
$version = Get-Content .\VERSION
|
||||
|
||||
if (Test-Path SourceGit) {
|
||||
Remove-Item SourceGit -Recurse -Force
|
||||
}
|
||||
|
||||
if (Test-Path SourceGit.win-x64.zip) {
|
||||
Remove-Item SourceGit.win-x64.zip -Force
|
||||
}
|
||||
Remove-Item *.zip -Force
|
||||
|
||||
dotnet publish ..\src\SourceGit.csproj -c Release -r win-x64 -o SourceGit -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
||||
|
||||
Remove-Item SourceGit\*.pdb -Force
|
||||
|
||||
Compress-Archive -Path SourceGit -DestinationPath SourceGit.win-x64.zip
|
||||
Compress-Archive -Path SourceGit -DestinationPath "sourcegit_$version.win-x64.zip"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue