-
-
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
NSIS does not work on GitHub Actions #8613
Comments
Does this reproduce locally as well? There should be a file at |
makensis.exe exists locally on my machine. |
Tbh, I've never seen this issue before and electron-builder's unit tests run on the latest windows/mac/ubuntu runners without issue, so I'm confused as to why that file doesn't exist in the github runner. Was this working previously for you? To block you in the interim, can you set this var to the directory that 3.10.0
|
@mmaietta
You can reproduce this issue using the GitHub repository at https://github.com/minai621/builder-test To reproduce on Windows:
The error occurs during the NSIS step of the build process. |
@beyondkmp would you be willing to take a look at this? |
@mmaietta
|
The GH CI/CD runs on node 18 currently, and all historical CI runs completed successfully on |
Using pnpx will report an error about makensis.exe not being found. Because Windows has a maximum path length of 260 characters. This can be resolved by setting However, my recommendation is to avoid using pnpx and instead directly use |
When using windows@latest as the GitHub Actions runner OS, the default version of NSIS is 3.10.0.
However, electron-builder requires version 3.0.4.1, and because it cannot find this version, the following error occurs:
Here is my action script
My package.json build configuration is as follows
It seems that the issue is related to the cache for NSIS
electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe ENOENT
Could you help me understand why this issue occurs and what might be causing the cache problem?
The text was updated successfully, but these errors were encountered: