2023-06-13 20:13:03 +09:00
|
|
|
# $ErrorActionPreference = 'SilentlyContinue'
|
|
|
|
|
|
|
|
|
|
del houston.zip
|
|
|
|
|
|
|
|
|
|
$Env:GOOS="linux"
|
|
|
|
|
$Env:GOARCH="amd64"
|
2023-11-23 12:36:57 +09:00
|
|
|
|
2025-06-09 12:08:29 +09:00
|
|
|
# go get repositories.action2quare.com/ayo/gocommon
|
|
|
|
|
# go mod tidy
|
2023-11-23 12:36:57 +09:00
|
|
|
|
2023-11-13 11:35:52 +09:00
|
|
|
go build -ldflags="-s -w" -tags=client .
|
2023-06-13 20:13:03 +09:00
|
|
|
|
|
|
|
|
cp houston .\replacer\houston
|
|
|
|
|
cp config.json .\replacer\config.json
|
2025-06-09 12:08:29 +09:00
|
|
|
cp houston.sh .\replacer\houston.sh
|
2023-06-13 20:13:03 +09:00
|
|
|
|
|
|
|
|
cd replacer
|
|
|
|
|
go build -ldflags="-s -w" .
|
|
|
|
|
|
|
|
|
|
Compress-Archive -Path replacer -DestinationPath houston.zip -Force
|
|
|
|
|
Compress-Archive -Path config.json -Update -DestinationPath houston.zip
|
|
|
|
|
Compress-Archive -Path houston -Update -DestinationPath houston.zip
|
2025-06-09 12:08:29 +09:00
|
|
|
Compress-Archive -Path houston.sh -Update -DestinationPath houston.zip
|
2023-06-13 20:13:03 +09:00
|
|
|
|
|
|
|
|
del houston
|
|
|
|
|
del config.json
|
|
|
|
|
del replacer
|
2025-06-09 12:08:29 +09:00
|
|
|
del houston.sh
|
2023-06-13 20:13:03 +09:00
|
|
|
|
|
|
|
|
mv houston.zip ..\houston.zip
|
|
|
|
|
cd ..
|