Skip to content

Commit

Permalink
Rename pack script to build
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Sep 18, 2017
1 parent 1df140e commit 1d4527a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"start": "electron ./",
"bundle": "webpack --progress",
"watch": "webpack --progress --watch",
"pack": "npm run bundle && build --dir",
"build": "npm run bundle && build --dir",
"dist:macos": "npm run bundle && build -m --x64",
"dist:linux": "npm run bundle && build -l --ia32 --x64",
"dist:win32": "npm run bundle && build -w --ia32",
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ app.on('ready', () => {
isReady = true

if (!openfile && process.argv.length >= 2) {
if (!process.argv[0].includes('electron.exe')) {
if (process.argv[0].slice(-'electron.exe'.length) !== 'electron.exe') {
openfile = process.argv[1]
} else if (process.argv.length >= 3) {
openfile = process.argv[2]
Expand Down

0 comments on commit 1d4527a

Please sign in to comment.