crxmake

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2015 License: MIT Imports: 12 Imported by: 1

README

go-crxmake Latest Stable Version

Tool for building Chrome/Chromium extensions from a extension folder. Following the CRX Package Format specs

Installation

Binaries
wget https://github.com/mcuadros/go-crxmake/releases/download/v0.1.0/crxmake_v0.1.0_linux_amd64.tar.gz
tar -xvzf crxmake_v0.1.0_linux_amd64.tar.gz
cp-crxmake_v0.1.0_linux_amd64/crxmake /usr/local/bin/

browse the releases section to see other archs and versions

From sources
go get -u github.com/mcuadros/go-crxmake/...

Usage

Usage:
  crxmake [OPTIONS] [folder] [output]

Help Options:
  -h, --help    Show this help message

Arguments:
  folder:       folder where the extension is located.
  output:       output file name

License

MIT, see LICENSE

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Content *bytes.Buffer
}

Builder creates CRX files using as source a Chrome extension folder.

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new CRX Builder

func (*Builder) BuildZip

func (b *Builder) BuildZip(folder string) error

BuildZip loades the given folder and include all the files on the zip.

func (*Builder) WriteToFile

func (b *Builder) WriteToFile(w io.Writer) error

WriteToFile writes the generated CRX file.

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL