-
Notifications
You must be signed in to change notification settings - Fork 24
/
README.txt
39 lines (22 loc) · 1.34 KB
/
README.txt
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
### Ubuntu 18.04 ###
Install dependencies:
> sudo apt install python3 default-jre
### Windows ###
If someone uses Windows 10 with the Linux subsystem (which might have to be run as administrator, don't really know why, but python fails to copy some files without it), then the above steps for Ubuntu could be used here as well.
If not, then install things manually:
- Python 3 http://python.org/download/
- Java https://www.java.com/en/download/manual.jsp
## To build the extension ##
> python3 build.py
## Notes ##
The build script will automatically download the following libraries:
- Closure compiler (for js) (see the exact version in the build.py, usually the latest)
https://github.com/google/closure-compiler/wiki/Binary-Downloads
- htmlcompressor (for html)
http://code.google.com/p/htmlcompressor/downloads/detail?name=htmlcompressor-1.5.3.jar
- yuicompressor 2.4.7 (for css)
https://github.com/yui/yuicompressor/downloads
The packages I publish on AMO are built on Windows with the Linux Subsystem.
The zip file itself won't be identical to the uploaded version (some files were copied/touched, and probably their timestamps don't match).
So, the content of the two archives should be compared (with some diff tool).
Also the compressed HTML files may differ between Linux and Windows (as it seems that htmlcompressor respects line endings).