Skip to content

adobe-extension-tools/cep-packager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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