Merge pull request #507 from feross/fix-is-production

Fix isProduction() detection
This commit is contained in:
Feross Aboukhadijeh
2016-05-13 13:38:41 -07:00

View File

@@ -69,7 +69,7 @@ function isProduction () {
return false
}
if (process.platform === 'darwin') {
return !/\/Electron\.app\/Contents\/MacOS\/Electron$/.test(process.execPath)
return !/\/Electron\.app\//.test(process.execPath)
}
if (process.platform === 'win32') {
return !/\\electron\.exe$/.test(process.execPath)