mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-09 13:47:08 +00:00
Add golang
This commit is contained in:
parent
41476a1ef9
commit
6d358e2641
17
mkgo
Executable file
17
mkgo
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
DIR=/tmp/dwarf-portable-executable
|
||||||
|
mkdir -p $DIR
|
||||||
|
curl -L https://golang.org/$(curl -sL https://golang.org/dl | grep -wo dl/go.\*linux-amd64.tar.gz | head -n1) | tar xz -C$DIR
|
||||||
|
|
||||||
|
cat > $DIR/go/AppRun << 'EOF'
|
||||||
|
#!/bin/sh
|
||||||
|
HERE=$(dirname $(readlink -f "${0}"))
|
||||||
|
export LD_LIBRARY_PATH="${HERE}":$PATH
|
||||||
|
"${HERE}"/bin/go $@
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x $DIR/go/AppRun
|
||||||
|
|
||||||
|
appdwarf $DIR/go
|
||||||
|
mv go.sh go
|
||||||
|
rm -rf $DIR/go
|
Loading…
Reference in a new issue