Add 'New update available' dialog to the electron version (#299)

* build(tsconfig): Rename root tsconfig.json -> tsconfig.base.json

* feat(auto-update): Add update dialog

When new update available than new message will visible of the top of the screen with 2 buttons 'Update' and 'Close'.
- Update button: Update the application (close and restart)
- Close button: Hide the updatePanel

* fix(auto-update): Add types to the event methods

* style: Add comma after SafeStylePipe import

I forgot add the comma when I rebased the branch

* fix(auto-update): Use electron-is-dev package to detect dev build

I removed the isDev() function from the shared util library because it is electron specific code.

* ci: Change osx_image: xcode8.3

Recommended after the last travis upgrade

* feat(auto-update): Add auto update settings page and save config save on electron platform

* ci: Fix osx image

* ci: Upgrade the electron builder -> 19.6.1

The builder now use the 2 package.json structure and build only
the necessary dependencies.
This commit is contained in:
Róbert Kiss
2017-06-22 14:22:54 +02:00
committed by László Monda
parent 2598109f8c
commit 121807a65a
49 changed files with 1028 additions and 129 deletions

View File

@@ -16,17 +16,23 @@
"@ngrx/store-devtools": "3.2.4",
"@ngrx/store-log-monitor": "3.0.2",
"@types/core-js": "0.9.35",
"@types/electron-devtools-installer": "^2.0.2",
"@types/electron-settings": "^3.0.0",
"@types/file-saver": "0.0.1",
"@types/jquery": "3.2.1",
"@types/node": "^6.0.78",
"@types/usb": "^1.1.3",
"angular2-template-loader": "0.6.2",
"copy-webpack-plugin": "^4.0.1",
"devtron": "^1.4.0",
"electron": "1.6.11",
"electron-builder": "^19.4.2",
"electron-builder": "19.6.1",
"electron-debug": "^1.1.0",
"electron-devtools-installer": "^2.2.0",
"electron-rebuild": "^1.5.7",
"expose-loader": "^0.7.1",
"html-loader": "0.4.5",
"jsonfile": "3.0.0",
"node-sass": "^4.5.2",
"npm-run-all": "4.0.2",
"path": "^0.12.7",
@@ -58,12 +64,18 @@
"buffer": "^5.0.6",
"core-js": "2.4.1",
"dragula": "^3.7.2",
"electron-is-dev": "0.1.2",
"electron-log": "2.2.6",
"electron-settings": "3.0.14",
"electron-updater": "2.2.0",
"filesaver.js": "^0.2.0",
"font-awesome": "^4.6.3",
"jquery": "3.2.1",
"json-loader": "^0.5.4",
"ng2-dragula": "1.5.0",
"ng2-select2": "1.0.0-beta.10",
"ngrx-store-freeze": "^0.1.9",
"reselect": "3.0.1",
"rxjs": "^5.4.1",
"select2": "^4.0.3",
"sudo-prompt": "^7.0.0",
@@ -76,7 +88,7 @@
"postinstall": "run-p build:usb \"symlink -- -i\" ",
"test": "cd ./test-serializer && node ./test-serializer.js",
"lint": "run-s -scn lint:ts lint:style",
"lint:ts": "tslint \"electron/**/*.ts\" \"web/**/*.ts\" \"shared/**/*.ts\" \"test-serializer/**/*.ts\"",
"lint:ts": "tslint \"electron/src/**/*.ts\" \"web/src/**/*.ts\" \"shared/**/*.ts\" \"test-serializer/**/*.ts\"",
"lint:style": "stylelint \"electron/**/*.scss\" \"web/**/*.scss\" \"shared/**/*.scss\" --syntax scss",
"build": "run-p build:web build:electron",
"build:web": "webpack --config \"web/src/webpack.config.js\"",
@@ -91,6 +103,7 @@
"symlink": "node ./tools/symlinker",
"standard-version": "standard-version",
"pack": "node ./scripts/release.js",
"release": "node ./scripts/release.js"
"install:build-deps": "cd electron/dist && npm i",
"release": "npm run install:build-deps && node ./scripts/release.js"
}
}