Compare commits

..

2 Commits

Author SHA1 Message Date
93c13ba92f houston package 생성 스크립트 추가 2023-06-13 20:13:03 +09:00
ed5b4c06e9 ignore 업데이트 2023-06-13 20:12:37 +09:00
3 changed files with 28 additions and 21 deletions

4
.gitignore vendored
View File

@ -1,2 +1,6 @@
*.log *.log
*.exe *.exe
houston
houston.zip
config.json
.vscode/

21
.vscode/launch.json vendored
View File

@ -1,21 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "houston",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"env": {
},
"args" : [
"-port=8080",
"-client"
]
}
]
}

24
make_houston_package.ps1 Normal file
View 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 ..