Skip to content

Native compilation doesn't happen if the package is using prebuilt (eg leveldown) #647

@cosmosgenius

Description

@cosmosgenius

electron-builder@5.22.2

OSX el capitan x64

My app directory package.json has a dependency to leveldown 1.4.0. Since leveldown is natively compiled, I was expecting install-app-deps to compile with electron-prebuilt deps on dev package.json. While installing leveldown, it uses prebuilt to download native binary instead of compiling.

Passing --build-from-source as args in the doSpawn function fixes the issues and compile with the correct version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions