-
Notifications
You must be signed in to change notification settings - Fork 14
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
Help on building with preload script #10
Comments
I have observed that when you are trying to refer to files that gets packaged into the app.asar archive from Electron's main entry point, the application will complain that it cannot access files inside it.
I hope this resolves your issue. 😇 |
I managed to solve it using context separation. So it can keep it "safe".
adding it to files in
|
Nice Solution! |
I'm trying to build an app that uses preload script. It works on dev, but while building it says:
Unable to load preload script: C:\Users\jorda\AppData\Local\Programs\create-svelte-electron-app\resources\app.asar\preload.js
Tried on bot linux and windows.
The text was updated successfully, but these errors were encountered: