13 lines
377 B
PowerShell
13 lines
377 B
PowerShell
# $ErrorActionPreference = 'SilentlyContinue'
|
|
|
|
$CurBranch = git branch --show-current
|
|
|
|
Remove-Item maingate.zip -Force -Recurse -ErrorAction SilentlyContinue
|
|
|
|
$Env:GOOS="linux"
|
|
$Env:GOARCH="amd64"
|
|
go build -ldflags="-s -w" .
|
|
|
|
Compress-Archive -Path maingate -Update -DestinationPath maingate.zip
|
|
Compress-Archive -Path *-firebase-*.json -Update -DestinationPath maingate.zip
|