15 lines
726 B
Bash
Executable File
15 lines
726 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
OUT_DIR="${ROOT_DIR}/dist"
|
|
mkdir -p "${OUT_DIR}"
|
|
rm -f "${OUT_DIR}/jarvis-qvac-extension.zip"
|
|
if command -v glib-compile-schemas >/dev/null; then
|
|
glib-compile-schemas "${ROOT_DIR}/apps/gnome-extension/[email protected]/schemas" >/dev/null
|
|
fi
|
|
# GNOME's installer expects metadata.json at the archive root. The UUID is
|
|
# taken from metadata.json and becomes the on-disk extension directory.
|
|
( cd "${ROOT_DIR}/apps/gnome-extension/[email protected]" && zip -q -r "${OUT_DIR}/jarvis-qvac-extension.zip" . -x '*/__pycache__/*' -x '*.pyc' )
|
|
test -s "${OUT_DIR}/jarvis-qvac-extension.zip"
|
|
echo "${OUT_DIR}/jarvis-qvac-extension.zip"
|