Socket
Socket
Sign inDemoInstall

electron-comrade

Package Overview
Dependencies
99
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
5.07 MB
Created
Weekly downloads
 

Readme

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

Last updated on 24 Jan 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc