diff --git a/package.json b/package.json index 1c38fee..ff1d598 100755 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "GXChain-light", + "name": "gxb-light", "version": "1.3.0", "description": "Advanced wallet interface for the GXChain.", "homepage": "https://github.com/gxchain/gxchain-light", @@ -30,7 +30,7 @@ "build-github": "NODE_ENV=production webpack --env.prod --env.hash --env.baseUrl='/wallet/' --progress --display-error-details --colors", "electron": "NODE_ENV=production webpack --env.prod --env.electron --env.hash --progress --display-error-details --colors ", "electron-nougly": "NODE_ENV=production webpack --env.prod --env.electron --env.noUgly --env.hash --progress --display-error-details --colors", - "postelectron": "del releases/*; copyfiles -a -f resources/* electron/; electron-builder --mac", + "postelectron": "del releases/*; copyfiles -a -f resources/* electron/; npm run packe; electron-builder --mac --dir", "packe": "webpack --config webpack.electron.config.js", "test": "electron electron/" }, @@ -138,15 +138,16 @@ "webpack-hot-middleware": "^2.14.0", "worker-loader": "^0.7.1" }, - "main": "./electron/electron.js", + "main": "./electron/index.js", "build": { - "productName": "gxchain-light", + "productName": "gxb-light", "appId": "gxb.io", "directories": { "output": "./releases" }, "files": [ - "./electron/**/*" + "./electron/**/*", + "!node_modules" ], "nsis": { "oneClick": false, @@ -157,14 +158,13 @@ "contents": [ { "x": 410, - "y": 190, + "y": 210, "type": "link", - "name": "gxb-light", "path": "/Applications" }, { "x": 130, - "y": 190, + "y": 210, "type": "file" } ] diff --git a/resources/index.js b/resources/index.js index d9568e3..be58df8 100644 --- a/resources/index.js +++ b/resources/index.js @@ -9,6 +9,7 @@ var devHelper = require('./dev_helper'); var windowStateKeeper = require('./window_state'); var fs = require('fs'); + var path = require('path'); var autoUpdater = require('electron-updater').autoUpdater; var mainWindow; @@ -19,6 +20,7 @@ height: 800 }); global.guid = mainWindowState.guid; + global.version = JSON.parse(fs.readFileSync(path.resolve(__dirname,"../package.json"))).version; // global.version = JSON.stringify(git.tag()); app.on('ready', function () { @@ -120,20 +122,6 @@ app.on("ready", function () { autoUpdater.checkForUpdates(); -// setTimeout(function () { -// createUpdateWindow({ -// message:`
zh-CN:
-// 1.更新logo
-// 2.发布正式版本v1.0.0
en-US:
-// 1.Update logo
-// 2.Release official version v1.0.0