将电子应用发布到Windows应用商店时如何解决“可用的应用图标包括默认图标”?

Nat*_*hat 6 windows-store windows-store-apps reactjs electron electron-builder

我在这里开源的电子反应项目:Windows-terminal-tweaker

npm run releaserenderer文件夹运行后,它将在renderer/dist目录中构建应用程序。

dist/TerminalTweaker目录包含所有已构建的文件以及该.exe文件。

之后,我可以使用electron-windows-store来使我的应用发布准备就绪。这是我的脚本:

const convertToWindowsStore = require('electron-windows-store')

convertToWindowsStore({
   containerVirtualization: false,
   inputDirectory: 'dist/TerminalTweaker',
   outputDirectory: 'output',
   packageVersion: '1.0.0.0',
   packageName: 'terminalTweaker',
   identityName : '<secretId>' , 
   familyName : '<secretString>' ,
   publisherDisplayName : "Natesh M Bhat" , 
   packageDisplayName: 'Terminal Tweaker',
   packageDescription: 'Tweak your windows terminal to heart\'s content with this app using its beautiful interface to configure everything about the terminal.',
   packageExecutable: 'dist/TerminalTweaker/Terminal Tweaker.exe',
   publisher: 'CN=<secretString>',
   windowsKit: 'C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.18362.0\\x64',
   finalSay: function () {
     return new Promise((resolve, reject) => resolve())
   }
})
Run Code Online (Sandbox Code Playgroud)

现在,一旦获得terminalTweaker.appx,我便将此包上传到Windows应用商店的信息中心。

当我提交submit时,它被拒绝显示以下错误。我该如何解决 ?

应用政策:10.1.1图标

给开发人员的说明

可用的应用程序图标包括默认图标。图标必须唯一代表应用程序,以便用户将图标与适当的应用程序相关联,并且不要将一个应用程序与另一个应用程序混淆。有关Windows应用程序中的图标和磁贴的信息,请参阅“ 应用程序图标和徽标”,或有关“混合现实”应用程序的3D图标,请参见 3D应用程序启动器设计指南

Mar*_*ndt 1

您需要更改 Electron 提供的默认图标(即 Electron 的徽标)。该图标也将在 Windows 应用商店中使用,它显然不会反映您的应用程序。

在您的情况下,您将在以下路径下找到它:

  • windows-terminal-tweaker/renderer/public/favicon.ico

您可能只是忘记更改该文件,因为其他所有图标似乎都可以工作:)