2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2022-01-14 18:41:46 +00:00
|
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
2022-03-24 22:25:24 +00:00
|
|
|
DIR=/tmp/appdwarf
|
2021-05-15 21:50:14 +00:00
|
|
|
mkdir -p $DIR
|
2022-03-25 22:40:58 +00:00
|
|
|
LINK=$(curl -sL https://go.dev/dl | grep -om1 dl/go.\*linux-amd64.tar.gz)
|
|
|
|
curl -L https://go.dev/"$LINK" | tar xz -C$DIR
|
2021-05-15 21:50:14 +00:00
|
|
|
|
2022-04-13 21:10:51 +00:00
|
|
|
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/go
|
2022-06-11 19:02:34 +00:00
|
|
|
sed -i '4i export GOPROXY=direct' $DIR/go/AppRun
|
2022-06-24 15:57:13 +00:00
|
|
|
sed -i 5s#/#/bin/# $DIR/go/AppRun
|
2021-05-15 21:50:14 +00:00
|
|
|
|
|
|
|
appdwarf $DIR/go
|
2022-01-01 18:11:03 +00:00
|
|
|
mv $DIR/go.sh go
|
2021-05-15 21:50:14 +00:00
|
|
|
rm -rf $DIR/go
|