0.0.28 • Published 5 years ago

cep-packager v0.0.28

Weekly downloads
3
License
MIT
Repository
-
Last release
5 years ago

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
0.0.28

5 years ago

0.0.27

5 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago