electron-userland / electron-windows-store

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

error: 0x8007007b - The filename, directory name, or volume label syntax is incorrect #115

Open geo-systems opened 5 years ago

geo-systems commented 5 years ago

Hey team,

I've started a project using electron-forge with Node v10.15.1 and I'm trying to build an appx package like this:

electron-windows-store `
     --input-directory "<path-to-build>" `
     --output-directory "<path-to-appx-destination>" `
     --package-version 0.1.0.11 `
     --package-name "<myapp>" `

However, I'm getting an error when it comes to packaging the appx file. It says that The filename, directory name, or volume label syntax is incorrect, but doesn't specify which file is problematic. Below is an excerpt of the output with the error message:

You need at least Node 4.x to run this script

Configuration:
Desktop Converter Location:    false
Expanded Base Image:           false
Publisher:                     CN=<id-number>
Dev Certificate:               C:\Users\...\<id-number>.pfx
Windows Kit Location:          C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64

Starting Conversion...
Cleaning pre-appx output folder...
Copying data...
Creating manifest..
Creating appx package...

Processing "\\?\C:\Users\<user>\...\pre-appx\app\resources\app\node_modules\path-parse\test.js" as a payload file.  Its path in the package will be "app\resources\app\node_modules\path-parse\test.js".
... <many more lines about processing files> ...

MakeAppx : error: Package creation failed.
MakeAppx : error: 0x8007007b - The filename, directory name, or volume label syntax is incorrect.

Error: C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\makeappx.exe exited with code: 1
    at ChildProcess.child.on (C:\Users\<user>\AppData\Roaming\npm\node_modules\electron-windows-store\lib\utils.js:74:23)
    at ChildProcess.emit (events.js:189:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
Error: C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\makeappx.exe exited with code: 1
    at ChildProcess.child.on (C:\Users\<user>\AppData\Roaming\npm\node_modules\electron-windows-store\lib\utils.js:74:23)
    at ChildProcess.emit (events.js:189:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)

Any ideas what's causing this and how to debug?