Implement self-update recovery (T-403)
This commit is contained in:
@@ -84,6 +84,8 @@ Invoke-Step "Test and build modern target with Go 1.25.0" {
|
||||
$env:GOOS = "windows"
|
||||
$env:GOARCH = "amd64"
|
||||
go -C app-modern build -trimpath "-ldflags=-H=windowsgui" -o ../dist/SoftBox.exe ./cmd/softbox
|
||||
Assert-NativeSuccess -Step "Build modern SoftBox"
|
||||
go -C app-modern build -trimpath -o ../dist/SoftBoxUpdater.exe ./cmd/softboxupdater
|
||||
}
|
||||
|
||||
Invoke-Step "Test and build Win7 target with Go 1.20.14" {
|
||||
@@ -97,6 +99,8 @@ Invoke-Step "Test and build Win7 target with Go 1.20.14" {
|
||||
$env:GOOS = "windows"
|
||||
$env:GOARCH = "amd64"
|
||||
go -C app-win7 build -trimpath "-ldflags=-H=windowsgui" -o ../dist/SoftBox-win7.exe ./cmd/softbox
|
||||
Assert-NativeSuccess -Step "Build Win7 SoftBox"
|
||||
go -C app-win7 build -trimpath -o ../dist/SoftBoxUpdater-win7.exe ./cmd/softboxupdater
|
||||
}
|
||||
|
||||
Write-Host "Phase 0 verification passed."
|
||||
|
||||
@@ -54,6 +54,10 @@ GOTOOLCHAIN=go1.25.0 GOWORK="$ROOT_DIR/go.work" CGO_ENABLED=0 \
|
||||
GOOS=windows GOARCH=amd64 \
|
||||
go -C app-modern build -trimpath -ldflags="-H=windowsgui" \
|
||||
-o ../dist/SoftBox.exe ./cmd/softbox
|
||||
GOTOOLCHAIN=go1.25.0 GOWORK="$ROOT_DIR/go.work" CGO_ENABLED=0 \
|
||||
GOOS=windows GOARCH=amd64 \
|
||||
go -C app-modern build -trimpath \
|
||||
-o ../dist/SoftBoxUpdater.exe ./cmd/softboxupdater
|
||||
|
||||
echo "==> Test and build Win7 target with Go 1.20.14"
|
||||
GOTOOLCHAIN=go1.20.14 GOWORK="$ROOT_DIR/app-win7/go.work" CGO_ENABLED=0 \
|
||||
@@ -62,5 +66,9 @@ GOTOOLCHAIN=go1.20.14 GOWORK="$ROOT_DIR/app-win7/go.work" CGO_ENABLED=0 \
|
||||
GOOS=windows GOARCH=amd64 \
|
||||
go -C app-win7 build -trimpath -ldflags="-H=windowsgui" \
|
||||
-o ../dist/SoftBox-win7.exe ./cmd/softbox
|
||||
GOTOOLCHAIN=go1.20.14 GOWORK="$ROOT_DIR/app-win7/go.work" CGO_ENABLED=0 \
|
||||
GOOS=windows GOARCH=amd64 \
|
||||
go -C app-win7 build -trimpath \
|
||||
-o ../dist/SoftBoxUpdater-win7.exe ./cmd/softboxupdater
|
||||
|
||||
echo "Phase 0 verification passed."
|
||||
|
||||
Reference in New Issue
Block a user