Compare commits
2 Commits
c1847ee3e1
...
93c13ba92f
| Author | SHA1 | Date | |
|---|---|---|---|
| 93c13ba92f | |||
| ed5b4c06e9 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,6 @@
|
|||||||
*.log
|
*.log
|
||||||
*.exe
|
*.exe
|
||||||
|
houston
|
||||||
|
houston.zip
|
||||||
|
config.json
|
||||||
|
.vscode/
|
||||||
21
.vscode/launch.json
vendored
21
.vscode/launch.json
vendored
@ -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
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