-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron builder - Unable to find a valid app #633
Comments
It seems your
You don't need to escape
|
@develar Actually, I have two .asar files (app asar and electron.asar) under my dist/resources directory. Is this the expected behavior? In app.asar, build/main.min.js really exist, but the error I get is referencing to electron.asar. I don't understand the reason:
|
Yes, electron.asar it is pre bundled electron implementation. Does your app work before pack using electron-prebuilt? Maybe you can send me link to project code? |
Previously, I created a tag and build my app with electron-packager:
It worked fine! The problem is that now, for this release, I create a new tag, but I try to build my app with electron builder instead. I get the error discussed above. Furthermore, I try to build my app again with electron packager, but it didn't work now! I get the same problem. I checkout my app to the previoulsy working tag, and it neither work. Unfortunately, the code can not be distributed Thanks! |
Well, your code in any case is exposed when you build app :) You can send me exe file ;) |
Hi @develar , I solve the problem with electron packager. The problem was a directory containing technical docs (pdf, docs) inside the repository. I don't know the reason but this creates the exception. However, the problem continues with Electron Builder, which it is really what I need. |
This issue will be closed automatically — I will add checks to prevent such misconfiguration in the future. |
After building App with Electron builder, when I try to open my setup application, I get the following error:
The build is success, but on start:
A JavaScript error occurred in the main process Uncaught Exception: Error: Unable to find a valid app at Object.<anonymous> (E:\Project\dist\win-unpacked\resources\electron.asar\browser\init.js:128:9) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad(module.js:417:12) at Function.Module._load (module.js:409:3) at Function.Module.runMain (module.js:575:10) at run (bootstrap_node.js:360:7) at startup (bootstrap_node.js:152:9) at bootstrap_node.js:497:3
This is my electron asar under dist/win-unpacked/resource
This is my package.json
Thanks in advance!
The text was updated successfully, but these errors were encountered: