2023-06-14 01:51:19 +09:00
|
|
|
# $ErrorActionPreference = 'SilentlyContinue'
|
|
|
|
|
|
2023-06-21 17:14:10 +09:00
|
|
|
$CurBranch = git branch --show-current
|
|
|
|
|
|
|
|
|
|
Remove-Item maingate.zip -Force -Recurse -ErrorAction SilentlyContinue
|
2023-06-14 01:51:19 +09:00
|
|
|
|
|
|
|
|
$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
|
2023-10-24 14:04:54 +09:00
|
|
|
Compress-Archive -Path fba -Update -DestinationPath maingate.zip
|
|
|
|
|
Compress-Archive -Path template -Update -DestinationPath maingate.zip
|