Skip to content

pathToFuseFile() falsely detects macOS app when project path contains .app as a directory name #118

Closed

Description

@martimolanes

pathToFuseFile() uses pathToElectron.includes('.app') to detect macOS .app bundles(link). This is a false positive when the Electron binary path
contains .app (in my case /home/user/.app/electron-app/)

Reproduction

Build any Electron app with electron-builder from a project directory whose path contains .app, e.g. /home/user/.app/electron-app/. The afterPack hook fails with:

  Error: ENOENT: no such file or directory, open '/home/user/.app/electron-app/dist/Frameworks/Electron Framework.framework/Electron Framework'

Activity

  1. martimolanes commented on May 17, 2026

    @martimolanes
    Author

    my patch

    if (/(^\/|(?<=\/))[^\/]+\.app(\/|$)/.test(pathToElectron) && !pathToElectron.endsWith('.app')) {
    ...
    }
  2. 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