appdwarf/apps/mkrust

14 lines
406 B
Plaintext
Raw Normal View History

#!/bin/sh
APP=$(basename "$0" | sed 's/^mk//')
DIR=/tmp/appdwarf/$APP
ARCH=x86_64-unknown-linux-gnu
mkdir -p "$DIR"
2022-06-27 00:53:01 +00:00
LINK=https://static.rust-lang.org/dist/rust-beta-$ARCH.tar.gz
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"