Skip to content

Building the Windows installer from WSL needs Wine #23

Description

@jarvis08

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions