mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-08 13:17:24 +00:00
apps: add dotnet and fix proton and github
This commit is contained in:
parent
582fff0047
commit
d5b4c0a082
|
@ -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"
|
||||
|
|
10
apps/mkdotnet
Executable file
10
apps/mkdotnet
Executable file
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue