feat(scripts): add new scripts

This commit is contained in:
hexxa 2021-09-14 16:25:09 +08:00 committed by Hexxa
parent 2dc156cd95
commit b82fc6e8af
4 changed files with 57 additions and 0 deletions

15
scripts/build_exec.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
set -o nounset errexit
export QSROOT=`pwd`
rm -r dist && mkdir dist
docker builder prune
# set this for builders behind GFW...
go env -w GOPROXY=https://goproxy.cn,direct
go get -d -v ./...
go get github.com/mitchellh/gox
cd cmd/start
gox \
-osarch="linux/amd64" \
-output "$QSROOT/dist/quickshare/start"