mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-13 02:12:54 +00:00
13 lines
321 B
Bash
Executable file
13 lines
321 B
Bash
Executable file
#!/bin/sh
|
|
APP=$(basename "$0" | sed 's/^mk//')
|
|
DIR=/tmp/appdwarf/$APP
|
|
mkdir -p "$DIR"
|
|
eopkg fc -o "$DIR" "$@"
|
|
parallel "unzip -op {} install.tar.xz | tar xJf - -C$DIR" ::: "$DIR"/*.eopkg
|
|
rm "$DIR"/*.eopkg
|
|
appdwarf -b "$DIR"/AppRun
|
|
sed -i 2,4s#/bin#/usr/bin# "$DIR"/AppRun
|
|
appdwarf "$DIR"
|
|
mv "$DIR".sh "$1"
|
|
rm -rf "$DIR"
|