mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
准备打包
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION=0.6.0
|
||||
VERSION=0.6.1
|
||||
|
||||
docker build -t natpass -f contrib/build/Dockerfile .
|
||||
docker run --rm \
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION=0.6.0
|
||||
VERSION=0.6.1
|
||||
|
||||
docker build -t natpass -f contrib/build/Dockerfile .
|
||||
docker run --rm \
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
cd $(dirname $(realpath $0))/../../
|
||||
|
||||
BUILD_VERSION=${BUILD_VERSION:-0.0.0}
|
||||
|
||||
HASH=`git log -n1 --pretty=format:%h`
|
||||
REVERSION=`git log --oneline|wc -l|tr -d ' '`
|
||||
BUILD_TIME=`date +'%Y-%m-%d %H:%M:%S'`
|
||||
|
||||
@@ -192,8 +192,7 @@ func build(t target) {
|
||||
env = append(env, "CGO_ENABLED=1")
|
||||
}
|
||||
args = append(args,
|
||||
path.Join("code", "client", "main.go"),
|
||||
path.Join("code", "client", "connect.go"))
|
||||
path.Join("code", "client", "main.go"))
|
||||
cmd = exec.Command("go", args...)
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
||||
Reference in New Issue
Block a user