OLD | NEW |
1 Adblock Plus for Chrome, Opera and Safari | 1 Adblock Plus for Chrome, Opera and Safari |
2 ========================================= | 2 ========================================= |
3 | 3 |
4 This repository contains the platform-specific Adblock Plus source code for | 4 This repository contains the platform-specific Adblock Plus source code for |
5 Chrome, Opera and Safari. It can be used to build Adblock Plus for these | 5 Chrome, Opera and Safari. It can be used to build Adblock Plus for these |
6 platforms, generic Adblock Plus code will be extracted from other repositories | 6 platforms, generic Adblock Plus code will be extracted from other repositories |
7 automatically (see _dependencies_ file). | 7 automatically (see _dependencies_ file). |
8 | 8 |
9 Building | 9 Building |
10 --------- | 10 --------- |
11 | 11 |
12 ### Requirements | 12 ### Requirements |
13 | 13 |
14 - [Mercurial](https://www.mercurial-scm.org/) or [Git](https://git-scm.com/) (wh
ichever you used to clone this repository) | 14 - [Mercurial](https://www.mercurial-scm.org/) or [Git](https://git-scm.com/) (wh
ichever you used to clone this repository) |
15 - [Python 2.7](https://www.python.org) | 15 - [Python 2.7](https://www.python.org) |
16 - [The Jinja2 module](http://jinja.pocoo.org/docs) | 16 - [The Jinja2 module](http://jinja.pocoo.org/docs) |
17 - [The PIL module](http://www.pythonware.com/products/pil/) | 17 - [The PIL module](http://www.pythonware.com/products/pil/) |
18 - For signed Chrome builds: [M2Crypto module](https://github.com/martinpaljak/M2
Crypto) | 18 - For signed builds: [PyCrypto module](https://www.dlitz.net/software/pycrypto/) |
19 - For signed Safari builds: A [patched version of the xar command line tool](htt
ps://github.com/mackyle/xar/) | |
20 | 19 |
21 ### Building the extension | 20 ### Building the extension |
22 | 21 |
23 Run one of the following commands in the project directory, depending on your | 22 Run one of the following commands in the project directory, depending on your |
24 target platform: | 23 target platform: |
25 | 24 |
26 ./build.py -t chrome build -k adblockpluschrome.pem | 25 ./build.py -t chrome build -k adblockpluschrome.pem |
27 ./build.py -t safari build -k adblockplussafari.pem | 26 ./build.py -t safari build -k adblockplussafari.pem |
28 | 27 |
29 This will create a build with a name in the form | 28 This will create a build with a name in the form |
(...skipping 28 matching lines...) Expand all Loading... |
58 Running the unit tests | 57 Running the unit tests |
59 ---------------------- | 58 ---------------------- |
60 | 59 |
61 To verify your changes you can use the unit test suite located in the _qunit_ | 60 To verify your changes you can use the unit test suite located in the _qunit_ |
62 directory of the repository. In order to run the unit tests go to the | 61 directory of the repository. In order to run the unit tests go to the |
63 extension's Options page, open the JavaScript Console and type in: | 62 extension's Options page, open the JavaScript Console and type in: |
64 | 63 |
65 location.href = "qunit/index.html"; | 64 location.href = "qunit/index.html"; |
66 | 65 |
67 The unit tests will run automatically once the page loads. | 66 The unit tests will run automatically once the page loads. |
OLD | NEW |