fix(ci): keep Windows installer builds in Windows PowerShell
This commit is contained in:
1 parent
4ea48d5478
commit
6a9b489ffc
2 files changed
+7
No files matched your search
@@ -100,6 +100,10 @@ jobs:
|
||||
|
||||
- name: Build NSIS installer
|
||||
working-directory: desktop/electron
|
||||
# runtime:win starts Windows PowerShell. Keep its parent in the same
|
||||
# edition: inheriting pwsh's module path through npm hid Get-FileHash
|
||||
# on windows-2025 even though the direct runtime build above succeeded.
|
||||
shell: powershell
|
||||
env:
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
||||
run: npm run installer:win:review
|
||||
|
||||
@@ -46,6 +46,9 @@ npm run installer:win:review
|
||||
|
||||
`installer:win:review` also runs the backend runtime build automatically, so
|
||||
running `npm run runtime:win` separately is optional when using that command.
|
||||
Run these runtime/installer commands from Windows PowerShell (`powershell.exe`),
|
||||
as CI does. Starting them from PowerShell 7 can pass its module search path
|
||||
through npm to the Windows PowerShell child and prevent `Get-FileHash` discovery.
|
||||
|
||||
The installer and checksum are written under `desktop/electron/release/`.
|
||||
The `installer:win:review` artifact is deliberately unsigned and must never be
|
||||
|
||||
Reference in new issue
Block a user