Electron appx开始菜单中使用的默认Electron图标
我正在尝试将我的electron应用程序提交到windows应用商店,但每次提交都会被拒绝,原因如下:Electron appx开始菜单中使用的默认Electron图标,electron,windows-store-apps,electron-builder,appx,Electron,Windows Store Apps,Electron Builder,Appx,我正在尝试将我的electron应用程序提交到windows应用商店,但每次提交都会被拒绝,原因如下: App Policies: 10.1.1 Inaccurate Representation - Icon Notes To Developer The available product tile icons include a default image. Tile icons must uniquely represent product so users associate ico
App Policies: 10.1.1 Inaccurate Representation - Icon
Notes To Developer
The available product tile icons include a default image. Tile icons must uniquely represent product so users associate icons with the appropriate products and do not confuse one product for another. For information about tiles see https://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/tiles-and-notifications-app-assets, or for 3D icons for Mixed Reality products, see https://docs.microsoft.com/en-us/windows/mixed-reality/3d-app-launcher-design-guidance.
我询问了更多信息,得到了一个视频,显示我的应用程序正在使用默认的electron图标,这就是它被拒绝的原因。我已经尽了一切努力确保我的应用程序从未使用默认的electron图标,但运气不佳
为了构建、签名和提交我的appx文件,我在这个repo的appxBuild
分支上运行以下命令:
electron builder build--win
构建dist/win解包文件夹
output appx
:
build/appx
和resources/
,其中包含我所需的所有图像文件:
在构建窗口部分的my package.json中,我将我的图标指定为ico文件:
"win": {
"target": ["appx"],
"extraResources": [
"node_modules/ffmpeg-ffprobe-static/ffmpeg.exe",
"node_modules/ffmpeg-ffprobe-static/ffprobe.exe"
],
"icon": "build/icon.ico",
"appx": {
"applicationId": "RenderTune",
"identityName": "1845martinbarker.digify",
"publisher": "CN=E69B865D-5831-4BE5-9AA4-08E27DAAD66C",
"publisherDisplayName": "martinbarker",
"backgroundColor":"#a0beeb"
}
修复了,我丢失了一个平铺图像png文件I尝试向main.js添加代码来设置browserWindow图标,但没有成功
"win": {
"target": ["appx"],
"extraResources": [
"node_modules/ffmpeg-ffprobe-static/ffmpeg.exe",
"node_modules/ffmpeg-ffprobe-static/ffprobe.exe"
],
"icon": "build/icon.ico",
"appx": {
"applicationId": "RenderTune",
"identityName": "1845martinbarker.digify",
"publisher": "CN=E69B865D-5831-4BE5-9AA4-08E27DAAD66C",
"publisherDisplayName": "martinbarker",
"backgroundColor":"#a0beeb"
}