fix loading of index.html and dist files in prod

This commit is contained in:
Guillermo Rauch 2016-07-01 14:38:35 -07:00
parent f31045f12f
commit 172baf896f
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -10,5 +10,5 @@ npm install
npm run build
cd -
cp app/index.html dist/
cp app/dist/* dist/
cp -r app/dist dist/
electron-packager ./ --platform=darwin --out=dist --arch=x64 --app-bundle-id="co.zeit.hyperterm" --app-version="0.1.0" --osx-sign --icon=icon.icns --ignore=app