Closed felixrieseberg closed 11 months ago
even if these files aren't linted for some reason 😆
Added linting and testing to entry-asar
(building off @dsanders11's PR)
:tada: This PR is included in version 1.4.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
we are getting an error on missing app #80 so i tried to add a pull request for it but we dont have even electron install in this package here is the #81 what do you think about it @felixrieseberg
Electron will set the
appPath
by looking forpackage.json
. When using this module, this will end up being insideapp.asar
.The problem is that from point on forward, APIs like
webContents.loadFile()
will be using thisapp.asar
as the application's root.webContents.loadFile('renderer/index.html')
will no longer work, since that file won't be insideapp.asar
- it'll actually be insideapp-x64.asar
orapp-arm64.asar
.Users can handle this problem in user land, but I assume that you need to know Electron pretty darn well. I propose that we fix this directly in the default asar. The same issue also exists with
app
folders, which this PR fixes, too.