Browse Source

auto read electron version from package.json.

oldj 6 years ago
parent
commit
481f7010c6
5 changed files with 4 additions and 4 deletions
  1. 1 1
      app/package.json
  2. 1 1
      app/ui/app.css
  3. 0 0
      app/ui/app.js
  4. 1 1
      app/version.js
  5. 1 1
      gulpfile.js

+ 1 - 1
app/package.json

@@ -18,4 +18,4 @@
     "node-notifier": "^5.3.0",
     "request": "^2.87.0"
   }
-}
+}

File diff suppressed because it is too large
+ 1 - 1
app/ui/app.css


File diff suppressed because it is too large
+ 0 - 0
app/ui/app.js


+ 1 - 1
app/version.js

@@ -1 +1 @@
-exports.version = [3,3,13,5384];
+exports.version = [3,3,13,5386];

+ 1 - 1
gulpfile.js

@@ -11,7 +11,7 @@
  * 也可手动从 https://github.com/electron/electron/releases 下载最新版本,放到 ~/.electron 目录下
  * 淘宝镜像:https://npm.taobao.org/mirrors/electron/
  */
-const ELECTRON_VERSION = '3.1.8'
+const ELECTRON_VERSION = require('./package.json').devDependencies.electron.replace(/\^/, '')
 
 const fs = require('fs')
 const path = require('path')

Some files were not shown because too many files changed in this diff