#!/usr/bin/env bash # Zip the extension into static/newtab-extension.zip (served at /newtab-extension.zip). set -euo pipefail cd "$(dirname "$0")/.." python3 - <<'PY' import os, zipfile out = '../static/newtab-extension.zip' with zipfile.ZipFile(out, 'w', zipfile.ZIP_DEFLATED) as z: for name in sorted(os.listdir('newtab-extension')): if name != 'build.sh': z.write(os.path.join('newtab-extension', name)) print('wrote static/newtab-extension.zip') PY