mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-10 00:46:30 +00:00
14 lines
352 B
Bash
Executable file
14 lines
352 B
Bash
Executable file
#!/bin/sh
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
|
DIR=/tmp/appdwarf
|
|
mkdir -p $DIR
|
|
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
|
|
|
|
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/go
|
|
sed 5s#/#/bin/# $DIR/go/AppRun
|
|
|
|
appdwarf $DIR/go
|
|
mv $DIR/go.sh go
|
|
rm -rf $DIR/go
|