-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
46 lines (28 loc) · 1.46 KB
/
README
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
buildcrx
========
buildcrx v0.2 Jan 2014
Copyright (c) 2010 Kyle L. Huff
Description
-----------
Standalone binary for Windows/Linux to RSA sign and pack a zip-file containing chrome extension data.
(this utility does not require the chrome/chromium binary, it can run standalone on a build-system)
Statically includes libssl from the OpenSSL project.
Running/Options
---------------
buildcrx accepts 3 arguments -
* The zipfile (a normal zipfile containing the contents of your extension directory)
* The Private Key file used for signing in PEM format.
* The output path to place the signed .crx packed extension - if the output path is not specified it will create the .crx file in the same directory as the zipfile.
buildcrx <ZIP file> <PEM file> (optional <OUTPUT PATH/FILE>)
Building
--------
To cross-compile this utility for windows on linux using mingw, simply execute:
make CC=i586-mingw32msvc-gcc
To build on a windows machine, either modify the makefile to your needs, or in this directory just run:
gcc -L libs/openssl/winnt_x86-msvc -I include/openssl -g -Wall -o bin/winnt_x86-msvc/buildcrx.exe buildcrx.c -lm -DDEBUG -lcrypto -lgdi32
Then copy bin/winnt_x86-msvc/buildcrx.exe to where you want to use it.
OpenSSL
-------
OpenSSL version 1.0.0a
Compiled linux libraries using gcc with configure flags: "no-idea no-mdc2 no-rc5"
Cross-compiled windows libs using mingw with configure flags "no-idea no-mdc2 no-rc5 static mingw:i586-mingw32msvc-gcc"