diff --git a/make_houston_package.ps1 b/make_houston_package.ps1 new file mode 100644 index 0000000..07d73e4 --- /dev/null +++ b/make_houston_package.ps1 @@ -0,0 +1,24 @@ +# $ErrorActionPreference = 'SilentlyContinue' + +del houston.zip + +$Env:GOOS="linux" +$Env:GOARCH="amd64" +go build -ldflags="-s -w" . + +cp houston .\replacer\houston +cp config.json .\replacer\config.json + +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 + +del houston +del config.json +del replacer + +mv houston.zip ..\houston.zip +cd ..