{
- "name": "dashboard",
- "version": "1.0.0",
- "description": "",
+ "name": "bytom-wallet",
+ "productName": "Bytom Wallet",
+ "build": {
+ "electronVersion": "1.8.3",
+ "appId": "io.bytom.desktop",
+ "directories": {
+ "buildResources": "./",
+ "output": "desktop"
+ },
+ "files": [
+ "node_modules/**/*",
+ "main.js",
+ "modules/**/*",
+ "static/**/*",
+ "public/**",
+ "!node_modules/electron/",
+ "!node_modules/electron/**/*"
+ ],
+ "mac": {
+ "icon": "static/images/app-icon/mac/app.icns",
+ "artifactName": "${name}-desktop-${version}-${os}.${ext}",
+ "category": "public.app-category.wallet",
+ "extraResources": "bytomd/bytomd-darwin_amd64",
+ "target": "zip"
+ },
+ "dmg": {
+ "contents": [
+ {
+ "x": 129,
+ "y": 250
+ },
+ {
+ "x": 410,
+ "y": 247,
+ "type": "link",
+ "path": "/Applications"
+ }
+ ]
+ },
+ "nsis": {
+ "perMachine": true,
+ "oneClick": false
+ },
+ "win": {
+ "icon": "static/images/app-icon/win/app.ico",
+ "artifactName": "${name}-desktop-${version}-${os}-${arch}.${ext}",
+ "extraResources": "bytomd/bytomd-windows_${env.ARCH_VARIABLE}.exe",
+ "target": "zip"
+ },
+ "linux": {
+ "maintainer": "bytom contributors <zhiting.fly@bytom.io>",
+ "artifactName": "${name}-desktop-${version}-${os}-${arch}.${ext}",
+ "executableName": "Bytom Wallet",
+ "extraResources": "bytomd/bytomd-linux_${env.ARCH_VARIABLE}",
+ "target": "zip",
+ "category": "Finance",
+ "packageCategory": "wallet",
+ "icon": "static/images/app-icon/png/app.png"
+ },
+ "asar": true
+ },
+ "version": "1.0.10",
+ "description": "Bytom Wallet Desktop",
+ "main": "main.js",
"scripts": {
"build:dll": "node ./bin/dependencies.js",
"postinstall": "npm run build:dll",
- "build": "NODE_ENV=production webpack --config webpack/webpack.app.js",
+ "electron-dev": "DEV_URL=http://localhost:3000/index.html electron --inspect=5858 main.js .",
+ "build": "NODE_ENV=production webpack --config webpack/webpack.app.js ",
"lint": "eslint \"src/**\"",
"start": "hjs-dev-server webpack/webpack.app.js --hot --host 0.0.0.0",
- "generate-component": "babel-node bin/generate.js component"
+ "generate-component": "babel-node bin/generate.js component",
+ "package": "npm run build && npm-run-all package:* ",
+ "package:mac": "electron-builder -m ",
+ "package:win-32": "ARCH_VARIABLE=386 electron-builder --win --ia32",
+ "package:win-64": "ARCH_VARIABLE=amd64 electron-builder --win --x64 ",
+ "package:linux-32": "ARCH_VARIABLE=386 electron-builder -l --ia32",
+ "package:linux-64": "ARCH_VARIABLE=amd64 electron-builder -l --x64"
},
- "author": "Chain",
- "license": "",
+ "author": "Bytom",
+ "license": "AGPL-3.0-only",
"browserslist": [
"> 1%",
"last 3 versions",
],
"dependencies": {
"babel-polyfill": "~6.16.0",
+ "babel-register": "~6.22.0",
"bignumber.js": "^7.2.1",
"bootstrap-sass": "~3.4.1",
"btoa": "^1.1.2",
"classnames": "~2.2.5",
+ "electron-settings": "~3.1.4",
"fetch-ponyfill": "~3.0.2",
+ "glob": "~7.1.2",
"i18next": "^11.9.1",
"i18next-browser-languagedetector": "^2.2.3",
- "lodash": "~4.17.11",
+ "lodash": "~4.17.14",
+ "log4js": "^3.0.5",
+ "net": "^1.0.2",
"moment": "^2.22.1",
"moment-timezone": "^0.5.17",
"pluralize": "~3.0.0",
"react-router": "~2.6.0",
"react-router-redux": "~4.0.5",
"react-router-scroll": "~0.3.2",
- "redux": "~3.5.2",
+ "redux": "~4.0.4",
"redux-form": "~5.3.6",
"redux-thunk": "~2.1.0",
"reselect": "^3.0.0",
"sha.js": "^2.4.8",
+ "tcp-port-used": "^1.0.1",
+ "toml": "~2.3.3",
"uuid": "~2.0.2"
},
"devDependencies": {
"babel-preset-es2015": "~6.9.0",
"babel-preset-react": "~6.5.0",
"babel-preset-react-hmre": "~1.1.1",
- "babel-register": "~6.22.0",
"bootstrap-loader": "~1.0.10",
"braces": "^3.0.2",
"chai": "~3.5.0",
"command-line-args": "~3.0.1",
"command-line-commands": "~1.0.4",
"css-loader": "0.26.1",
- "eslint": "~3.7.0",
- "eslint-plugin-react": "~6.4.0",
+ "electron": "~1.8.8",
+ "electron-builder": "^20.10.0",
+ "eslint": "~4.18.2",
+ "eslint-plugin-react": "~7.14.2",
"extend": "~3.0.2",
"file-loader": "~0.9.0",
"hjs-webpack": "~8.4.3",
"js-yaml": "^3.13.1",
"json-loader": "~0.5.4",
"nock": "~4.0.0",
+ "npm-run-all": "^4.1.2",
"node-sass": "~4.12.0",
"postcss-loader": "~1.1.0",
"react-hot-loader": "~1.3.0",