电子窗口商店构建崩溃 [英] Electron window store build crashing

查看:114
本文介绍了电子窗口商店构建崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将电子生成器与reactJs一起使用来创建Windows应用程序,在电子生成器的帮助下,我们的应用程序打包在.exe中,但是即使按照Windows电子商店提供的指南,也无法在Windows存储中发布。



执行此命令时出错:

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

您可以看到我提供了所有必需的参数--input-directory,-output-directory,-package-version和--package-name,除了--flatten以外,因为不再需要它了根据此提交 dcc654d



配置



DesktopConverterLocation:C:\ProgramFiles\WindowsApps\Microsoft.DesktopAppConvert er_2.1.4.0_x64__8wekyb3d8bbwe



扩展后的基本映像:C:\Users\aashir\Downloads\Windows_BaseImage_DAC_18362_V1.wim



发布者:CN = developmentca



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



Windows套件位置:C:\Program Files(x86)\Windows套件\10\bin\x64



开始转换...



清理pre-appx输出文件夹...



正在复制数据...



正在创建清单。



正在创建appx包。 ..ad



错误:

  events.js:174 
投掷er; //未处理的错误事件
^

错误:生成C:\Program Files(x86)\Windows Kits\10\bin\x64\makeappx.exe在Process.ChildProcess._handle.onexit处的ENOENT
(内部/child_process.js:240:19)在onErrorNT处的
(内部/child_process.js:415:16)在process._tickCallback处的
( internal / process / next_tick.js:63:19)
在以下位置发出'错误'事件:Process.ChildProcess._handle.onexit上的
(内部/child_process.js:246:12)
在onErrorNT(internal / child_process.js:415:16)处
在process._tickCallback(内部/process/next_tick.js:63:19)


解决方案

这时您可能已经猜到您丢失了 makeappx.exe。尝试使用 C:\程序文件(x86)\ Windows套件\10\App认证套件来尝试Windows套件的位置。这是我在机器上看到的位置。确保还安装了最新的Windows 10 SDK。


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)

解决方案

At this time you've probably guessed that you're missing the 'makeappx.exe'. Try the Windows Kit location with 'C:\Program Files (x86)\Windows Kits\10\App Certification Kit'. This is the location that i see in my machine. Make sure you install the latest Windows 10 SDK too.

这篇关于电子窗口商店构建崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆