mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-28 13:55:00 +00:00
feat: add windows x64 installer build with NSIS (#175)
This commit is contained in:
parent
d3042bbe8d
commit
4eb068e949
4 changed files with 100 additions and 0 deletions
|
@ -21,3 +21,12 @@ dotnet publish ..\src\SourceGit.csproj -c Release -r win-x64 -o SourceGit -p:Pub
|
|||
Remove-Item SourceGit\*.pdb -Force
|
||||
|
||||
Compress-Archive -Path SourceGit -DestinationPath "sourcegit_$version.win-x64.zip"
|
||||
|
||||
# check nsis exist
|
||||
$nsisPath = Join-Path -Path ${env:ProgramFiles(x86)} -ChildPath "NSIS\makensis.exe"
|
||||
if (-not (Test-Path $nsisPath)) {
|
||||
Write-Host "NSIS not found, please install NSIS from https://nsis.sourceforge.io/Download or run 'choco install nsis -y'"
|
||||
exit 1
|
||||
}
|
||||
|
||||
& $nsisPath /DVERSION=$version .\build.windows.installer.nsi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue