mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-09 13:47:08 +00:00
Add pypy and download with aria2c if found
This commit is contained in:
parent
c043fb00ef
commit
6609dd6793
8
appdwarf
8
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
|
||||
|
|
18
apps/mkpypy
Executable file
18
apps/mkpypy
Executable 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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue