build: guard desktop release prerequisites

This commit is contained in:
mirivlad 2026-07-12 21:38:24 +08:00
parent ad0c00bade
commit ca5290015a
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ smoke-platform
plugins/
vendor/
frontend/e2e-results/
release/

View File

@ -10,6 +10,12 @@ if [[ -z "$VERSION" || ! "$VERSION" =~ ^[A-Za-z0-9][A-Za-z0-9._-]*$ ]]; then
exit 2
fi
if ! command -v pkg-config >/dev/null || \
(! pkg-config --exists webkit2gtk-4.1 && ! pkg-config --exists webkit2gtk-4.0); then
echo "Linux desktop releases require libwebkit2gtk-4.1-dev or libwebkit2gtk-4.0-dev." >&2
exit 1
fi
OFFICIAL_PLUGINS="${VERSTAK_OFFICIAL_PLUGINS_DIR:-$ROOT/../verstak-official-plugins}"
if [[ ! -d "$OFFICIAL_PLUGINS" ]]; then
echo "official plugins repository not found: $OFFICIAL_PLUGINS" >&2