-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathzip.sh
More file actions
12 lines (9 loc) · 704 Bytes
/
Copy pathzip.sh
File metadata and controls
12 lines (9 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
rm -rfv build save-all-tab-urls.zip save-all-tab-urls-firefox.zip save-all-tab-urls-chrome.zip
mkdir -p build/chrome build/firefox
cp -r * build/chrome
cp -r * build/firefox
cat manifest.json | jq 'del(.background.service_worker, .background.type)' > build/firefox/manifest.json
cat manifest.json | jq 'del(.background.scripts)' > build/chrome/manifest.json
cd build/firefox && zip -r ../../save-all-tab-urls-firefox.zip . -x '*.git*' -x '*.github-resources*' -x '*save-all-tab-urls.zip*' -x '*zip.sh*' -x '*zip-win.bat*'
cd ../../build/chrome && zip -r ../../save-all-tab-urls-chrome.zip . -x '*.git*' -x '*.github-resources*' -x '*save-all-tab-urls.zip*' -x '*zip.sh*' -x '*zip-win.bat*'