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 has unknown property 'customManifestPath' #8856

Closed
Socha17 opened this issue Feb 8, 2025 · 3 comments
Closed

appx has unknown property 'customManifestPath' #8856

Socha17 opened this issue Feb 8, 2025 · 3 comments

Comments

@Socha17
Copy link

Socha17 commented Feb 8, 2025

Hello,

Im building a appx file and want to use a custom appx manifest file.

The docs mention a customManifestPath property, but it doesn't seem to work.

when I run electron-builder --win

I get this error

⨯ Invalid configuration object. electron-builder 25.1.8 has been initialized using a configuration object that does not match the API schema. configuration.appx has an unknown property 'customManifestPath'. These properties are valid: object { addAutoLaunchExtension?, applicationId?, artifactName?, backgroundColor?, customExtensionsPath?, displayName?, electronUpdaterAware?, identityName?, languages?, makeappxArgs?, maxVersionTested?, minVersion?, publish?, publisher?, publisherDisplayName?, setBuildNumber?, showNameOnTiles? }

Here are some parts of my package.json

...
  "build": {
    "win": {
      "target": "appx"
    },
    "files": [
      "src/**/*",
      "dist/**/*",
      "node_modules/**/*"
    ],
    "appx": {
      "identityName": "...",
      "publisher": "...",
      "publisherDisplayName": "...",
      "applicationId": "....",
      "addAutoLaunchExtension": true,
      "customManifestPath": "./CustomAppxManifest.xml"
    },
  "devDependencies": {
    ...
    "@electron/packager": "^18.3.5",
    "electron": "^33.0.1",
    "electron-builder": "^25.1.8"
    ...
  },

How do I use the customManifestPath property? I need to use a custom manifest file because I need to add extra Capabilities to my app.

any help would be great, thanks!

@mmaietta
Copy link
Collaborator

mmaietta commented Feb 8, 2025

You need to update to v26.0.x

@Socha17
Copy link
Author

Socha17 commented Feb 8, 2025

Ah ok I'll try that in a couple hours when I get back.

Thanks for the help, I'll close this if that fixes it

@Socha17
Copy link
Author

Socha17 commented Feb 8, 2025

Yeah that worked thanks!

@Socha17 Socha17 closed this as completed Feb 8, 2025
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

2 participants