13 lines
579 B
Bash
Executable File
13 lines
579 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
|
|
( cd "${ROOT_DIR}/apps/gnome-extension" && zip -q -r "${OUT_DIR}/jarvis-qvac-extension.zip" "[email protected]" -x '*/__pycache__/*' -x '*.pyc' )
|
|
test -s "${OUT_DIR}/jarvis-qvac-extension.zip"
|
|
echo "${OUT_DIR}/jarvis-qvac-extension.zip"
|