Use the exact release asset for the Wayland package control

This commit is contained in:
Codex
2026-11-30 17:50:25 +01:00
parent e257ecdc70
commit eca96828a4
+3 -2
View File
@@ -18,13 +18,14 @@ jobs:
GH_TOKEN: ${{ github.token }}
RELEASE_RUN: "46343667754"
RELEASE_COMMIT: acaa80fc42aaa766b60ed7bf2f6a0b54852331c1
ASSET_ID: "811437159"
DEB_SHA256: 59c4a5a8b280051886dc2371f5224fb80e1a746c95914a66caf9ca08577667ec
run: |
sudo apt-get update -qq
sudo apt-get install -y grim sway python3-pil libwayland-dev libwayland-bin
test "$(gh run view "$RELEASE_RUN" --json headSha --jq .headSha)" = "$RELEASE_COMMIT"
gh run download "$RELEASE_RUN" -n release-linux-x86_64 -D "$RUNNER_TEMP/bundle"
deb="$(find "$RUNNER_TEMP/bundle" -name '*-linux-x86_64.deb' -print -quit)"
deb="$RUNNER_TEMP/vectorcraft.deb"
gh api "repos/$GITHUB_REPOSITORY/releases/assets/$ASSET_ID" -H 'Accept: application/octet-stream' > "$deb"
test -f "$deb"
echo "$DEB_SHA256 $deb" | sha256sum -c
sudo apt-get install -y "$deb"