問題描述
幫助為 Window Stor 構建 Electron 應用程序.
Help build the Electron application for Window Stor.
我為電子編譯了一個簡單的應用程序.我按照官網的說明試試.
I compiled a simple application for electron. I try according to instructions from the official site.
我運行命令:electron-windows-store --input-directory C:Brain ++ --output-directory C:outputBrain ++ --flatten true --package-version 1.0.0.0 --package-name 大腦++
I run the command: electron-windows-store --input-directory C:Brain ++ --output-directory C:outputBrain ++ --flatten true --package-version 1.0.0.0 --package-name Brain ++
在組裝時會問以下問題:
When assembling it asks the following questions:
<強>?您是否下載并安裝了 Desktop App Converter? - 我回答是
<強>?您需要安裝開發證書才能運行您的應用程序.您希望我們創建一個嗎? - 我回答是
<強>?請輸入您的桌面應用轉換器 (DesktopAppConverter.ps1) 的路徑:-我應該如何指定路徑?我已將桌面應用轉換器安裝為商店應用程序.
? 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.
<強>?您需要安裝開發證書才能運行您的應用程序.您希望我們創建一個嗎? - 我回答是
<強>?請輸入您的發布者身份: - 我可以在此處指定什么?
? Please enter your publisher identity: - What can I specify here?
<強>?請輸入您的 Windows Kit 的 bin 文件夾的位置: - 在此處指定什么?
? Please enter the location of your Windows Kit's bin folder: - what here to specify?
給出詳細說明或如何正確回應.
Give a detailed instruction or how to respond correctly.
推薦答案
請輸入您的發布者身份:- 我可以在此處指定什么?
Please enter your publisher identity: - What can I specify here?
您需要輸入出版商名稱.例如:CN=developmentca"
You need to enter a publisher name. For example: "CN=developmentca"
請輸入您的 Windows Kit 的 bin 文件夾的位置:- 在此處指定什么?
Please enter the location of your Windows Kit's bin folder: - what here to specify?
這是 Windows Kit bin 文件夾的路徑.這取決于您安裝它的位置.例如像這樣:C:Program Files (x86)Windows Kits10inx64"
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 Kits10inx64"
第一次運行這個工具時,它需要知道一些設置.它只會詢問您一次,并將您的答案存儲在您的個人資料文件夾中的 .electron-windows-store 文件中.您還可以在運行 CLI 時將這些值作為參數提供.
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\"
}
請閱讀 github 上的 Windows Store 中的電子應用程序了解更多詳情.
Please read Electron Apps in the Windows Store on github for more details.
這篇關于如何為 Window Store 構建 Electron 應用程序?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!