-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Old source version used in app.asar within pnpm, npm and yarn workspace projects #8982
Comments
Considering how complex I consider the Configuration object, this is absolutely lovely to hear! Thank you 🙂 Quick Qs:
So I'm not familiar with codesandbox tbh, I don't think I've used it before. How do I fork it to a local env? |
Thank you for your quick response! Much appreciated!
Here are the steps for reproducing the bug:
|
So I ran into this issue when inspecting through vscode's IDE which leads me to think it's an IDE caching issue, as I was unable to reproduce it with a simple
Can you please try the script above locally? Basically, it'll auto-extract the asar contents to |
I initially thought it was a VSCode caching problem as well, which is why after having tried it using the Atom editor as well, I dismissed that idea. The tested it using the script you provided and indeed the out content matches the content in test-asar. However, for some reason the dist/mac-arm64/electron-vite-debug.app/Contents/Resources/app.asar content does not match the content of test-asar - neither in VSCode nor in Atom. Maybe VSCode and Atom use similar or same caching functionality. |
Hello everyone,
first of all thanks for developing this easy-to-use project!
I came across this peculiar problem:
electron-builder uses an old code source for the app.asar assets, when the following conditions are met:
I use electron-vite for scaffolding the app package and building the source into a directory called "out" in the app package's root. When starting the editor, opening the project and running the electron-builder --"target" (e.g. electron-builder --mac) command (tested mac and windows nsis) the source from out is correctly copied into the app.asar, but subsequent calls of the command result in the source from the first run being bundled to app.asar. Only after relaunching the editor does the electron-builder --"target" command work for the first try.
This is a recreation of an npm monorepo with an app package, that uses electron-builder for building the app: https://codesandbox.io/p/devbox/xq7hs8
Installing the packages seems to not work in the sandbox due to electron-builder failing, but forking it to the local environment should work.
This is the electron-builder config yml used:
I'd be happy to provide further information if needed.
Thanks in advance!
The text was updated successfully, but these errors were encountered: