mkpacman: use powerpill to not need root

This commit is contained in:
Phantop 2024-03-08 20:05:26 -05:00
parent 869c9666cf
commit 272ed9a1d5
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
. "$(dirname "$0")"/appmk . "$(dirname "$0")"/appmk
part0 part0
LINK=https://api.adoptium.net/v3/binary/latest/$1/ga/linux/x64/jre/hotspot/normal/eclipse LINK=https://api.adoptium.net/v3/binary/latest/$1/ga/linux/x64/jdk/hotspot/normal/eclipse
shift shift
ungz ungz
mv "$DIR"/jdk*/* "$DIR" mv "$DIR"/jdk*/* "$DIR"

View File

@ -6,5 +6,5 @@ aria2c "$LINK" -d "$DIR" -o mp3tag
7z x -y -o"$DIR" "$DIR"/mp3tag 7z x -y -o"$DIR" "$DIR"/mp3tag
mv "$DIR"/Mp3tag.exe "$DIR"/mp3tag mv "$DIR"/Mp3tag.exe "$DIR"/mp3tag
appa appa
sed -i '5s/ / wine64 /' "$DIR"/AppRun sed -i '5s/ / wine /' "$DIR"/AppRun
part9 part9

View File

@ -2,7 +2,7 @@
. "$(dirname "$0")"/appmk . "$(dirname "$0")"/appmk
part0 part0
APP="$1" APP="$1"
sudo pacman -Sw --cachedir "$DIR" "$@" powerpill -Sw --cachedir "$DIR" "$@"
parallel "tar xf {} -C$DIR" ::: "$DIR"/*.tar.zst parallel "tar xf {} -C$DIR" ::: "$DIR"/*.tar.zst
rm -f "$DIR"/*.tar.zst* rm -f "$DIR"/*.tar.zst*
appb appb