Closed asjhita closed 1 month ago
Can you confirm that it doesn't work when you remove this from your config? As that's what's causing the main.js
to not be in the asar AND also in the resources folder instead.
"asar": false,
"asarUnpack": [
"main.js"
],
"extraResources": [
{
"from": "main.js",
"to": "main.js"
}
],
If you could provide a minimum reproducible repo, that'd be a great start for me to be able to investigate from. This sounds like a local configuration issue though
Very sorry for the issue, I had fixed it and found it was indeed a local configuration error instead. Although I fixed it, I decided to use NSIS instead of electron/builder because it wouldn't accept my 2056x2056 image or my 512x512 so I have it sorted out and thank you for your help.
This is my code:
I should probably use web hosted images but that is not my problem. The main.js file won't go in the app.asar file because I keep getting the error message:
I even tried to manually unpack app.asar, put the main.js in the extract folder and then repack it but when I ran the script, it had just left the app.asar and it was in the resources folder with app.asar instead of in it. The code I ran to achieve this:
Please help me fix this problem. Thank you.