add windows binary

v4
vinllen 5 years ago
parent 3a53adde26
commit 30447beab7
  1. 10
      build.sh
  2. 1
      src/redis-shake/main/main.go
  3. 12
      src/vendor/vendor.json

@ -39,8 +39,14 @@ info=$info","$t
echo "[ BUILD RELEASE ]"
run_builder='go build -v'
$run_builder -ldflags "-X $info" -o "${output}/redis-shake" "./src/redis-shake/main/main.go"
echo "build successfully!"
goos=(linux darwin windows)
for g in "${goos[@]}"; do
export GOOS=$g
echo "try build goos=$g"
$run_builder -ldflags "-X $info" -o "${output}/redis-shake.$g" "./src/redis-shake/main/main.go"
echo "build $g successfully!"
done
# copy scripts
cp scripts/start.sh ${output}/

@ -27,6 +27,7 @@ import (
"redis-shake/configure"
"redis-shake/metric"
"redis-shake/restful"
"github.com/gugemichael/nimo4go"
logRotate "gopkg.in/natefinch/lumberjack.v2"
)

@ -63,10 +63,10 @@
"revisionTime": "2019-05-17T06:12:10Z"
},
{
"checksumSHA1": "63olncsMU/K9MMKxt4zuKSyoNg0=",
"checksumSHA1": "52vjznwP2OHubLvZkLCUCC9Gp5o=",
"path": "github.com/gugemichael/nimo4go",
"revision": "cbcfac21339d78efaed9ed09dcba7296d9976118",
"revisionTime": "2018-09-04T03:08:18Z"
"revision": "32795d80f83ab8c37b47589c5068dfbb14545c34",
"revisionTime": "2019-09-04T07:30:57Z"
},
{
"checksumSHA1": "bKMZjd2wPw13VwoE7mBeSv5djFA=",
@ -164,6 +164,12 @@
"revision": "0799101ddfdb7d2bc9d47948f8a0cc17d23a216e",
"revisionTime": "2019-08-12T11:22:58Z"
},
{
"checksumSHA1": "U4rR1I0MXcvJz3zSxTp3hb3Y0I0=",
"path": "golang.org/x/sys/windows",
"revision": "43c01164e93111c754a278ab423ba01063c44917",
"revisionTime": "2019-07-29T18:45:48Z"
},
{
"checksumSHA1": "TM3Neoy1xRAKyZYMGzKc41sDFW4=",
"path": "gopkg.in/natefinch/lumberjack.v2",

Loading…
Cancel
Save