mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
fix loading of index.html and dist files in prod
This commit is contained in:
parent
f31045f12f
commit
172baf896f
2 changed files with 2 additions and 2 deletions
2
index.js
2
index.js
|
|
@ -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'
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue