mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-09 08:26:22 +00:00
12 lines
356 B
Bash
Executable file
12 lines
356 B
Bash
Executable file
#!/bin/sh
|
|
# shellcheck source=../appdwarf
|
|
SOURCE=1 . "$(which appdwarf)"
|
|
API=/repos/PintaProject/Pinta/actions/artifacts
|
|
QUERY='.artifacts[] | select(.name == "Pinta-linux-dotnet-8.0.x.zip") | .archive_download_url'
|
|
LINK=$(gh api $API -q "$QUERY" | head -n1)
|
|
gh api "$LINK" | bsdtar xf - -C"$DIR"
|
|
bsdtar xf "$DIR"/*.zip -C"$DIR"
|
|
rm "$DIR"/*.zip
|
|
appa
|
|
appmk
|