|
8 | 8 | "build-dll": "webpack --require babel-register --config webpack.config.renderer.dev.dll.js --progress",
|
9 | 9 | "build-main": "webpack --require babel-register --config webpack.config.main.prod.js --progress",
|
10 | 10 | "build-renderer": "webpack --require babel-register --config webpack.config.renderer.prod.js --progress",
|
| 11 | + "build-grpc": "rimraf app/node_modules/grpc/src/node && build install-app-deps", |
| 12 | + "clean": "rimraf node_modules app/node_modules dll app/dist", |
11 | 13 | "dev": "cross-env START_HOT=1 npm run start-renderer-dev",
|
| 14 | + "fetch-lnd": "node ./internals/scripts/fetch-lnd-for-packaging.js", |
12 | 15 | "flow": "flow",
|
13 | 16 | "flow-typed": "rimraf flow-typed/npm && flow-typed install --overwrite || true",
|
14 | 17 | "lint-base": "eslint --cache --format=node_modules/eslint-formatter-pretty",
|
|
21 | 24 | "lint-styles-fix": "npm run lint-styles-fix-base -- $npm_package_config_style_paths",
|
22 | 25 | "lint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check",
|
23 | 26 | "lint-ci": "npm run lint && npm run lint-styles && npm run flow",
|
24 |
| - "package": "npm run build && build --publish never", |
25 |
| - "package-all": "npm run build && build -mwl", |
26 |
| - "package-linux": "npm run build && build --linux", |
27 |
| - "package-win": "npm run build && build --win", |
28 |
| - "postinstall": "concurrently --raw \"npm:flow-typed\" \"npm:build-dll\" \"electron-builder install-app-deps\" \"node node_modules/fbjs-scripts/node/check-dev-engines.js package.json\"", |
| 27 | + "package": "npm run build && rimraf app/node_modules/grpc/src/node && npm run fetch-lnd && build --publish never", |
| 28 | + "package-mac": "npm run package -- --platform mac --arch all && npm run build-grpc", |
| 29 | + "package-win": "npm run package -- --platform win --arch all && npm run build-grpc", |
| 30 | + "package-linux": "npm_config_target_libc=glibc npm run package -- --platform linux --arch all && npm run build-grpc", |
| 31 | + "package-all": "npm run package-mac && npm run package-win && npm run package-linux", |
| 32 | + "postinstall": "concurrently --raw \"npm:flow-typed\" \"npm:build-dll\" \"build install-app-deps\" \"node node_modules/fbjs-scripts/node/check-dev-engines.js package.json\"", |
29 | 33 | "prestart": "npm run build",
|
30 | 34 | "start": "cross-env NODE_ENV=production electron ./app/",
|
31 | 35 | "start-main-dev": "cross-env HOT=1 NODE_ENV=development electron -r babel-register ./app/main.dev",
|
|
37 | 41 | "test-watch": "npm test -- --watch"
|
38 | 42 | },
|
39 | 43 | "config": {
|
40 |
| - "style_paths": "app/styles/*.scss app/components/**/*.scss" |
| 44 | + "style_paths": "app/styles/*.scss app/components/**/*.scss", |
| 45 | + "lnd-binary": { |
| 46 | + "binaryVersion": "0.4.2-beta" |
| 47 | + } |
41 | 48 | },
|
42 | 49 | "browserslist": "electron 2.0",
|
43 | 50 | "engines": {
|
|
81 | 88 | ]
|
82 | 89 | },
|
83 | 90 | "linux": {
|
| 91 | + "category": "Utility", |
84 | 92 | "target": [
|
85 | 93 | "deb",
|
86 | 94 | "AppImage"
|
|
94 | 102 | "resources/lnd.conf",
|
95 | 103 | "resources/rpc.proto",
|
96 | 104 | {
|
97 |
| - "from": "resources/bin/${platform}", |
| 105 | + "from": "resources/bin/${os}/${arch}", |
98 | 106 | "to": "bin",
|
99 | 107 | "filter": [
|
100 | 108 | "lnd*"
|
|
165 | 173 | "babel-register": "^6.26.0",
|
166 | 174 | "browserslist": "^4.0.0",
|
167 | 175 | "chalk": "^2.4.1",
|
| 176 | + "clean-webpack-plugin": "^0.1.19", |
168 | 177 | "concurrently": "^3.6.0",
|
169 | 178 | "connect-history-api-fallback": "^1.5.0",
|
170 | 179 | "cross-env": "^5.2.0",
|
|
204 | 213 | "jsdom": "^11.0.0",
|
205 | 214 | "koa-connect": "^2.0.1",
|
206 | 215 | "lint-staged": "^7.2.0",
|
| 216 | + "lnd-binary": "^0.3.4", |
207 | 217 | "minimist": "^1.2.0",
|
208 | 218 | "node-sass": "^4.9.0",
|
209 | 219 | "prettier": "^1.13.5",
|
|
233 | 243 | "devtron": "^1.4.0",
|
234 | 244 | "electron": "^2.0.5",
|
235 | 245 | "electron-debug": "^2.0.0",
|
| 246 | + "electron-is-dev": "^0.3.0", |
236 | 247 | "electron-store": "^2.0.0",
|
237 | 248 | "font-awesome": "^4.7.0",
|
238 | 249 | "history": "^4.6.3",
|
|
0 commit comments