From d6e5deceac93ee68ec9263aabb84a3c8a2645418 Mon Sep 17 00:00:00 2001 From: Guy Sandler Date: Mon, 12 Oct 2026 16:35:26 -0700 Subject: [PATCH] small bash script to easily pack the extension --- pack | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 pack diff --git a/pack b/pack new file mode 100755 index 0000000..47795ac --- /dev/null +++ b/pack @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Get version from line 5 of manifest.json and subtract 6 from the first number +version_line=$(sed -n '5p' manifest.json) +version=$(echo "$version_line" | grep -oP '"version"\s*:\s*"\K[^"]+') +major=${version%%.*} +major=$((major - 6)) +zipname="V${major}.${version#*.}" + +zip -r "$zipname.zip" js html css _locales icon manifest.json LICENSE-MIT + +echo "Created $zipname.zip"