mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-08 13:17:24 +00:00
apps cleanup
This commit is contained in:
parent
4db23e7272
commit
adae9f122c
3
apps/.gitignore
vendored
3
apps/.gitignore
vendored
|
@ -1,3 +0,0 @@
|
||||||
*.AppImage
|
|
||||||
*.aria2
|
|
||||||
*.sh
|
|
|
@ -10,7 +10,6 @@ These scripts are all targeted for using on x86_64 Linux systems with GLIBC.
|
||||||
|
|
||||||
Script | Function | Source
|
Script | Function | Source
|
||||||
--- | --- | ---
|
--- | --- | ---
|
||||||
`mkchrome ` | Latest official Chromium build | <https://download-chromium.appspot.com>
|
|
||||||
`mkgo ` | Latest official Go release | <https://go.dev>
|
`mkgo ` | Latest official Go release | <https://go.dev>
|
||||||
`mkjava ` | Accepts an argument for Java version and obtains that build from Adoptium | <https://adoptium.net>
|
`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>
|
`mkmp3tag ` | Latest 64-bit Mp3tag release | <https://mp3tag.de/en>
|
||||||
|
|
20
apps/mkgo
20
apps/mkgo
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
APP=${0#./mk}
|
||||||
DIR=/tmp/appdwarf/go
|
DIR=/tmp/appdwarf/$APP
|
||||||
mkdir -p $DIR
|
mkdir -p "$DIR"
|
||||||
LINK=$(curl -sL https://go.dev/dl | grep -m1 linux | cut -d\" -f4)
|
LINK=$(curl https://go.dev/dl/ | grep -m1 linux | cut -d\" -f4)
|
||||||
curl -L https://go.dev/"$LINK" | tar xz -C$DIR/..
|
curl -L https://go.dev/"$LINK" | tar xz -C"$DIR"/..
|
||||||
appdwarf -b $DIR/AppRun
|
appdwarf -b "$DIR"/AppRun
|
||||||
sed -i '4i export GOPROXY=direct' $DIR/AppRun
|
sed -i '4i export GOPROXY=direct' "$DIR"/AppRun
|
||||||
appdwarf $DIR "$@"
|
appdwarf "$DIR" "$@"
|
||||||
mv $DIR.sh go
|
mv "$DIR".sh "$APP"
|
||||||
rm -rf $DIR
|
rm -rf "$DIR"
|
||||||
|
|
|
@ -5,8 +5,7 @@ mkdir -p "$DIR"
|
||||||
LINK=$(curl https://nodejs.org/en/download/current/ | grep -m1 linux | cut -d\" -f4)
|
LINK=$(curl https://nodejs.org/en/download/current/ | grep -m1 linux | cut -d\" -f4)
|
||||||
curl -L "$LINK" | tar xJ -C"$DIR"
|
curl -L "$LINK" | tar xJ -C"$DIR"
|
||||||
mv "$DIR"/node*/* "$DIR"
|
mv "$DIR"/node*/* "$DIR"
|
||||||
strip "$DIR"/bin/node
|
|
||||||
appdwarf -b "$DIR"/AppRun
|
appdwarf -b "$DIR"/AppRun
|
||||||
appdwarf "$DIR"
|
appdwarf "$DIR"
|
||||||
mv "$DIR".sh node
|
mv "$DIR".sh "$APP"
|
||||||
rm -rf "$DIR"
|
rm -rf "$DIR"
|
||||||
|
|
|
@ -4,11 +4,10 @@ DIR=/tmp/appdwarf/$APP
|
||||||
mkdir -p "$DIR"
|
mkdir -p "$DIR"
|
||||||
LINK="https://buildbot.pypy.org/nightly/py3.9/pypy-c-jit-latest-linux64.tar.bz2"
|
LINK="https://buildbot.pypy.org/nightly/py3.9/pypy-c-jit-latest-linux64.tar.bz2"
|
||||||
curl -L "$LINK" | tar xj -C"$DIR"
|
curl -L "$LINK" | tar xj -C"$DIR"
|
||||||
ln -s bin/pypy "$DIR"/AppRun
|
|
||||||
mv "$DIR"/pypy*/* "$DIR"
|
mv "$DIR"/pypy*/* "$DIR"
|
||||||
rm "$DIR"/bin/*.debug
|
"$DIR"/bin/pypy -m ensurepip
|
||||||
"$DIR"/AppRun -m ensurepip
|
"$DIR"/bin/pypy -m pip install pipx
|
||||||
"$DIR"/AppRun -m pip install pipx
|
appdwarf -b "$DIR"/AppRun
|
||||||
appdwarf "$DIR"
|
appdwarf "$DIR"
|
||||||
mv "$DIR".sh "$APP"
|
mv "$DIR".sh "$APP"
|
||||||
rm -rf "$DIR"
|
rm -rf "$DIR"
|
||||||
|
|
Loading…
Reference in a new issue