electron-api-demos
Advanced tools
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() | ||
} | ||
}) | ||
}) | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14
18
3597776
7
142
2110
+ Addedelectron@^2.0.4
+ Addedelectron-log@^2.2.14
+ Addedupdate-electron-app@^1.1.1
+ Added@types/node@8.10.66(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedbuffer-crc32@0.2.13(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.21.0.3(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedelectron@2.0.18(transitive)
+ Addedelectron-download@3.3.0(transitive)
+ Addedelectron-is-dev@0.3.0(transitive)
+ Addedelectron-log@2.2.17(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextract-zip@1.7.0(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfd-slicer@1.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedfs-extra@0.30.0(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedgithub-url-to-object@4.0.6(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhome-path@1.0.7(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedini@1.3.8(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedis-url@1.2.4(transitive)
+ Addedisarray@0.0.11.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsonfile@2.4.0(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedklaw@1.3.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedms@2.0.02.1.3(transitive)
+ Addednugget@2.2.0(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedobject-keys@0.4.0(transitive)
+ Addedpath-exists@2.1.0(transitive)
+ Addedpend@1.2.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedpretty-bytes@4.0.2(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedprogress-stream@1.2.0(transitive)
+ Addedpsl@1.15.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedreadable-stream@1.1.142.3.8(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsingle-line-log@1.1.2(transitive)
+ Addedspeedometer@0.1.4(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstring_decoder@0.10.311.1.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedsumchecker@1.3.1(transitive)
+ Addedthrottleit@0.0.2(transitive)
+ Addedthrough2@0.2.3(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedupdate-electron-app@1.5.0(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)
+ Addedxtend@2.1.2(transitive)
+ Addedyauzl@2.10.0(transitive)