mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-28 03:06:38 +08:00
feat: verify license responses with public key
This commit is contained in:
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
param(
|
||||
[string]$Output = "bin/mediastation-go-protected.exe",
|
||||
[switch]$Garble
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$env:CGO_ENABLED = "0"
|
||||
|
||||
New-Item -ItemType Directory -Force -Path (Split-Path -Parent $Output) | Out-Null
|
||||
|
||||
if ($Garble) {
|
||||
if (-not (Get-Command garble -ErrorAction SilentlyContinue)) {
|
||||
throw "garble is not installed. Run: go install mvdan.cc/garble@latest"
|
||||
}
|
||||
garble -literals -tiny build -trimpath -ldflags="-s -w -buildid=" -o $Output ./cmd/server
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
go build -trimpath -buildvcs=false -ldflags="-s -w -buildid=" -o $Output ./cmd/server
|
||||
exit $LASTEXITCODE
|
||||
Reference in New Issue
Block a user