Bundle Poncho Wonky (Patchwork 5.4.0) for x86_64 and aarch64 on the 24.08 freedesktop runtime with the Electron BaseApp. Launcher forces Wayland when a socket is present so the app starts from terminals outside the desktop session. Pinned versions and checksums live in versions.sh and are validated by check-versions.sh.
42 lines
1.5 KiB
Bash
Executable File
42 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# Verify the manifest and metainfo still match the pins in versions.sh.
|
|
# Usage: ./check-versions.sh
|
|
|
|
set -euo pipefail
|
|
source "$(dirname "$0")/versions.sh"
|
|
|
|
MANIFEST="nz.scuttlebutt.Patchwork.yaml"
|
|
METAINFO="nz.scuttlebutt.Patchwork.metainfo.xml"
|
|
fail=0
|
|
|
|
check() {
|
|
local desc="$1" expected="$2" actual="$3"
|
|
if [ "$expected" != "$actual" ]; then
|
|
echo "FAIL: $desc expected '$expected', found '$actual'" >&2
|
|
fail=1
|
|
else
|
|
echo "ok: $desc = '$actual'"
|
|
fi
|
|
}
|
|
|
|
check "runtime-version" "$RUNTIME_VERSION" \
|
|
"$(sed -n "s/^runtime-version: '\(.*\)'/\1/p" "$MANIFEST")"
|
|
check "base-version" "$RUNTIME_VERSION" \
|
|
"$(sed -n "s/^base-version: '\(.*\)'/\1/p" "$MANIFEST")"
|
|
check "metainfo release version" "$APP_VERSION" \
|
|
"$(sed -n "s/.*<release version=\"\([^\"]*\)\" .*/\1/p" "$METAINFO" | head -1)"
|
|
|
|
x86_url=$(grep -oE 'ponchowonky-[0-9.]+\.tar\.gz' "$MANIFEST")
|
|
arm_url=$(grep -oE 'ponchowonky-[0-9.]+-arm64\.tar\.gz' "$MANIFEST")
|
|
check "x86_64 asset version" "$APP_VERSION" \
|
|
"$(echo "$x86_url" | sed 's/^ponchowonky-//; s/\.tar\.gz$//')"
|
|
check "aarch64 asset version" "$APP_VERSION" \
|
|
"$(echo "$arm_url" | sed 's/^ponchowonky-//; s/-arm64\.tar\.gz$//')"
|
|
|
|
x86_sha=$(sed -n "/ponchowonky-${APP_VERSION}\.tar\.gz/{n;s/ *sha256: *//;p}" "$MANIFEST")
|
|
arm_sha=$(sed -n "/ponchowonky-${APP_VERSION}-arm64\.tar\.gz/{n;s/ *sha256: *//;p}" "$MANIFEST")
|
|
check "x86_64 sha256" "$APP_SHA256_X86_64" "$x86_sha"
|
|
check "aarch64 sha256" "$APP_SHA256_AARCH64" "$arm_sha"
|
|
|
|
exit "$fail"
|