mirror of
https://github.com/hansjone/netx.git
synced 2026-10-17 17:03:27 +08:00
Add Windows service, silent auto-update, and code-signing hooks.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
fe9df32024
commit
b639f01c0f
13 changed files with 463 additions and 31 deletions
|
|
@ -3,7 +3,8 @@ param(
|
|||
[switch]$SkipBuild = $false,
|
||||
[switch]$SkipInstaller = $false,
|
||||
[switch]$SkipGitHub = $false,
|
||||
[switch]$Draft = $false
|
||||
[switch]$Draft = $false,
|
||||
[switch]$Sign = $false
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
|
@ -51,6 +52,17 @@ if (-not $SkipInstaller) {
|
|||
}
|
||||
}
|
||||
|
||||
if ($Sign) {
|
||||
$toSign = @()
|
||||
if (Test-Path $setup) { $toSign += $setup }
|
||||
if ($toSign.Count -eq 0) {
|
||||
Write-Host "[WARN] -Sign set but no Setup.exe to sign"
|
||||
} else {
|
||||
Write-Host "==> Signing release artifacts"
|
||||
& powershell -ExecutionPolicy Bypass -File (Join-Path $PSScriptRoot "sign_release.ps1") -Files $toSign
|
||||
}
|
||||
}
|
||||
|
||||
if ($SkipGitHub) {
|
||||
Write-Host "==> Skip GitHub release (-SkipGitHub)"
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue