gpt4 book ai didi

javascript - 如何为 Window Store 构建 Electron 应用程序?

转载 作者:可可西里 更新时间:2023-11-01 09:22:53 25 4
gpt4 key购买 nike

帮助构建适用于 Window Stor 的 Electron 应用程序。

我为 Electron 编译了一个简单的应用程序。我按照官方网站的说明尝试。

我运行命令:electron-windows-store --input-directory C:\Brain++ --output-directory C:\output\Brain++ --flatten true --package-version 1.0.0.0 - -包名大脑++

组装时会问以下问题:

<强>?您是否下载并安装了 Desktop App Converter? - 我回答是

<强>?您需要安装开发证书才能运行您的应用程序。您希望我们创建一个吗? - 我回答是

<强>?请输入您的桌面应用程序转换器 (DesktopAppConverter.ps1) 的路径:-我应该如何指定路径?我已将桌面应用程序转换器安装为商店应用程序。

<强>?您需要安装开发证书才能运行您的应用程序。您希望我们创建一个吗? - 我回答是

<强>?请输入您的发布者身份: - 我可以在此处指定什么?

<强>?请输入您的 Windows 套件的 bin 文件夹的位置: - 此处指定什么?

给出详细说明或如何正确回应。

最佳答案

Please enter your publisher identity: - What can I specify here?

您需要输入发布者名称。例如:“CN=developmentca”

Please enter the location of your Windows Kit's bin folder: - what here to specify?

这是 Windows Kit bin 文件夹的路径。这取决于您安装它的位置。例如像这样:“C:\Program Files (x86)\Windows Kits\10\bin\x64”

The first time you run this tool, it needs to know some settings. It will ask you only once and store your answers in your profile folder in a .electron-windows-store file. You can also provide these values as a parameter when running the CLI.

{
"publisher": "CN=developmentca",
"windowsKit": "C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64",
"devCert": "C:\\Tools\\DesktopConverter\\Certs\\devcert.pfx",
"desktopConverter": "C:\\Tools\\DesktopConverter",
"expandedBaseImage":
"C:\\ProgramData\\Microsoft\\Windows\\Images\\BaseImage-14316\\"
}

请阅读Electron Apps in the Windows Store在 github 上获取更多详细信息。

关于javascript - 如何为 Window Store 构建 Electron 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46348557/

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