Skip to content

andyps/crxbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRX builder

Build chromium extensions

Requirements

  • PHP version must be at least 5.3
  • zlib extension
  • openssl extension

Installation

Add the following dependencies to your projects composer.json file:

    "require": {
        # ..
        "andyps/crxbuild": "1.0.*@dev"
        # ..
    }

How to make crx extension

  1. Command line
$ php vendor/bin/crxbuild.php --extension_dir=<extension dir> --key_file=<private key path> --output_dir=<output dir>

output_dir is an optional. It is your current directory by default. You may also use crxbuild.sh (Linux) and crxbuild.bat (Windows), so it'll look like

$ ./vendor/bin/crxbuild.sh --extension_dir=<extension dir> --key_file=<private key path>
  1. PHP
<?php
require 'vendor/autoload.php';

$crxBuild = new CrxBuild(array(
  'extension_dir' => $extensionDirectory,
  'key_file' => $pathToYourPrivateKey,
  'output_dir' => $whereToPlaceZipAndExtensionCrxFiles //optional
));
$crxBuild->build();

About

build chromium extensions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published