Git Product home page Git Product logo

cep-packager's Introduction

cep-packager

Build Status npm version

This packager allows you to create native macOS and Windows installers for a CEP extension. It takes a configuration file (it looks for it in the folder where you are running the command from) and a folder that contains the files that have to be packaged up (usually generated by cep-bundler) as input.

The easiest way to use this package is to use the cep-starter package, which already depends on the cep-packager and has a default config.

However, you can also use this package standalone, for that, follow the instructions below:

requirements

  • macOS
  • node.js
  • homebrew
  • wine
  • makensis
# install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install makensis
brew install wine makensis

install

npm install --save cep-packager

configure

  • Copy the cep-config.js file from the cep-starter package into you project folder.
  • Modify desired options

Run the packager:

./node_modules/.bin/cep-packager

Or, add to your package.json's scripts section:

"scripts": {
  "package": "cep-packager"
}

Then you can run the packager like this:

npm run package

CLI usage

Instead of using the cep-config.js configuration file you can also use CLI arguments or environment variables. For this, it is recommended to install cep-packager globally like this:

npm install -g cep-packager

Basic example:

cep-packager \
	--name testpackage \
	--bundle-id com.test.testpackage \
	--version 0.0.1 \
	--macos-resources $PWD/resources/macos \
	--windows-resources $PWD/resources/windows \
	--macos-dest $PWD/0.0.1.pkg \
	--windows-dest $PWD/0.0.1.exe \
	./testpackage

Example with signing:

cep-packager \
	--name testpackage \
	--bundle-id com.test.testpackage \
	--version 0.0.1 \
	--macos-resources $PWD/resources/macos \
	--windows-resources $PWD/resources/windows \
	--macos-dest $PWD/0.0.1.pkg \
	--windows-dest $PWD/0.0.1.exe \
	--windows-cert path/to/cert.p12
	--windows-cert-password passwordofp12file
	--zxp-cert path/to/cert.p12
	--zxp-cert-password passwordofp12file
	--macos-keychain login.keychain
	--macos-keychain-password loginkeychainpassword
	--macos-identifier "Developer ID Installer: Your Name"
	./testpackage

develop

git clone https://github.com/adobe-extension-tools/cep-packager.git
cd cep-packager
npm install
npm start

cep-packager's People

Contributors

vespakoen avatar vladdancer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.