Skip to content

Commit

Permalink
feat(appx): use identityName for app name (#1941)
Browse files Browse the repository at this point in the history

BREAKING CHANGE: if identityName is specified in your config and differs from your app name, appx id will be changed to identify name.


It is very useful to set a custom `identityName` when the name of the
app in package.json contains hyphens (which are not permitted in
`appxmanifest.yml`).

Even if you set a non-hyphenated name as `identityName`,
electron-builder will still use the package.json's `name` property for
the `name` appxmanifest.yml value.

Thus, we attempt to re-use `identityName` for that case as well.

Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored and develar committed Aug 13, 2017
1 parent 022d542 commit 0be983e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electron-builder/src/targets/appx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default class AppXTarget extends Target {
return appInfo.versionInWeirdWindowsForm

case "name":
return appInfo.name
return options.identityName || appInfo.name

case "identityName":
return options.identityName || appInfo.name
Expand Down

0 comments on commit 0be983e

Please sign in to comment.