From c446c8d5edefac10f29470bf8c9a54409ebaff5b Mon Sep 17 00:00:00 2001 From: xwartz Date: Wed, 10 Aug 2016 10:38:28 +0800 Subject: [PATCH 1/2] fix run script start --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6d5ca76..ed1f242 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build-main": "cross-env NODE_ENV=production node -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.electron.js --progress --profile --colors", "build-renderer": "cross-env NODE_ENV=production node -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.production.js --progress --profile --colors", "build": "npm run build-main && npm run build-renderer", - "start": "cross-env NODE_ENV=production electron ./", + "start": "cross-env NODE_ENV=production electron ./static/", "start-hot": "cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./app/main.development", "package": "cross-env NODE_ENV=production node -r babel-register package.js", "package-all": "npm run package -- --all", From f58419f69f17777da700449581020a7044f21dd3 Mon Sep 17 00:00:00 2001 From: xwartz Date: Wed, 10 Aug 2016 10:59:01 +0800 Subject: [PATCH 2/2] fix package script --- package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.js b/package.js index 0a976c5..7b5868b 100644 --- a/package.js +++ b/package.js @@ -20,7 +20,7 @@ const shouldBuildAll = argv.all || false; const DEFAULT_OPTS = { - dir: './', + dir: './static', name: appName, asar: shouldUseAsar, ignore: [