Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

cannot build native windows dependency when building with docker image electronuserland/builder:wine #310

Description

@randomgithubuser1

I'm trying to use the wine docker image of electron-builder to build a Windows version of my electron app which includes keytar as a dependency. The app builds successfully on Mac.

Is it possible to build this dependency on linux using wine?

The build is failing with the following error:


electron-builder build --win --publish never

  • electron-builder  version=22.8.1 os=4.19.76-linuxkit
  • loaded configuration  file=/project/electron-builder.json
  • writing effective config  file=builds/builder-effective-config.yaml
  • rebuilding native dependencies  dependencies=keytar@6.0.1 platform=win32 arch=x64
  • install prebuilt binary  name=keytar version=6.0.1 platform=win32 arch=x64
  ⨯ cannot build native dependency  reason=prebuild-install failed with error and build from sources not possible because platform or arch not compatible
                                    cause=exit status 1
                                    errorOut=prebuild-install info begin Prebuild-install version 5.3.4
    prebuild-install WARN install prebuilt binaries enforced with --force!
    prebuild-install WARN install prebuilt binaries may be out of date!
    prebuild-install info looking for cached prebuild @ /root/.npm/_prebuilds/c33bca-keytar-v6.0.1-electron-v82-win32-x64.tar.gz
    prebuild-install http request GET https://github.com/atom/node-keytar/releases/download/v6.0.1/keytar-v6.0.1-electron-v82-win32-x64.tar.gz
    prebuild-install http 404 https://github.com/atom/node-keytar/releases/download/v6.0.1/keytar-v6.0.1-electron-v82-win32-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=10.1.3 runtime=electron arch=x64 libc= platform=win32)

                                    command=/usr/local/bin/node /project/node_modules/prebuild-install/bin.js --platform=win32 --arch=x64 --target=10.1.3 --runtime=electron --verbose --force
                                    workingDir=/project/node_modules/keytar

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions