-
-
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
fix(windows,code-sign): cannot sign binary files in Github Actions #8384
Conversation
🦋 Changeset detectedLatest commit: 7dda1fa 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. |
5f9f791
to
32897b1
Compare
Note that unlike powershell.exe, pwsh.exe has to be manually installed. |
@NoahAndrews Thank you for your addition, but I think it is not unacceptable to require developers to install pwsh.exe, just as it is necessary to use Parallels Desktop when packaging on a Mac :) Update:I suddenly realized that if we directly use pwsh.exe, this PR will be a breaking change😅. I will look for other solutions. |
Making this configurable by default to use PowerShell, and allowing users to set their own configurations, might be a good solution. |
32897b1
to
cd16794
Compare
@NoahAndrews @beyondkmp I spent several hours investigating this matter, and the conclusion is: this is a BUG of GitHub Actions. Although GitHub officially switched the default Shell for Windows to PowerShell on 10/23/2019, this is still different from explicitly using After investigation, I found that the difference between the two lies in the value of
The fundamental cause of this problem lies in the fact that PowerShell prioritized the module So I believe this issue only occurs when: using the windows-runner in Github Actions, and the default shell is used. In the latest fix, I solved the issue by prioritizing the use of pwsh.exe (falling back to powershell.exe if it doesn't exist). PTAL @mmaietta |
Fixed: electron-userland#7729 electron-userland#8055 Signed-off-by: Kevin Cui <bh@bugs.cc>
cd16794
to
7dda1fa
Compare
Fixed: #7729 #8055
Signed-off-by: Kevin Cui bh@bugs.cc