15 lines
514 B
PowerShell
15 lines
514 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
|
|
Compress-Archive -Path fba -Update -DestinationPath maingate.zip
|
|
Compress-Archive -Path template -Update -DestinationPath maingate.zip
|