I have been trying to package up my app with no luck. At first I was trying to use electron-packager to package up my whole project without ng build, but this gave me a static index.html, breaking my angular 2 app. Now I am using electron-packager on my dist folder after using ng build and I am getting this error:
Uncaught Exception:
Error: Unable to find a valid app
at Object.<anonymous> .../App.app/Contents/Resources/electron.asar/browser/init.js:121:9)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:402:7)
at startup (bootstrap_node.js:157:9)
at bootstrap_node.js:521:3
I am passing:
"macBuild":"electron-packager ./dist App --out=releases/ --platform=darwin --arch=all --ignore=electron-packager --icon=icon.icns --overwrite --asar",
This also deletes my node_modules for some reason after it builds.
Originally I was passing:
"macBuild":"electron-packager . App --out=releases/ --platform=darwin --arch=all --ignore=electron-packager --icon=icon.icns --overwrite --asar",
But that gave me a static index
I have been trying to package up my app with no luck. At first I was trying to use electron-packager to package up my whole project without ng build, but this gave me a static index.html, breaking my angular 2 app. Now I am using electron-packager on my dist folder after using ng build and I am getting this error:
I am passing:
This also deletes my node_modules for some reason after it builds.
Originally I was passing:
But that gave me a static index