-
-
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
feat: write asar integrity resource on windows #8245
feat: write asar integrity resource on windows #8245
Conversation
🦋 Changeset detectedLatest commit: 52eaa08 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for car-park-attendant-cleat-11576 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I'm not sure if I'm supposed to commit the lock file. On one hand, it has to be updated because I installed a new dependency, on the other - it seems like the format has changed and as a result the diff is too large. Any thoughts? |
@indutny-signal what version of pnpm are you running? Right now, the CI is locked to 8.9.0 so the pnpm lockfile should be regenerated with that version. Separately, I can look into updating our pnpm version in the CI, but am swamped with work and some life events right now and probably won't be able to pick that up in the near future. |
e74ebac
to
60e6149
Compare
@mmaietta thank you for the exact version number! It should be fixed now. |
Out of curiosity (I'd love to learn more on this topic), how/where did you find the information for |
@mmaietta electron folks gave me a link to https://github.com/electron/packager/blob/main/src/resedit.ts :) |
FWIW, I believe that both resedit not pe-edit (its dependency) are pure-JS libraries. |
Thanks for the link! I'll TAL. Looks like there's an import error during compilation though
|
@mmaietta thanks! I'm trying to figure it out... It seems to be something specific to how jest does the resolution... |
Electron 30-x-y added support for ASAR integrity fuse on Windows. When enabled the app would fetch the ELECTRONASAR resource out of the executable file and use it to verify the integrity of the ASAR when reading the data from it.
60e6149
to
51dc800
Compare
Alright, I substituted the cjs import with an async esm import. Let me know if this works! |
That obviously didn't work. I'm surprised that test-windows/test-linux fails while test-mac works fine (as confirmed locally) |
@mmaietta I didn't realize that CI was running on previous commit (before force-push). Do you mind restarting it? |
Sure thing! I've restarted the CI, not sure what commit it'll pull from though, so we'll see what happens. At worst, you may just need to push an empty commit to kick the CI to behave 🙂 |
Thank you! Looks like empty commit is the way to go sadly. |
Bah, even this fails with the same error:
Maybe need to try a different release version of Btw, easy way to test this locally instead of waiting for me to kick off the CI/CD is to run locally
|
e8c045c
to
52eaa08
Compare
@mmaietta downgraded. Looks like 1.7.0 was the last CJS release. I just tried the test command locally and got:
|
Ah, the true error was above:
|
Thank you! |
Electron 30-x-y added support for ASAR integrity fuse on Windows. When enabled the app would fetch the ELECTRONASAR resource out of the executable file and use it to verify the integrity of the ASAR when reading the data from it.