mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-05-22 23:01:32 +00:00
Add pypy and download with aria2c if found
This commit is contained in:
parent
c043fb00ef
commit
6609dd6793
6
appdwarf
6
appdwarf
|
@ -14,7 +14,7 @@ usage(){
|
||||||
echo " -s, --separate Use old, separated header format"
|
echo " -s, --separate Use old, separated header format"
|
||||||
echo " -u, --url Fetch AppImage from URL and convert to appdwarf"
|
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"
|
echo " -v, --version Print the appdwarf version"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,11 @@ do
|
||||||
;;
|
;;
|
||||||
--url | -u)
|
--url | -u)
|
||||||
file=$(basename "$2")
|
file=$(basename "$2")
|
||||||
|
if which aria2c; then
|
||||||
|
aria2c -x16 -s16 "$2" -o "$file" || exit 1
|
||||||
|
else
|
||||||
wget "$2" -O "$file" || exit 1
|
wget "$2" -O "$file" || exit 1
|
||||||
|
fi
|
||||||
appimage "$file" "${@:3}"
|
appimage "$file" "${@:3}"
|
||||||
rm "$file"
|
rm "$file"
|
||||||
exit 0
|
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
|
#!/bin/bash
|
||||||
PATH=$(dirname $(readlink -f "${0}"))/..:$PATH
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
||||||
DIR=/tmp/dwarf-portable-executable/rust
|
DIR=/tmp/dwarf-portable-executable/rust
|
||||||
mkdir -p $DIR
|
mkdir -p $DIR
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue