Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electron Windows Store Build Crashing #119

Open
Aashir1 opened this issue May 31, 2019 · 2 comments
Open

Electron Windows Store Build Crashing #119

Aashir1 opened this issue May 31, 2019 · 2 comments

Comments

@Aashir1
Copy link

Aashir1 commented May 31, 2019

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
Configutation
Configuration:
Desktop Converter Location: C:\ProgramFiles\WindowsApps\Microsoft.DesktopAppConverter_2.1.4.0_x64__8wekyb3d8bbwe
Expanded Base Image: C:\Users\xxx\Downloads\Windows_BaseImage_DAC_18362_V1.wim
Publisher: CN=developmentca
Dev Certificate: C:\Users\xxx\AppData\Roaming\electron-windows-store\developmentca\developmentca.pfx
Windows Kit Location: C:\Program Files (x86)\Windows Kits\10\bin\x64

Error
? Please enter the path to your built Electron app: ./dist
? Please enter the path to your output directory: ./output./output
? Please enter the path to your output directory: ./output
? Please enter your app's package name (name of your exe - without '.exe'): cra-electron
? Please enter your app's package version: 1.0.0.0
Starting Conversion...
Cleaning pre-appx output folder...
Copying data...
Creating manifest..
Creating appx package...
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)

@Aashir1 Aashir1 changed the title Electorn Windows Store Build Crashing Electron Windows Store Build Crashing May 31, 2019
@kirillgalushko
Copy link

@Aashir1 Are you sure that your windows kit is C:\Program Files (x86)\Windows Kits\10\bin\x64?
I met the same problem and resolved it with the argument:
--windows-kit "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64"

@JonoDNelson
Copy link

Just to add to @kirillgalushko 's answer, You can't have a trailing '' after the 'x64' in the path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants