Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies not rebuilt when prebuilt binaries not found? #8217

Open
d-0-s-t opened this issue May 15, 2024 · 3 comments
Open

Dependencies not rebuilt when prebuilt binaries not found? #8217

d-0-s-t opened this issue May 15, 2024 · 3 comments

Comments

@d-0-s-t
Copy link

d-0-s-t commented May 15, 2024

  • Electron-Builder Version: 24.13.3
  • Node Version: v18.20.2
  • Electron Version: 30.0.2
  • Electron Type (current, beta, nightly): current
  • Target: nsis

Electron-builder apparently cannot find prebuilt binaries for a specific package "@thiagoelg/node-printer" but I am not sure if the build process is rebuilding them from source. There are no failure messages but there is no success message either. These warnings:

• rebuilding native dependencies dependencies=@thiagoelg/node-printer@0.6.2 platform=win32 arch=x64
• install prebuilt binary name=@thiagoelg/node-printer version=0.6.2 platform=win32 arch=x64 napi=
• build native dependency from sources name=@thiagoelg/node-printer
version=0.6.2
platform=win32
arch=x64
napi=
reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
error=prebuild-install info begin Prebuild-install version 7.1.2
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 local prebuild @ prebuilds\node-printer-v0.6.2-electron-v123-win32-x64.tar.gz
prebuild-install info looking for cached prebuild @ C:\Users\RelaxBro\AppData\Local\npm-cache_prebuilds\ab65f8-node-printer-v0.6.2-electron-v123-win32-x64.tar.gz
prebuild-install http request GET https://github.com/thiagoelg/node-printer/releases/download/v0.6.2/node-printer-v0.6.2-electron-v123-win32-x64.tar.gz
prebuild-install http 404 https://github.com/thiagoelg/node-printer/releases/download/v0.6.2/node-printer-v0.6.2-electron-v123-win32-x64.tar.gz
prebuild-install warn install No prebuilt binaries found (target=30.0.2 runtime=electron arch=x64 libc= platform=win32)

• packaging platform=win32 arch=x64 electron=30.0.2 appOutDir=dist\win-unpacked

How can I make sure this package is built from source?

@ImpChiang
Copy link

hi, any solution about it ? i got same error ,when i upgrade Electron-Builder to v25.0.0-alpha.6, but it throw another error

@d-0-s-t
Copy link
Author

d-0-s-t commented May 17, 2024

@ImpChiang Added another dev dependency @electron/rebuild to specially build the package in question. But it seems excess.

Running this script before the build process now:
electron-rebuild -f -w @thiagoelg/node-printer

@mmaietta
Copy link
Collaborator

Would you be willing to try v25.0.0-alpha.8, it integrates electron-rebuild package directly and should respect those flags more explicitly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants