-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·38 lines (30 loc) · 969 Bytes
/
build.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
rm -rf build
mkdir -p build/assets/img build/lib
cp assets/globaltab.min.js build/assets/globaltab.min.js
cp assets/globaltab.min.css build/assets/globaltab.min.css
cp assets/img/icon_16.png build/assets/img/icon_16.png
cp assets/img/icon_128.png build/assets/img/icon_128.png
cp lib/minimasonry.min.js build/lib/minimasonry.min.js
cp globaltab.html build/globaltab.html
cp LICENSE build/LICENSE
cp README.md build/README.md
# Chrome
cp manifest.chrome.json build/manifest.json
cd build
zip -r GlobalTab.Chrome.zip . -x "*.zip"
rm manifest.json
cd ..
# Firefox
cp assets/img/icon_48.png build/assets/img/icon_48.png
cp manifest.firefox.json build/manifest.json
cd build
zip -r GlobalTab.Firefox.zip . -x "*.zip"
cd ..
# Firefox Source
cp assets/globaltab.js build/assets/globaltab.js
cp assets/globaltab.scss build/assets/globaltab.scss
cd build/assets
zip -r GlobalTab.Firefox.Source.zip . -x "*.zip"
mv GlobalTab.Firefox.Source.zip ..
echo "Done"