mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-16 11:54:05 +00:00
13 lines
321 B
Bash
Executable file
13 lines
321 B
Bash
Executable file
#!/bin/sh
|
|
APP=$(basename "$0" | sed 's/^mk//')
|
|
DIR=/tmp/appdwarf/$APP
|
|
mkdir -p "$DIR"
|
|
LINK=https://api.adoptium.net/v3/binary/latest/$1/ga/linux/x64/jre/hotspot/normal/eclipse
|
|
shift
|
|
curl -L "$LINK" | tar xz -C"$DIR"
|
|
mv "$DIR"/jdk*/* "$DIR"
|
|
appdwarf -b "$DIR"/AppRun
|
|
appdwarf "$DIR" "$@"
|
|
mv "$DIR".sh "$APP"
|
|
rm -rf "$DIR"
|