微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

开始菜单中使用的 Electron appx 默认电子图标

如何解决开始菜单中使用的 Electron appx 默认电子图标

我正在尝试将我的电子应用程序提交到 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 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. 

我询问了更多信息并得到了一段视频,显示我的应用程序正在使用认的电子图标,这就是它被拒绝的原因,我已经尝试了一切以确保我的应用程序从不使用认的电子图标但没有运气.

为了构建、签署和提交我的 appx 文件,我在此存储库的 appxBuild 分支上运行以下命令:https://github.com/MartinBarker/RenderTune/tree/appxBuild

  1. 运行 electron-builder build --win 来构建 dist/win-unpacked 文件

    enter image description here

  2. 运行以下 powershell 命令对我的 appx 文件进行签名并将其导出到文件output-appx

electron-windows-store --input-directory C:\Users\marti\Documents\projects\RenderTune\dist\win-unpacked --output-directory C:\Users\marti\Documents\projects\RenderTuneAppx --package-version 0.0.2.0 --package-name RenderTune --package-display-name 'RenderTune' --publisher-display-name `martinbarker' --identity-name 1845martinbarker.digify -a C:\Users\marti\Documents\projects\RenderTune\Resources\

如果我点击输出的 appx 文件并安装它,我可以看到我的自定义图标正在使用

enter image description here

除非我在 Windows 资源管理器菜单搜索我的应用程序,否则我会看到认的电子应用程序图标,而且我终生无法弄清楚如何解决此问题。

enter image description here

完成的 \output-appx\RenderTune.appx 文件可以上传并提交到我的 Windows 商店应用程序页面,所以我不认为凭据签名不正确,但是一旦经过审核,它总是会被此磁贴拒绝消息拒绝.

我已尝试遵循各种不同的指南,了解如何在线向 Windows 商店提交电子应用程序: https://www.electron.build/configuration/appx https://www.electronjs.org/docs/tutorial/windows-store-guide https://blog.mifi.no/2020/03/31/automated-electron-build-with-release-to-mac-app-store-microsoft-store-snapcraft/ https://github.com/MartinBarker/RenderTune/tree/appxBuild/build/appx) How to fix 'The available app icons include a default icon' when publishing an electron app to windows store?

并确保我有一个文件build/appxresources/,其中包含我需要的所有图像文件

enter image description here

在构建窗口部分的 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 文件

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。