Add pypy and download with aria2c if found

This commit is contained in:
Phantop 2022-01-25 10:53:41 -05:00
parent c043fb00ef
commit 6609dd6793
3 changed files with 25 additions and 3 deletions

View File

@ -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

18
apps/mkpypy Executable file
View File

@ -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

View File

@ -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