mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-10 00:46:30 +00:00
14 lines
383 B
Bash
Executable file
14 lines
383 B
Bash
Executable file
#!/bin/sh
|
|
APP=${0#./mk}
|
|
DIR=/tmp/appdwarf/$APP
|
|
ARCH=x86_64-unknown-linux-gnu
|
|
mkdir -p "$DIR"
|
|
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"
|