mirror of
https://github.com/aculix/knotchy.git
synced 2026-10-27 07:15:53 +00:00
12 lines
416 B
Bash
Executable File
12 lines
416 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Zips extensions/chrome for the Chrome Web Store: build/open-in-knotchy-<version>.zip.
|
|
set -euo pipefail
|
|
root="$(cd "$(dirname "$0")/.." && pwd)"
|
|
cd "$root/extensions/chrome"
|
|
version="$(plutil -extract version raw manifest.json)"
|
|
out="$root/build/open-in-knotchy-$version.zip"
|
|
mkdir -p "$root/build"
|
|
rm -f "$out"
|
|
zip -q -r -X "$out" manifest.json background.js icons -x '*.DS_Store'
|
|
echo "$out"
|