diff --git a/index.js b/index.js index 254ac3db..4b09a361 100644 --- a/index.js +++ b/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' ); diff --git a/package.sh b/package.sh index 1c17c0ed..4dd977a8 100755 --- a/package.sh +++ b/package.sh @@ -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