Skip to content

Electron binary path resolver incorrect assumption based on ".app" subpath matching #95

Closed

Description

@WholeMilk

I have an Electron project with a local path including a folder name of ../my.app.win/.. that is causing the Electron binary resolution logic below to mistakenly think it is targeting macOS platform even though I'm working on Windows:

if (pathToElectron.includes('.app')) {
My suggestion would be to update the pathToFuseFile() function to perform a fs.existsSync() check before returning the Electron binary path and/or check current OS type from Node's os.type() call.
I believe the same issue exists for this check as well:
if (fuseConfig.resetAdHocDarwinSignature && pathToElectron.includes('.app')) {

Activity

  1. electron-npm-package-publisher commented on Jun 29, 2026

    @electron-npm-package-publisher

    🎉 This issue has been resolved in version 2.1.3 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions