none
Electorn Windows Store Build Crashing RRS feed

  • Question

  • Configuration:
    Desktop Converter Location:    C:\Program Files\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

    ? 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)

    On running command "electron-windows-store --input-directory ./dist --output-directory ./output --package-version 1.0.0.0   --package-name cra-electron"

    It is throwing the above error.

    Wednesday, May 29, 2019 6:25 AM

All replies

  • Hi Fk_dev,

    Derive from Windows Store Guide and Electron Apps in the Windows Store.
    Did you run electron-windows-store with the required parameters, passing both the input and output directories, the app's name and version,and confirmation that node_modules should be flattened? As the following shown:

    electron-windows-store `
        --input-directory C:\myelectronapp `
        --output-directory C:\output\myelectronapp `
        --flatten true `
        --package-version 1.0.0.0 `
        --package-name myelectronapp

    Best regards

    Daisy  Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, May 30, 2019 4:08 AM
    Moderator
  • Hello Daisy Tian,

    Thank you for support but, exactly the same command we ran to create electron-window-store build with all required parameters you can see below,

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

    and according to this commit, electron-windows-store/commit/dcc654df2ec2bb706dc4f1664aa4775ab320541e " --flatten true" parameter has been removed.


    Thursday, May 30, 2019 5:57 AM
  • Hi Fk_dev,

    Sorry for the delay reply, your issue is more related to Electron Apps , could you open the issue on for this customer this page where you may be assisted better?

    Best regards

    Daisy  Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    9 hours 8 minutes ago
    Moderator