Skip to content

Commit

Permalink
fix: fix wallet missing issue caused by package.name
Browse files Browse the repository at this point in the history
  • Loading branch information
lanhaoxiang committed Mar 21, 2019
1 parent 862881c commit 38510a4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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/"
},
Expand Down Expand Up @@ -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,
Expand All @@ -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"
}
]
Expand Down
16 changes: 2 additions & 14 deletions resources/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion webpack.electron.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ module.exports = {
electron: path.resolve(root_dir, "resources/index.js")
},
output: {
filename: '[name].js',
filename: 'index.js',
libraryTarget: 'commonjs2',
path: path.join(__dirname, './electron')
},
node:{
__dirname: false,
__filename: false
},
resolve: {
modules: ["node_modules", path.resolve(__dirname, './resources')],
extensions: ['.js', '.vue', '.json', '.css', '.node']
Expand Down

0 comments on commit 38510a4

Please sign in to comment.