Skip to content
/ buildcrx Public
forked from kylehuff/buildcrx

Standalone binary for Windows/Linux/Mac to pack signed chrome extension without needing the chrome binary

License

Notifications You must be signed in to change notification settings

aa333/buildcrx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buildcrx

buildcrx v0.2 Oct 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 (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"

About

Standalone binary for Windows/Linux/Mac to pack signed chrome extension without needing the chrome binary

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 93.5%
  • C++ 6.4%
  • Makefile 0.1%