You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

electron-comrade

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

0.2.0
latest
Source
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 24 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts