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

Appx build failure because of identityName #8479

Closed
TianbinTobin opened this issue Sep 13, 2024 · 4 comments · Fixed by #8502
Closed

Appx build failure because of identityName #8479

TianbinTobin opened this issue Sep 13, 2024 · 4 comments · Fixed by #8502

Comments

@TianbinTobin
Copy link

  • Electron-Builder Version: 25.0.5
  • Node Version: 20.16.0
  • Electron Version: 31.6.0
  • Electron Type (current, beta, nightly): current
  • Target: appx

image
My identityName is "8B075296.boardmix-" cause build failure.
image
I can't specify applicationId myself if the identityName exists.

@mmaietta
Copy link
Collaborator

mmaietta commented Sep 14, 2024

Can you share your electron-builder config? My initial guess is that what you have set for the applicationId field should instead be identityName, which maps to Package/Identity/Name in your screenshot

Your error is being thrown here in the applicationId logic

} else if (!validCharactersRegex.test(result)) {
const message = `AppX Application.Id can not be consists of alpha-numeric and period"`
throw new InvalidConfigurationError(message)

@TianbinTobin
Copy link
Author

TianbinTobin commented Sep 14, 2024

Can you share your electron-builder config? My initial guess is that what you have set for the applicationId field should instead be identityName, which maps to Package/Identity/Name in your screenshot

image

If I don't set identityName, then I have to set productName to “8B075296.boardmix-”, but that won't work.
image

I wish I could use my own applicationId first, rather than calculate it based on identityName, unless I didn't set applicationId. @mmaietta

@mmaietta
Copy link
Collaborator

Gotcha, got a fix coming your way!

@mmaietta
Copy link
Collaborator

Released in 25.1.4

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

Successfully merging a pull request may close this issue.

2 participants