mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-13 02:12:54 +00:00
14 lines
334 B
Bash
Executable file
14 lines
334 B
Bash
Executable file
#!/bin/sh
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
|
DIR=/tmp/appdwarf/dotnet
|
|
mkdir -p $DIR
|
|
LINK=https://dotnetcli.azureedge.net/dotnet/Runtime
|
|
VER=$(curl $LINK/LTS/latest.version)
|
|
curl "$LINK/$VER/dotnet-runtime-$VER-linux-x64.tar.gz" | tar xz -C$DIR
|
|
|
|
ln -s dotnet $DIR/AppRun
|
|
|
|
appdwarf $DIR "$@"
|
|
mv $DIR.sh dotnet
|
|
rm -rf $DIR
|