build: guard desktop release prerequisites
This commit is contained in:
parent
ad0c00bade
commit
ca5290015a
|
|
@ -6,3 +6,4 @@ smoke-platform
|
||||||
plugins/
|
plugins/
|
||||||
vendor/
|
vendor/
|
||||||
frontend/e2e-results/
|
frontend/e2e-results/
|
||||||
|
release/
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,12 @@ if [[ -z "$VERSION" || ! "$VERSION" =~ ^[A-Za-z0-9][A-Za-z0-9._-]*$ ]]; then
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
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}"
|
OFFICIAL_PLUGINS="${VERSTAK_OFFICIAL_PLUGINS_DIR:-$ROOT/../verstak-official-plugins}"
|
||||||
if [[ ! -d "$OFFICIAL_PLUGINS" ]]; then
|
if [[ ! -d "$OFFICIAL_PLUGINS" ]]; then
|
||||||
echo "official plugins repository not found: $OFFICIAL_PLUGINS" >&2
|
echo "official plugins repository not found: $OFFICIAL_PLUGINS" >&2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue