2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2022-07-30 15:56:48 +00:00
|
|
|
APP=$(basename "$0" | sed 's/^mk//')
|
2022-07-13 04:39:09 +00:00
|
|
|
DIR=/tmp/appdwarf/$APP
|
2022-04-13 21:10:51 +00:00
|
|
|
ARCH=x86_64-unknown-linux-gnu
|
2022-07-13 04:39:09 +00:00
|
|
|
mkdir -p "$DIR"
|
2022-06-27 00:53:01 +00:00
|
|
|
LINK=https://static.rust-lang.org/dist/rust-beta-$ARCH.tar.gz
|
2022-07-13 04:39:09 +00:00
|
|
|
curl -L $LINK | tar xz -C"$DIR"
|
|
|
|
"$DIR"/rust-beta-$ARCH/install.sh --prefix="$DIR" --components=cargo,rustc,rust-std-$ARCH
|
|
|
|
rm -rf "$DIR"/rust-beta-$ARCH
|
|
|
|
appdwarf -b "$DIR"/AppRun
|
|
|
|
appdwarf "$DIR"
|
|
|
|
mv "$DIR".sh "$APP"
|
|
|
|
rm -rf "$DIR"
|