mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-10 00:46:30 +00:00
12 lines
307 B
Bash
Executable file
12 lines
307 B
Bash
Executable file
#!/bin/sh
|
|
APP=${0#./mk}
|
|
DIR=/tmp/appdwarf/$APP
|
|
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 "$APP"
|
|
rm -rf "$DIR"
|