mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-09 05:37:04 +00:00
18 lines
464 B
Bash
Executable file
18 lines
464 B
Bash
Executable file
#!/bin/sh
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
|
DIR=/tmp/appdwarf/rust
|
|
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
|
|
|
|
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR
|
|
sed -i 4s#/#/bin/# $DIR/AppRun
|
|
|
|
appdwarf $DIR
|
|
mv $DIR.sh cargo
|
|
rm -rf $DIR
|