Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dblsqd-electron

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dblsqd-electron

Drop-in Electron UI for DBLSQD

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

This module provides a drop-in auto-update solution for Electron applications.

Installation

You can install dblsqd-electron via npm. Add dblsqd-electron to the package.json of your your Electron app or install it via the command-line: npm i --save dblsqd-sdk

Usage

You can add a complete auto-update UI to your Electron app with two lines of code (or four lines if you insist on counting the require statements):

const {Feed} = require("dblsqd-sdk")
const {UpdateWindow} = require("dblsqd-electron")

let feed = new Feed("https://feeds.dblsqd.com/:app_token", ":channel", ":os", ":arch")
let updateWindow = new UpdateWindow(feed)

Configuration

Setting an Icon

UpdateWindow can display an icon when the icon option is set:

new UpdateWindow(feed, {icon: "/path/to/icon.svg"})

Changing the show behavior

By default, an UpdateWindow is shown automatically when a new update is available. You can change this with the showOn option:

//Default behavior: Show when new update is available
new UpdateWindow(feed, {showOn: "will-quit"})

//Show when will-quit event is fired by Electron app
new UpdateWindow(feed, {showOn: "will-quit"})

//Only show when show() is called manually.
new UpdateWindow(feed, {showOn: "manual"})

FAQs

Package last updated on 29 Aug 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc