balena-io-modules / etcher-sdk

Apache License 2.0
42 stars 17 forks source link

Prebuilt binaries for mountutils, drivelist and ext2fs #138

Closed unm4sk1g closed 4 years ago

unm4sk1g commented 4 years ago

Hello.

I'm trying to install etcher-sdk into my Vue app bundled inside Electron. Installation of package goes smoothly, but once electron-rebuild kicks in with installing prebuilt binaries and native dependencies, it comes with following errors:

• electron-builder  version=21.2.0
  • rebuilding native dependencies  dependencies=@balena.io/usb@1.3.13, @ronomon/direct-io@3.0.1, drivelist@8.0.10, ext2fs@1.0.31, lzma-native@6.0.1, mountutils@1.3.19, xxhash@0.3.0 platform=linux arch=x64
  • install prebuilt binary  name=ext2fs version=1.0.31 platform=linux arch=x64
  • install prebuilt binary  name=drivelist version=8.0.10 platform=linux arch=x64
  • build native dependency from sources  name=drivelist
                                          version=8.0.10
                                          platform=linux
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.3
    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 @ /home/unm4sk/.npm/_prebuilds/49bf21-drivelist-v8.0.10-electron-v76-linux-x64.tar.gz
    prebuild-install info found cached prebuild 
    prebuild-install info unpacking @ /home/unm4sk/.npm/_prebuilds/49bf21-drivelist-v8.0.10-electron-v76-linux-x64.tar.gz
    prebuild-install WARN install incorrect header check

  • install prebuilt binary  name=mountutils version=1.3.19 platform=linux arch=x64
  • build native dependency from sources  name=ext2fs
                                          version=1.0.31
                                          platform=linux
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.3
    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 @ /home/unm4sk/.npm/_prebuilds/dd792d-ext2fs-v1.0.31-electron-v76-linux-x64.tar.gz
    prebuild-install http request GET https://github.com/balena-io/node-ext2fs/releases/download/v1.0.31/ext2fs-v1.0.31-electron-v76-linux-x64.tar.gz
    prebuild-install http 404 https://github.com/balena-io/node-ext2fs/releases/download/v1.0.31/ext2fs-v1.0.31-electron-v76-linux-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=8.2.4 runtime=electron arch=x64 libc= platform=linux)

  • build native dependency from sources  name=mountutils
                                          version=1.3.19
                                          platform=linux
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=prebuild-install info begin Prebuild-install version 5.3.3
    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 @ /home/unm4sk/.npm/_prebuilds/a92ee8-mountutils-v1.3.19-electron-v76-linux-x64.tar.gz
    prebuild-install http request GET https://github.com/resin-io-modules/mountutils/releases/download/v1.3.19/mountutils-v1.3.19-electron-v76-linux-x64.tar.gz
    prebuild-install http 404 https://github.com/resin-io-modules/mountutils/releases/download/v1.3.19/mountutils-v1.3.19-electron-v76-linux-x64.tar.gz
    prebuild-install WARN install No prebuilt binaries found (target=8.2.4 runtime=electron arch=x64 libc= platform=linux)

This results in missing dependencies on project. Compiling of etcher itself works fine, but inside another app using etcher-sdk fails with installation.

How can I fix this?

zvin commented 4 years ago

Hello @unm4sk1g , these are only warnings. We don't provide prebuilt binaries but prebuild-install should fall back to building from source. Check your electron-builder.yml file for https://github.com/balena-io/etcher/blob/master/electron-builder.yml#L4-L5