question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Libraries not found when building for Windows with electronuserland-builder:wine

See original GitHub issue
  • Electron-Builder Version: 22.14.13
  • Node Version: 16.14.2
  • Electron Version: 17.0.2
  • Electron Type (current, beta, nightly):
  • Target: nsis, zip, AppImage

When building with electronuserland-builder/wine using electron-builder@22.14.13 I have this error:

  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.119s
  ⨯ cannot execute  cause=exit status 53
                    errorOut=0024:err:environ:run_wineboot boot event wait timed out
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\advapi32.dll") not found
    0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\advapi32.dll") not found
    0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\system32\\gdi32.dll") not found
    0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\system32\\gdi32.dll") not found
    0024:err:module:import_dll Library gdi32.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\advapi32.dll") not found
    0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\system32\\setupapi.dll") not found
    0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\system32\\advapi32.dll") not found
    0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\system32\\rpcrt4.dll") not found
    0024:err:module:import_dll Library rpcrt4.dll (which is needed by L"C:\\windows\\system32\\setupapi.dll") not found
    0024:err:module:import_dll Library setupapi.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\system32\\USER32.dll") not found
    0024:err:module:import_dll Library USER32.dll (which is needed by L"Z:\\root\\.cache\\electron-builder\\winCodeSign\\winCodeSign-2.6.0\\rcedit-ia32.exe") not found
    0024:err:module:LdrInitializeThunk Importing dlls for L"Z:\\root\\.cache\\electron-builder\\winCodeSign\\winCodeSign-2.6.0\\rcedit-ia32.exe" failed, status c0000135
    002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
    003c:err:service:process_send_command service protocol error - failed to write pipe!
    003c:err:service:process_send_command service protocol error - failed to write pipe!
    0060:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    0060:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    002c:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    0054:err:service:process_send_command service protocol error - failed to write pipe!
    0068:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    0068:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    0068:err:ole:apartment_createwindowifneeded CreateWindow failed with error 3
    0070:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    0068:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
    0070:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    0070:err:ole:apartment_createwindowifneeded CreateWindow failed with error 3
    0070:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
    0068:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
    0070:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
    0084:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
    0084:err:winediag:nodrv_CreateWindow The explorer process failed to start.
    0054:err:service:process_send_command service protocol error - failed to write pipe!
    0068:err:ole:start_rpcss Failed to start RpcSs service
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    0070:err:ole:start_rpcss Failed to start RpcSs service
    0054:err:service:process_send_command service protocol error - failed to write pipe!
    0068:err:ole:start_rpcss Failed to start RpcSs service
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    0070:err:ole:start_rpcss Failed to start RpcSs service
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    002c:err:setupapi:SetupDiInstallDevice Failed to start service L"winebus" for device L"ROOT\\WINE\\WINEBUS", error 1053.
    002c:err:setupapi:SetupDiInstallDevice Failed to control service L"winebus" for device L"ROOT\\WINE\\WINEBUS", error 1062.
    00a0:err:service:process_send_command service protocol error - failed to write pipe!
    002c:err:setupapi:SetupDiInstallDevice Failed to start service L"wineusb" for device L"ROOT\\WINE\\WINEUSB", error 1053.
    002c:err:setupapi:SetupDiInstallDevice Failed to control service L"wineusb" for device L"ROOT\\WINE\\WINEUSB", error 1062.
    wine: configuration in L"/root/.wine" has been updated.
    
                    command=wine /root/.cache/electron-builder/winCodeSign/winCodeSign-2.6.0/rcedit-ia32.exe '/builds/rubin/client/dist/win-ia32-unpacked/Rubin Next.exe' --set-version-string FileDescription 'Rubin Next' --set-version-string ProductName 'Rubin Next' --set-version-string LegalCopyright 'Copyright © 2022 Rubin Team' --set-file-version 5.22.0-beta.1.3118 --set-product-version 5.22.0.3118 --set-version-string InternalName 'Rubin Next' --set-version-string OriginalFilename '' --set-version-string CompanyName 'Rubin Team' --set-icon /builds/rubin/client/icons/icon.next.ico

Also I’ve tried to upgrade electronuserland-builder/16-wine and electron-builder@23.0.3. Same error.

It works OK when using electronuserland-builder/14-wine-01.22.

Maybe it has something to do with https://github.com/electron-userland/electron-builder/commit/7f3e35bec16aafc8e0eeeb02a84c0db55a9e1f1c ?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
lynxtaacommented, Apr 25, 2022

@mmaietta It works now! Thank you for our help ❤️

0reactions
mmaiettacommented, Apr 24, 2022

@lynxtaa @4ekin can you please test now with latest wine images? It over-wrote the 04.22 tagged image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Image Layer Details - electronuserland/builder:wine-01.19
/bin/sh -c curl -L https://github.com/electron-userland/electron-builder-binaries/releases/download/wine-2.0.3-mac-10.13/wine-home.zip. 22.47 MB.
Read more >
Electron and React integration done right - Patrick Passarella
Creating an updated Electron + React app, learning how to communicate between them, and how to build for cross-platform.
Read more >
electron-builder | Yarn - Package Manager
A complete solution to package and build a ready for distribution Electron app for MacOS, Windows and Linux with “auto update” support out...
Read more >
Common Configuration - electron-builder
If you want to use js file, do not name it electron-builder.js . ... win WindowsConfiguration - Options related to how build Windows...
Read more >
Electron tips & tricks: Detect OS in renderer process - Medium
I do not know in advance how many articles will be written in this series, ... something like electronuserland/builder:wine to have multi-platform build, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found