How to build the Electron application for the Window Store?

狂风中的少年 提交于 2020-04-10 14:55:46

问题


Help build the Electron application for Window Stor.

I compiled a simple application for electron. I try according to instructions from the official site.

I run the command: electron-windows-store --input-directory C:\Brain ++ --output-directory C:\output\Brain ++ --flatten true --package-version 1.0.0.0 --package-name Brain ++

When assembling it asks the following questions:

? Did you download and install the Desktop App Converter? - I answer yes

? You need to install a development certificate in order to run your app. Would you like us to create one? - I answer yes

? Please enter the path to your Desktop App Converter (DesktopAppConverter.ps1): -how should I specify the path? I have Desktop App Converter installed as a store application.

? You need to install a development certificate in order to run your app. Would you like us to create one? - I answer yes

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

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

Give a detailed instruction or how to respond correctly.


回答1:


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

You need to enter a publisher name. For example: "CN=developmentca"

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

It's the Path of the Windows Kit bin folder. It dependents on where you install it. For example like this: "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\\"
}

Please read Electron Apps in the Windows Store on github for more details.



来源:https://stackoverflow.com/questions/46348557/how-to-build-the-electron-application-for-the-window-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!