appdwarf/apps/mkpypy

14 lines
367 B
Bash
Executable file

#!/bin/sh
APP=$(basename "$0" | sed 's/^mk//')
DIR=/tmp/appdwarf/$APP
mkdir -p "$DIR"
LINK="https://buildbot.pypy.org/nightly/py3.9/pypy-c-jit-latest-linux64.tar.bz2"
curl -L "$LINK" | tar xj -C"$DIR"
mv "$DIR"/pypy*/* "$DIR"
"$DIR"/bin/pypy -m ensurepip
"$DIR"/bin/pypy -m pip install pipx
appdwarf -b "$DIR"/AppRun
appdwarf "$DIR"
mv "$DIR".sh "$APP"
rm -rf "$DIR"