mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-10-31 20:14:27 +00:00
12 lines
327 B
Bash
Executable file
12 lines
327 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
|