mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-13 02:12:54 +00:00
Phantop
3ebee5f254
Deprecates $APPDWARF_CMD for $ARGV0, as part of the standard Also finally removes the separate header, as it seems to not be needed anymore
17 lines
416 B
Bash
Executable file
17 lines
416 B
Bash
Executable file
#!/bin/sh
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
|
DIR=/tmp/appdwarf/rust
|
|
mkdir -p $DIR
|
|
|
|
eopkg fc -o $DIR cargo rust
|
|
parallel "unzip -op {} install.tar.xz | tar xJf - -C$DIR" ::: $DIR/*.eopkg
|
|
rm $DIR/*.eopkg
|
|
rm -r $DIR/usr/lib64/rustlib/i686-unknown-linux-gnu
|
|
|
|
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/usr
|
|
sed -i 4s#/#/bin/# $DIR/usr/AppRun
|
|
|
|
appdwarf $DIR/usr
|
|
mv $DIR/usr.sh cargo
|
|
rm -rf $DIR
|