mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-18 04:43:17 +00:00
apps: general update and cleanup
This commit is contained in:
parent
95be3a7d5d
commit
4dbceb3446
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh
|
||||
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
||||
DIR=/tmp/appdwarf
|
||||
mkdir -p $DIR
|
||||
LINK=https://download-chromium.appspot.com/dl/Linux_x64
|
||||
curl -L "$LINK" | bsdtar xf - -C$DIR
|
||||
|
||||
chmod +x $DIR/chrome-linux/chrome*
|
||||
mv $DIR/chrome-linux/chrome $DIR/chrome-linux/AppRun
|
||||
|
||||
appdwarf $DIR/chrome-linux
|
||||
mv $DIR/chrome-linux.sh chromium
|
||||
rm -rf $DIR/chrome-linux
|
|
@ -5,7 +5,9 @@ mkdir -p $DIR
|
|||
LINK=https://dotnetcli.azureedge.net/dotnet/Runtime
|
||||
VER=$(curl $LINK/LTS/latest.version)
|
||||
curl "$LINK/$VER/dotnet-runtime-$VER-linux-x64.tar.gz" | tar xz -C$DIR
|
||||
|
||||
ln -s dotnet $DIR/AppRun
|
||||
appdwarf $DIR
|
||||
|
||||
appdwarf $DIR "$@"
|
||||
mv $DIR.sh dotnet
|
||||
rm -rf $DIR
|
||||
|
|
18
apps/mkgo
18
apps/mkgo
|
@ -1,14 +1,14 @@
|
|||
#!/bin/sh
|
||||
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
||||
DIR=/tmp/appdwarf
|
||||
DIR=/tmp/appdwarf/go
|
||||
mkdir -p $DIR
|
||||
LINK=$(curl -sL https://go.dev/dl | grep -om1 dl/go.\*linux-amd64.tar.gz)
|
||||
curl -L https://go.dev/"$LINK" | tar xz -C$DIR
|
||||
LINK=$(curl -sL https://go.dev/dl | grep -m1 linux | cut -d\" -f4)
|
||||
curl -L https://go.dev/"$LINK" | tar xz -C$DIR/..
|
||||
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/go
|
||||
sed -i '4i export GOPROXY=direct' $DIR/go/AppRun
|
||||
sed -i 5s#/#/bin/# $DIR/go/AppRun
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
||||
sed -i '4i export GOPROXY=direct' $DIR/AppRun
|
||||
sed -i 5s#/#/bin/# $DIR/AppRun
|
||||
|
||||
appdwarf $DIR/go
|
||||
mv $DIR/go.sh go
|
||||
rm -rf $DIR/go
|
||||
appdwarf $DIR "$@"
|
||||
mv $DIR.sh go
|
||||
rm -rf $DIR
|
||||
|
|
18
apps/mkjava
18
apps/mkjava
|
@ -1,17 +1,15 @@
|
|||
#!/bin/sh
|
||||
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
||||
DIR=/tmp/appdwarf/java
|
||||
mkdir -p $DIR
|
||||
VER=$1
|
||||
shift
|
||||
|
||||
LINK=https://api.adoptium.net/v3/binary/latest/$VER/ga/linux/x64/jre/hotspot/normal/eclipse
|
||||
mkdir $DIR
|
||||
LINK=https://api.adoptium.net/v3/binary/latest/$1/ga/linux/x64/jre/hotspot/normal/eclipse
|
||||
curl -L "$LINK" | tar xz -C$DIR
|
||||
mv $DIR/jdk* $DIR/jre
|
||||
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/jre
|
||||
sed -i 4s#/#/bin/# $DIR/jre/AppRun
|
||||
mv $DIR/jdk*/* $DIR
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
||||
sed -i 4s#/#/bin/# $DIR/AppRun
|
||||
|
||||
appdwarf $DIR/jre "$@"
|
||||
mv $DIR/jre.sh java"$VER"
|
||||
shift
|
||||
appdwarf $DIR "$@"
|
||||
mv $DIR.sh java
|
||||
rm -rf $DIR
|
||||
|
|
|
@ -3,14 +3,13 @@ PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
|||
DIR=/tmp/appdwarf/mp3tag
|
||||
mkdir -p $DIR
|
||||
LINK=$(curl -L mp3tag.de/dodownload64.html | awk -F'[="]' /URL/'{print $7}')
|
||||
aria2c "$LINK" -d $DIR -o exe
|
||||
7z x -y -o$DIR $DIR/exe
|
||||
aria2c "$LINK" -d $DIR -o mp3tag
|
||||
7z x -y -o$DIR $DIR/mp3tag
|
||||
|
||||
rm $DIR/exe
|
||||
mv $DIR/Mp3tag.exe $DIR/mp3tag
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
||||
sed -i '4s/ / wine /' $DIR/AppRun
|
||||
|
||||
appdwarf $DIR
|
||||
appdwarf $DIR "$@"
|
||||
mv $DIR.sh mp3tag
|
||||
rm -rf $DIR
|
||||
|
|
18
apps/mkmusl
18
apps/mkmusl
|
@ -1,14 +1,14 @@
|
|||
#!/bin/sh
|
||||
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
||||
DIR=/tmp/appdwarf
|
||||
mkdir -p $DIR
|
||||
DIR=/tmp/appdwarf/musl
|
||||
mkdir $DIR
|
||||
curl http://musl.cc/x86_64-linux-musl-native.tgz | tar xz -C$DIR
|
||||
mv $DIR/x86_64-linux-musl-native $DIR/musl
|
||||
ln -s gcc $DIR/musl/bin/cc
|
||||
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/musl
|
||||
sed -i '4d;3a exec "$@"' $DIR/musl/AppRun
|
||||
mv $DIR/x86_64-linux-musl-native/* $DIR
|
||||
ln -s gcc $DIR/bin/cc
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
||||
sed -i '4d;3a exec "$@"' $DIR/AppRun
|
||||
|
||||
appdwarf $DIR/musl
|
||||
mv $DIR/musl.sh musl
|
||||
rm -rf $DIR/musl
|
||||
appdwarf $DIR "$@"
|
||||
mv $DIR.sh musl
|
||||
rm -rf $DIR
|
||||
|
|
20
apps/mknode
20
apps/mknode
|
@ -1,17 +1,15 @@
|
|||
#!/bin/sh
|
||||
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
||||
DIR=/tmp/appdwarf
|
||||
DIR=/tmp/appdwarf/node
|
||||
mkdir -p $DIR
|
||||
BASE=https://nodejs.org/dist/latest
|
||||
LINK="$BASE/$(curl -L $BASE | grep linux-x64.tar.xz | cut -d'"' -f2)"
|
||||
LINK=$(curl https://nodejs.org/en/download/current/ | grep -m1 linux | cut -d\" -f4)
|
||||
curl -L "$LINK" | bsdtar xf - -C$DIR
|
||||
|
||||
mv $DIR/node* $DIR/node
|
||||
strip $DIR/node/bin/node
|
||||
mv $DIR/node*/* $DIR
|
||||
strip $DIR/bin/node
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
||||
sed -i 4s#/#/bin/# $DIR/AppRun
|
||||
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/node
|
||||
sed -i 4s#/#/bin/# $DIR/node/AppRun
|
||||
|
||||
appdwarf $DIR/node
|
||||
mv $DIR/node.sh node
|
||||
rm -rf $DIR/node
|
||||
appdwarf $DIR
|
||||
mv $DIR.sh node
|
||||
rm -rf $DIR
|
||||
|
|
21
apps/mkpypy
21
apps/mkpypy
|
@ -1,18 +1,17 @@
|
|||
#!/bin/sh
|
||||
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
||||
DIR=/tmp/appdwarf
|
||||
DIR=/tmp/appdwarf/pypy
|
||||
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
|
||||
curl -L "$LINK" | tar xj -C$DIR
|
||||
|
||||
mv $DIR/pypy* $DIR/pypy
|
||||
ln -s bin/pypy $DIR/pypy/AppRun
|
||||
mv $DIR/pypy*/* $DIR
|
||||
rm $DIR/bin/*.debug
|
||||
ln -s bin/pypy $DIR/AppRun
|
||||
|
||||
rm $DIR/pypy/bin/*.debug
|
||||
$DIR/AppRun -m ensurepip
|
||||
$DIR/AppRun -m pip install pipx
|
||||
|
||||
$DIR/pypy/AppRun -m ensurepip
|
||||
$DIR/pypy/AppRun -m pip install pipx
|
||||
|
||||
appdwarf $DIR/pypy
|
||||
mv $DIR/pypy.sh pypy
|
||||
rm -rf $DIR/pypy
|
||||
appdwarf $DIR
|
||||
mv $DIR.sh pypy
|
||||
rm -rf $DIR
|
||||
|
|
19
apps/mkrust
19
apps/mkrust
|
@ -1,18 +1,17 @@
|
|||
#!/bin/sh
|
||||
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
||||
DIR=/tmp/appdwarf
|
||||
DIR=/tmp/appdwarf/rust
|
||||
ARCH=x86_64-unknown-linux-gnu
|
||||
mkdir -p $DIR
|
||||
LINK=https://static.rust-lang.org/dist/rust-nightly-$ARCH.tar.gz
|
||||
LINK=https://static.rust-lang.org/dist/rust-beta-$ARCH.tar.gz
|
||||
curl -L $LINK | tar xz -C$DIR
|
||||
|
||||
mkdir $DIR/rust
|
||||
for i in cargo rustc rust-std-$ARCH/; do
|
||||
mv "$DIR/rust-nightly-$ARCH/$i"/* $DIR/rust; done
|
||||
$DIR/rust-beta-$ARCH/install.sh --prefix=$DIR --components=cargo,rustc,rust-std-$ARCH
|
||||
rm -rf $DIR/rust-beta-$ARCH
|
||||
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/rust
|
||||
sed -i 4s#/#/bin/# $DIR/rust/AppRun
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
||||
sed -i 4s#/#/bin/# $DIR/AppRun
|
||||
|
||||
appdwarf $DIR/rust
|
||||
mv $DIR/rust.sh cargo
|
||||
rm -rf $DIR/rust*
|
||||
appdwarf $DIR
|
||||
mv $DIR.sh cargo
|
||||
rm -rf $DIR
|
||||
|
|
16
apps/mktex
16
apps/mktex
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
PATH="$(dirname "$(readlink -f "${0}")")/..":"$PATH"
|
||||
DIR=/tmp/appdwarf
|
||||
DIR=/tmp/appdwarf/tex
|
||||
mkdir -p $DIR
|
||||
LINK=https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
|
||||
curl -L $LINK | tar xz -C$DIR
|
||||
|
@ -42,12 +42,12 @@ EOF
|
|||
|
||||
$DIR/tl/install-tl -profile $DIR/tl/prof
|
||||
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/tex
|
||||
sed -i 2s#/bin#/bin/x86_64-linux# $DIR/tex/AppRun
|
||||
sed -i 4s#/#/bin/x86_64-linux# $DIR/tex/AppRun
|
||||
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
||||
sed -i 2s#/bin#/bin/x86_64-linux# $DIR/AppRun
|
||||
sed -i 4s#/#/bin/x86_64-linux# $DIR/AppRun
|
||||
|
||||
chmod +x $DIR/tex/AppRun
|
||||
chmod +x $DIR/AppRun
|
||||
|
||||
appdwarf $DIR/tex
|
||||
mv $DIR/tex.sh tex
|
||||
rm -rf $DIR/tex $DIR/tl
|
||||
appdwarf $DIR
|
||||
mv $DIR.sh tex
|
||||
rm -rf $DIR
|
||||
|
|
Loading…
Reference in a new issue