mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-08 13:17:24 +00:00
11 lines
357 B
Bash
Executable file
11 lines
357 B
Bash
Executable file
#!/bin/bash
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
|
DIR=/tmp/appdwarf/dotnet
|
|
mkdir -p $DIR
|
|
VER=$(curl https://dotnetcli.azureedge.net/dotnet/Runtime/LTS/latest.version)
|
|
curl https://dotnetcli.azureedge.net/dotnet/Runtime/$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
|