apps cleanup

This commit is contained in:
Phantop 2022-07-22 16:54:13 -04:00
parent 4db23e7272
commit adae9f122c
5 changed files with 14 additions and 20 deletions

3
apps/.gitignore vendored
View File

@ -1,3 +0,0 @@
*.AppImage
*.aria2
*.sh

View File

@ -10,7 +10,6 @@ These scripts are all targeted for using on x86_64 Linux systems with GLIBC.
Script | Function | Source
--- | --- | ---
`mkchrome ` | Latest official Chromium build | <https://download-chromium.appspot.com>
`mkgo ` | Latest official Go release | <https://go.dev>
`mkjava ` | Accepts an argument for Java version and obtains that build from Adoptium | <https://adoptium.net>
`mkmp3tag ` | Latest 64-bit Mp3tag release | <https://mp3tag.de/en>

View File

@ -1,11 +1,11 @@
#!/bin/sh
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
DIR=/tmp/appdwarf/go
mkdir -p $DIR
LINK=$(curl -sL https://go.dev/dl | grep -m1 linux | cut -d\" -f4)
curl -L https://go.dev/"$LINK" | tar xz -C$DIR/..
appdwarf -b $DIR/AppRun
sed -i '4i export GOPROXY=direct' $DIR/AppRun
appdwarf $DIR "$@"
mv $DIR.sh go
rm -rf $DIR
APP=${0#./mk}
DIR=/tmp/appdwarf/$APP
mkdir -p "$DIR"
LINK=$(curl https://go.dev/dl/ | grep -m1 linux | cut -d\" -f4)
curl -L https://go.dev/"$LINK" | tar xz -C"$DIR"/..
appdwarf -b "$DIR"/AppRun
sed -i '4i export GOPROXY=direct' "$DIR"/AppRun
appdwarf "$DIR" "$@"
mv "$DIR".sh "$APP"
rm -rf "$DIR"

View File

@ -5,8 +5,7 @@ mkdir -p "$DIR"
LINK=$(curl https://nodejs.org/en/download/current/ | grep -m1 linux | cut -d\" -f4)
curl -L "$LINK" | tar xJ -C"$DIR"
mv "$DIR"/node*/* "$DIR"
strip "$DIR"/bin/node
appdwarf -b "$DIR"/AppRun
appdwarf "$DIR"
mv "$DIR".sh node
mv "$DIR".sh "$APP"
rm -rf "$DIR"

View File

@ -4,11 +4,10 @@ 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"
ln -s bin/pypy "$DIR"/AppRun
mv "$DIR"/pypy*/* "$DIR"
rm "$DIR"/bin/*.debug
"$DIR"/AppRun -m ensurepip
"$DIR"/AppRun -m pip install pipx
"$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"