houston package 생성 스크립트 추가
This commit is contained in:
24
make_houston_package.ps1
Normal file
24
make_houston_package.ps1
Normal file
@ -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 ..
|
||||
Reference in New Issue
Block a user