get bundled path correctly

This commit is contained in:
Guillermo Rauch 2016-07-01 15:44:24 -07:00
parent 1f93fe8cd3
commit bc9353e263

View file

@ -12,7 +12,7 @@ if (isDev) {
} }
const url = 'file://' + resolve( const url = 'file://' + resolve(
__dirname, isDev ? __dirname : app.getAppPath(),
// in prod version, we copy over index.html and dist from 'app' // in prod version, we copy over index.html and dist from 'app'
// into one dist folder to avoid unwanted files in package // into one dist folder to avoid unwanted files in package
isDev ? 'app' : 'dist', isDev ? 'app' : 'dist',