Electron window store build crashing

99封情书 提交于 2020-01-25 05:59:05

问题


We are using electron builder with reactJs to create windows application our application packaged well in .exe with the help of electron-builder but not able to published on windows store even followed the guide provided by windows-electron-store.

Getting error while executing this command:

electron-windows-store --input-directory ./dist --output-directory ./output --package-version 1.0.0.0 --package-name cra-electron

You can see I provide all required arguments --input-directory, --output-directory, --package-version and --package-name except --flatten because its no more required according to this commit dcc654d

Configuration

DesktopConverterLocation:C:\ProgramFiles\WindowsApps\Microsoft.DesktopAppConverter_2.1.4.0_x64__8wekyb3d8bbwe

Expanded Base Image: C:\Users\aashir\Downloads\Windows_BaseImage_DAC_18362_V1.wim

Publisher: CN=developmentca

Dev Certificate: C:\Users\aashir\AppData\Roaming\electron-windows-store\developmentca\developmentca.pfx

Windows Kit Location: C:\Program Files (x86)\Windows Kits\10\bin\x64

Starting Conversion...

Cleaning pre-appx output folder...

Copying data...

Creating manifest..

Creating appx package...ad

Error:

events.js:174
  throw er; // Unhandled 'error' event
  ^

 Error: spawn C:\Program Files (x86)\Windows Kits\10\bin\x64\makeappx.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)

来源:https://stackoverflow.com/questions/56390843/electron-window-store-build-crashing

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