chore: setup project and scripts
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
export GOTOOLCHAIN=local
|
||||
cd "$(dirname "$0")/.."
|
||||
if command -v go >/dev/null 2>&1; then
|
||||
go env -w GOPROXY=https://goproxy.cn,direct
|
||||
go env -w GOSUMDB=off
|
||||
fi
|
||||
if [ ! -x "./dist/juku_linux_amd64" ]; then
|
||||
echo "找不到 Linux x64 程序,请先运行 ./scripts/build.sh。"
|
||||
exit 1
|
||||
fi
|
||||
exec ./dist/juku_linux_amd64 "$@"
|
||||
Reference in New Issue
Block a user