Right now the Windows .exe has to be built from Windows, which
means keeping a second checkout and a second node_modules and rsyncing
between them (see README → Getting started → On Windows). Building straight
from the WSL checkout would remove that entirely.
It almost works. npx electron-builder --win --config.npmRebuild=false under
WSL produces:
release/win-unpacked (392 MB) with the correct PE32+ x86-64 binaries —
pty.node, conpty.node, conpty.dll, OpenConsole.exe, winpty.dll
release/omniagent-<version>-x64.nsis.7z (109 MB), the full payload
and then stops at the NSIS assembly:
• signing with signtool.exe path=release/win-unpacked/resources/elevate.exe
⨯ wine process failed ENOENT
electron-builder runs Windows tooling through a WineVm
(app-builder-lib/out/vm/WineVm.js). Neither CSC_IDENTITY_AUTO_DISCOVERY=false
nor --config.win.signAndEditExecutable=false avoids it.
sudo apt-get install -y wine64 is the obvious next thing to try — untested.
If it works, npm run package:win runs from WSL and the copy step and the
second node_modules both go away.
Right now the Windows
.exehas to be built from Windows, whichmeans keeping a second checkout and a second
node_modulesand rsyncingbetween them (see README → Getting started → On Windows). Building straight
from the WSL checkout would remove that entirely.
It almost works.
npx electron-builder --win --config.npmRebuild=falseunderWSL produces:
release/win-unpacked(392 MB) with the correct PE32+ x86-64 binaries —pty.node,conpty.node,conpty.dll,OpenConsole.exe,winpty.dllrelease/omniagent-<version>-x64.nsis.7z(109 MB), the full payloadand then stops at the NSIS assembly:
electron-builder runs Windows tooling through a
WineVm(
app-builder-lib/out/vm/WineVm.js). NeitherCSC_IDENTITY_AUTO_DISCOVERY=falsenor
--config.win.signAndEditExecutable=falseavoids it.sudo apt-get install -y wine64is the obvious next thing to try — untested.If it works,
npm run package:winruns from WSL and the copy step and thesecond
node_modulesboth go away.