2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if ! echo "$1" | grep https ; then
|
2022-03-28 01:02:02 +00:00
|
|
|
set -- "https://github.com/$1"
|
|
|
|
fi
|
2022-04-13 21:10:51 +00:00
|
|
|
LINK2="$(echo "$1"/releases | sed 's|github.com|api.github.com/repos|')"
|
|
|
|
if ! echo "$1" | grep github.com; then
|
2022-03-28 01:02:02 +00:00
|
|
|
LINK2="$(curl "$1" | grep -o https.\*releases | sed 's|github.com|api.github.com/repos|')"
|
2022-03-18 17:02:14 +00:00
|
|
|
fi
|
2022-04-12 20:01:57 +00:00
|
|
|
LINK3="$(curl "$LINK2" | grep -v arm64 | grep -v armh | grep -om1 https.\*AppImage)"
|
2022-04-13 21:10:51 +00:00
|
|
|
shift
|
|
|
|
appdwarf "$@" -u "$LINK3"
|