diff --git a/apps/github b/apps/github index 2490d37..ae0088a 100755 --- a/apps/github +++ b/apps/github @@ -1,7 +1,10 @@ #!/bin/bash if ! grep https <<< "$1"; then - set -- "https://github.com/$1" + set -- "https://github.com/$1" +fi +LINK2="$(echo $1/releases | sed 's|github.com|api.github.com/repos|')" +if ! grep github.com <<< "$1"; then + LINK2="$(curl "$1" | grep -o https.\*releases | sed 's|github.com|api.github.com/repos|')" fi -LINK2="$(curl "$1" | grep -o https.\*releases | sed 's|github.com|api.github.com/repos|')" LINK3="$(curl "$LINK2" | grep -v arm64 | grep -om1 https.\*AppImage)" appdwarf "${@:2}" -u "$LINK3" diff --git a/apps/mkdotnet b/apps/mkdotnet new file mode 100755 index 0000000..0490b11 --- /dev/null +++ b/apps/mkdotnet @@ -0,0 +1,10 @@ +#!/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 diff --git a/apps/mkproton b/apps/mkproton index bcc2bca..37be4ac 100755 --- a/apps/mkproton +++ b/apps/mkproton @@ -5,8 +5,8 @@ mkdir -p $DIR LINK="$(curl https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases | grep -om1 http.\*tar.gz)" curl -L "$LINK" | tar xz -C$DIR -mv $DIR/Proton*/files/* $DIR -rm -rf $DIR/Proton*/ +mv $DIR/GE-Proton*/files/* $DIR +rm -rf $DIR/GE-Proton*/ wget -O$DIR/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks chmod +x $DIR/winetricks