electron-userland / electron-windows-store

:package: Turn Electron Apps into Windows AppX Packages
MIT License
681 stars 87 forks source link

Exits without waiting for user input during first-time setup #108

Open re-jim opened 6 years ago

re-jim commented 6 years ago
C:\WINDOWS\system32>electron-windows-store
You need at least Node 4.x to run this script
? Did you download and install the Desktop App Converter? It is *not* required to run this tool.  No
? You need to install a development certificate in order to run your app. Would you like us to create one?  Yes
Welcome to the Electron-Windows-Store tool!

This tool will assist you with turning your Electron app into
a swanky Windows Store app.

We need to know some settings. We will ask you only once and store
your answers in your profile folder in a .electron-windows-store
file.

? Please enter your publisher identity:  (CN=developmentca)
C:\WINDOWS\system32>

At the last line it didn't wait for me, and just exited back to the console

michael-hawker commented 6 years ago

I tried providing these values on the command line arguments instead for publisher and windows kit location, but then I got this:

Configuration:
Desktop Converter Location:    undefined
Expanded Base Image:           undefined
Publisher:                     undefined
Dev Certificate:               undefined
Windows Kit Location:          undefined

(node:696) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'match' of undefined
    at inquirer.prompt.then.then (C:\Users\mhawker\AppData\Roaming\nvm\v10.6.0\node_modules\electron-windows-store\lib\params.js:92:29)
(node:696) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch
block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.