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

pkgbuild failing with "No package identifier specified and not exactly one component to derive it from." #7348

Closed
michaelwbarry opened this issue Jan 4, 2023 · 2 comments

Comments

@michaelwbarry
Copy link
Contributor

  • Electron-Builder Version: 23.6.0
  • Node Version: v16
  • Electron Version:22.2.0
  • Electron Type (current, beta, nightly): current
  • Target: mac - dmg, pkg, zip

Pkg builds in pkgbuilder with "pkgbuild: error: No package identifier specified and not exactly one component to derive it from."

Uncommenting line 143 in pkg.ts in app-builder-lib/out/targets/pkg.ts in my node modules fixes it.

It's line 175 in packages/app-builder-lib/src/targets/pkg.ts in master. It looks like that line was commented out in a commit (f0cb15d) about 'chore: update deps.' Perhaps it was commented out in error?

There's a backlog issue on this:
#4527

@mmaietta
Copy link
Collaborator

mmaietta commented Jan 5, 2023

I don't have any context as to why it was previously commented out, the commit message isn't very helpful either 😅
I'm not opposed to having it uncommented and see what happens, at least in this case we'd have a git issue history/tracking for the change.

@Ange0
Copy link

Ange0 commented Jan 20, 2023

j'ai pu contourner ce problème en spécifiant une version stable dans mon package.json

dans mon exemple: donc preciser
"devDependencies": {
...
"electron-builder": "^23.6.0",
...
}

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