gpt4 book ai didi

electron - Electron Builder Appx : The package manifest is not valid

转载 作者:行者123 更新时间:2023-12-03 12:38:36 25 4
gpt4 key购买 nike

我试图使用Electron Builder将我的应用程序打包为Appx文件,以将其发布在Windows应用商店中。但是我继续收到这个奇怪的错误,该错误表明我的 list 文件不可用:

MakeAppx : error: Package creation failed.
MakeAppx : error: 0x80080204 - The specified package format is not valid: The package manifest is not valid.
实际上,我有一个可以正常工作的AppxManifest.xml,但是不能在 Electron 生成器中使用它。我的标识变量也应该正确(我在其他工具中使用了它并成功发布了)。所以我有点卡在这里。
这是我的package.json
{
"name": "***",
"version": "1.0.1",
"description": "Made with love <3",
"main": "index.js",
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder"
},
"author": "***",
"license": "All Rights Reserved",
"dependencies": {
"knex": "^0.21.6",
"sqlite3": "^5.0.0"
},
"devDependencies": {
"electron": "^10.1.2",
"electron-builder": "^22.9.1"
},
"build": {
"productName": "***",
"appId": "***.com",
"directories": {
"buildResources": "assets"
},
"win": {
"icon": "assets/icon.ico",
"target": [
"nsis",
"appx"
]
},
"nsis": {
"oneClick": false,
"perMachine": true,
"allowToChangeInstallationDirectory": true
},
"appx": {
"identityName": "NumberPublishername.Appname",
"publisher": "CN=LongNumber",
"publisherDisplayName": "Publishername",
"applicationId": "Appname"
}
}
}

最佳答案

问题是这行Made with love <3,那里不允许<字符,因为XML无效。可悲的是,控制台没有说出什么问题。

关于electron - Electron Builder Appx : The package manifest is not valid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65043436/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com