forked from qcl/QCLean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (36 loc) · 1.43 KB
/
Makefile
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
39
40
41
42
43
44
45
46
47
48
chrome: QCLean-Chrome-Experiment
cd ./QCLean-Chrome-Experiment; jsx -x jsx src build --no-cache-dir
zip -r qclean-chrome.zip QCLean-Chrome-Experiment
chrome-old: QCLean-Chrome
zip -r qclean-chrome-old.zip QCLean-Chrome
chrome-crx: QCLean-Chrome
google-chrome --pack-extension=QCLean-Chrome
firefox: firefox-l10n-patch
firefox-l10n-patch: firefox-xpi
unzip qclean-firefox.xpi install.rdf
patch -p0 < ./QCLean-Firefox/install.rdf.l10n.patch
zip qclean-firefox.xpi install.rdf
rm install.rdf
firefox-xpi-jpm: QCLean-Firefox-Experiment firefox-check-jpm
cd ./QCLean-Firefox-Experiment; jpm xpi; mv *.xpi ../qclean-firefox.xpi
firefox-check-jpm:
@which jpm > /dev/null
firefox-xpi: QCLean-Firefox firefox-sdk
cd firefox-sdk; . bin/activate; cd ../QCLean-Firefox/; cfx xpi; mv qclean-remove-facebook-ads-suggested-pages-and-posts.xpi ../qclean-firefox.xpi
firefox-sdk:
wget https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-latest.zip
unzip jetpack-sdk-latest.zip
rm jetpack-sdk-latest.zip
mv addon-sdk-* firefox-sdk
opera-linux: QCLean-Opera-12
cd QCLean-Opera-12; zip -r qclean-opera-linux.oex *; mv qclean-opera-linux.oex ../
opera: QCLean-Opera-15+
cd QCLean-Opera-15+; zip -r qclean-opera.crx *; mv qclean-opera.crx ../
ie: QCLean-IE.js
cp QCLean-IE.js ~/Dropbox/Public/ie.js
clean:
rm -f qclean-chrome.zip
rm -f jetpack-sdk-latest.zip
rm -f qclean-fiefox.xpi
rm -f qclean-opera-linux.oex
rm -f qclean-opera.crx