appdwarf/apps/mkjava

13 lines
298 B
Plaintext
Raw Normal View History

#!/bin/sh
APP=${0#./mk}
DIR=/tmp/appdwarf/$APP
mkdir -p "$DIR"
2022-06-27 00:53:01 +00:00
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"