diff --git a/appdwarf b/appdwarf index b0ac56c..1fe862f 100755 --- a/appdwarf +++ b/appdwarf @@ -14,7 +14,7 @@ usage(){ echo " -s, --separate Use old, separated header format" echo " -u, --url Fetch AppImage from URL and convert to appdwarf" - echo " -h, --help iPrint this help text" + echo " -h, --help Print this help text" echo " -v, --version Print the appdwarf version" } @@ -76,7 +76,11 @@ do ;; --url | -u) file=$(basename "$2") - wget "$2" -O "$file" || exit 1 + if which aria2c; then + aria2c -x16 -s16 "$2" -o "$file" || exit 1 + else + wget "$2" -O "$file" || exit 1 + fi appimage "$file" "${@:3}" rm "$file" exit 0 diff --git a/apps/mkpypy b/apps/mkpypy new file mode 100755 index 0000000..ca6a4ef --- /dev/null +++ b/apps/mkpypy @@ -0,0 +1,18 @@ +#!/bin/bash +PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH +DIR=/tmp/dwarf-portable-executable +mkdir -p $DIR +LINK="https://buildbot.pypy.org/nightly/py3.9/pypy-c-jit-latest-linux64.tar.bz2" +curl -L "$LINK" | tar xfj - -C$DIR + +mv $DIR/pypy* $DIR/pypy +ln -s bin/pypy $DIR/pypy/AppRun + +rm $DIR/pypy/bin/*.debug + +$DIR/pypy/AppRun -m ensurepip +$DIR/pypy/AppRun -m pip install pipx + +appdwarf $DIR/pypy +mv $DIR/pypy.sh pypy +rm -rf $DIR/pypy diff --git a/apps/rustsolus b/apps/rustsolus index d9f87b1..850352c 100755 --- a/apps/rustsolus +++ b/apps/rustsolus @@ -1,5 +1,5 @@ #!/bin/bash -PATH=$(dirname $(readlink -f "${0}"))/..:$PATH +PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH DIR=/tmp/dwarf-portable-executable/rust mkdir -p $DIR