sync current state
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
for required in metadata.json extension.js; do
|
||||
if [[ ! -f "$required" ]]; then
|
||||
echo "missing required file: $required" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
if ! command -v gnome-extensions >/dev/null 2>&1; then
|
||||
echo "gnome-extensions CLI not found; skipped shell validation"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
gnome-extensions pack --force --out-dir /tmp . >/dev/null
|
||||
|
||||
if rg -n "communicate_utf8\\(null, null\\)" extension.js >/dev/null; then
|
||||
echo "found blocking subprocess call in extension.js" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "smoke test passed"
|
||||
Reference in New Issue
Block a user