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

electron-api-demos

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-api-demos - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

23

main.js

@@ -0,5 +1,8 @@

require('update-electron-app')({
logger: require('electron-log')
})
const path = require('path')
const glob = require('glob')
const {app, BrowserWindow} = require('electron')
const autoUpdater = require('./auto-updater')

@@ -47,3 +50,2 @@ const debug = /--debug/.test(process.argv[2])

createWindow()
autoUpdater.initialize()
})

@@ -86,19 +88,4 @@

files.forEach((file) => { require(file) })
autoUpdater.updateMenu()
}
// Handle Squirrel on Windows startup events
switch (process.argv[1]) {
case '--squirrel-install':
autoUpdater.createShortcut(() => { app.quit() })
break
case '--squirrel-uninstall':
autoUpdater.removeShortcut(() => { app.quit() })
break
case '--squirrel-obsolete':
case '--squirrel-updated':
app.quit()
break
default:
initialize()
}
initialize()
{
"name": "electron-api-demos",
"productName": "Electron API Demos",
"version": "1.5.0",
"version": "1.5.1",
"description": "Electron interactive API demos",

@@ -38,3 +38,2 @@ "main": "main.js",

"devtron": "^1.3.0",
"electron": "^2.0.4",
"electron-packager": "^12.1.0",

@@ -52,6 +51,9 @@ "electron-winstaller": "^2.2.0",

"dependencies": {
"electron": "^2.0.4",
"electron-log": "^2.2.14",
"electron-settings": "^3.0.7",
"electron-shortcut-normalizer": "^1.0.0",
"glob": "^7.1.0",
"highlight.js": "^9.3.0"
"highlight.js": "^9.3.0",
"update-electron-app": "^1.1.1"
},

@@ -58,0 +60,0 @@ "standard": {

@@ -51,4 +51,4 @@ # <img src="https://cloud.githubusercontent.com/assets/378023/15172388/b2b81950-1790-11e6-9a7c-ccc39912bb3a.png" width="60px" align="center" alt="Electron API Demos icon"> Electron API Demos

* Simplified Chinese translation of this app is available at [`demopark/electron-api-demos-Zh_CN`](https://github.com/demopark/electron-api-demos-Zh_CN).
* Tradition Chinese translation of this app is available at [`CalvertYang/electron-api-demos-zh-Hant`](https://github.com/CalvertYang/electron-api-demos-zh-Hant).
* Traditional Chinese translation of this app is available at [`CalvertYang/electron-api-demos-zh-Hant`](https://github.com/CalvertYang/electron-api-demos-zh-Hant).
Note: these versions are maintained by outside contributors and may not always be in sync with this version.

@@ -13,3 +13,2 @@ #!/usr/bin/env node

checkToken()
.then(checkHerokuLoginStatus)
.then(zipAssets)

@@ -19,3 +18,2 @@ .then(createRelease)

.then(publishRelease)
.then(deployToHeroku)
.catch((error) => {

@@ -34,16 +32,2 @@ console.error(error.message || error)

function checkHerokuLoginStatus () {
return new Promise((resolve, reject) => {
console.log('Checking Heroku login status')
childProcess.exec('heroku whoami', (error, stdout, stderr) => {
if (error) {
reject('You are not logged in to GitHub\'s Heroku Enterprise account. To log in, run this command:\n$ heroku login --sso')
} else {
resolve()
}
})
})
}
function zipAsset (asset) {

@@ -80,3 +64,3 @@ return new Promise((resolve, reject) => {

name: 'electron-api-demos-windows.zip',
path: path.join(outPath, 'ElectronAPIDemos-win32-ia32')
path: path.join(outPath, 'Electron API Demos-win32-ia32')
}, {

@@ -195,23 +179,1 @@ name: 'electron-api-demos-linux.zip',

}
function deployToHeroku () {
return new Promise((resolve, reject) => {
console.log('Deploying to heroku')
const herokuCommand = [
'heroku',
'config:set',
'-a',
'github-electron-api-demos',
`ELECTRON_LATEST_RELEASE=${version}`
].join(' ')
childProcess.exec(herokuCommand, (error) => {
if (error) {
reject(error)
} else {
resolve()
}
})
})
}
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