0.2.0 • Published 6 years ago

electron-comrade v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Electron Comrade

Electron Comrade is a CLI tool that allows you to run Electron apps with different versions of Electron. This is useful during development and testing, enabling you to quickly test a built app with different versions of Electron or even custom builds.

Usage

electron-comrade --electron path/to/electron --app path/to/app
  • -e, --electron: Version of Electron or path to an Electron build or distribution
  • -a, --app: Path to an app or a static build of an app (see below)

Examples

Running an installed app with a different version of Electron:

Windows:

electron-comrade --electron 3.0.9 --app ~\AppData\Local\slack\app-3.3.4\

macOS:

electron-comrade --electron 3.0.9 --app /Applications/Slack.app

Linux:

electron-comrade --electron 3.0.9 --app /usr/lib/slack

Running an installed app with a local build of Electron:

electron-comrade --electron ~\Code\electron\out\Debug --app ~\AppData\Local\slack\app-3.3.4\

Static App Build

A static app build is an Electron app, minus all of Electron. This is usually everything that'd you find in your app's resources folder. Instead of passing a fully installed app, you can also pass said static build - the folder containing electron.asar and the rest of your app.

Programmatic Usage

import { comrade } from 'electron-comrade'

comrade({
  app: 'path to app',
  electron: 'path to electron or version'
}).then(() => {
  console.log('All done!')
})

License

MIT, please see LICENSE for details.