Skip to content

Commit

Permalink
add auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
mb21 committed Jan 19, 2019
1 parent bfaeae4 commit b369f4f
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "panwriter",
"productName": "PanWriter",
"version": "0.5.0",
"version": "0.6.0",
"description": "Markdown editor with pandoc integration and paginated preview",
"main": "src/main.js",
"scripts": {
Expand All @@ -11,7 +11,8 @@
"clean": "rm -rf .cache .psc-package .psci_modules node_modules output dist",
"debug": "electron --inspect-brk=5858 .",
"dist": "electron-builder",
"dist-all": "electron-builder -mlw"
"dist-all": "electron-builder -mlw",
"release": "electron-builder -mlw --publish always"
},
"repository": "https://github.com/mb21/panwriter",
"keywords": [
Expand All @@ -20,6 +21,7 @@
],
"author": "Mauro Bieg",
"License": "GPL-3.0-or-later",
"publish": "github",
"build": {
"appId": "com.panwriter.app",
"fileAssociations": [
Expand Down Expand Up @@ -66,6 +68,7 @@
"dependencies": {
"babel-runtime": "^6.26.0",
"codemirror": "^5.42.2",
"electron-updater": "^4.0.6",
"fix-path": "^2.1.0",
"js-yaml": "^3.12.0",
"katex": "^0.10.0-rc.1",
Expand Down
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

// Modules to control application life and create native browser window
const {app, dialog, BrowserWindow, Menu} = require('electron')
, {autoUpdater} = require("electron-updater")
, path = require('path')
;

Expand Down Expand Up @@ -116,6 +117,7 @@ app.on('ready', function() {
if (windows.length === 0) {
createWindow(undefined);
}
autoUpdater.checkForUpdatesAndNotify();
})

// Quit when all windows are closed.
Expand Down
42 changes: 42 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,16 @@ [email protected], builder-util-runtime@^6.1.0:
fs-extra-p "^7.0.0"
sax "^1.2.4"

builder-util-runtime@~8.1.0:
version "8.1.1"
resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-8.1.1.tgz#f2f6fc43e33d26892bd491667fc746ad69bccc50"
integrity sha512-+ieS4PMB33vVE2S3ZNWBEQJ1zKmAs/agrBdh7XadE1lKLjrH4aXYuOh9OOGdxqIRldhlhNBaF+yKMMEFOdNVig==
dependencies:
bluebird-lst "^1.0.6"
debug "^4.1.1"
fs-extra-p "^7.0.0"
sax "^1.2.4"

[email protected], builder-util@~8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/builder-util/-/builder-util-8.0.0.tgz#ade1d5b0c62b9c260eb4fcb9be9918a28f2eb13b"
Expand Down Expand Up @@ -715,6 +725,13 @@ debug@^4.1.0:
dependencies:
ms "^2.1.1"

debug@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
dependencies:
ms "^2.1.1"

debuglog@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
Expand Down Expand Up @@ -921,6 +938,21 @@ [email protected]:
lazy-val "^1.0.3"
mime "^2.3.1"

electron-updater@^4.0.6:
version "4.0.6"
resolved "https://registry.yarnpkg.com/electron-updater/-/electron-updater-4.0.6.tgz#9c4f495ae0e80bf4425e3e1b801c5ed2ab933c2d"
integrity sha512-JPGLME6fxJcHG8hX7HWFl6Aew6iVm0DkcrENreKa5SUJCHG+uUaAhxDGDt+YGcNkyx1uJ6eBGMvFxDTLUv67pg==
dependencies:
bluebird-lst "^1.0.6"
builder-util-runtime "~8.1.0"
fs-extra-p "^7.0.0"
js-yaml "^3.12.0"
lazy-val "^1.0.3"
lodash.isequal "^4.5.0"
pako "^1.0.7"
semver "^5.6.0"
source-map-support "^0.5.9"

[email protected]:
version "2.0.13"
resolved "https://registry.yarnpkg.com/electron/-/electron-2.0.13.tgz#db3949cf4d9d4569be0cec010624746793a406c9"
Expand Down Expand Up @@ -1873,6 +1905,11 @@ lodash.clonedeep@~4.5.0:
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=

lodash.isequal@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA=

lodash.union@~4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash.union/-/lodash.union-4.6.0.tgz#48bb5088409f16f1821666641c44dd1aaae3cd88"
Expand Down Expand Up @@ -2522,6 +2559,11 @@ pagedjs@^0.1.30:
lodash "^4.17.11"
npm-check-updates "^2.15.0"

pako@^1.0.7:
version "1.0.8"
resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.8.tgz#6844890aab9c635af868ad5fecc62e8acbba3ea4"
integrity sha512-6i0HVbUfcKaTv+EG8ZTr75az7GFXcLYk9UyLEg7Notv/Ma+z/UG3TCoz6GiNeOrn1E/e63I0X/Hpw18jHOTUnA==

parse-color@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/parse-color/-/parse-color-1.0.0.tgz#7b748b95a83f03f16a94f535e52d7f3d94658619"
Expand Down

0 comments on commit b369f4f

Please sign in to comment.