-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbuild.sh
More file actions
25 lines (18 loc) · 620 Bytes
/
Copy pathbuild.sh
File metadata and controls
25 lines (18 loc) · 620 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e
echo "Creating directories..."
mkdir -p temp firefox chrome
echo "Cleaning directories..."
rm -rf temp/* firefox/* chrome/*
echo "Copying Firefox files..."
cp *.js *.png *.html temp/
cp manifest-v2.json temp/manifest.json
echo "Creating freedium-browser-extension.xpi..."
zip -j firefox/freedium-browser-extension.xpi temp/*
echo "Copying Chrome files..."
cp *.js *.png *.html chrome/
cp manifest-v3-chrome.json chrome/manifest.json
cp manifest-v3-chrome.json temp/manifest.json
echo "Creating freedium-browser-extension.zip..."
zip -j chrome/freedium-browser-extension.zip temp/*
echo "Done!"