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

ENOENT - appx - readInstalled.ts #1671

Closed
black-snow opened this issue Jun 14, 2017 · 3 comments · May be fixed by qcif/data-curator#563
Closed

ENOENT - appx - readInstalled.ts #1671

black-snow opened this issue Jun 14, 2017 · 3 comments · May be fixed by qcif/data-curator#563

Comments

@black-snow
Copy link
Contributor

  • Version: 19.2.2
  • Target: appx

I tried to build my ia32 version to verify that the appx name has the arch postfix again but it now fails with this:

> set CSC_KEY_PASSWORD=&&set CSC_LINK=%cd%/build/cert/xyz.pfx&&build --ia32
 
electron-builder 19.2.2
Using electron-builder.json5 configuration file
No native production dependencies
Packaging for win32 ia32 using electron 1.6.11 to dist\win-ia32-unpacked
 
... and 1 more
CSC_KEY_PASSWORD is not defined, empty password will be used
Signing xyz.exe (certificate file: "E:\xyz\build\cert\xyz.pfx")
Error: ENOENT: no such file or directory, open 'E:\xyz\app\package.json'
    at E:\xyz\node_modules\electron-builder\src\readInstalled.ts:36:21
    at Generator.next (<anonymous>)
    at LOOP (fs.js:1755:14)
    at _combinedTickCallback (internal/process/next_tick.js:95:7)
    at process._tickCallback (internal/process/next_tick.js:161:9)
From previous event:
    at _readInstalled (E:\xyz\node_modules\electron-builder\out\readInstalled.js:101:22)
    at E:\xyz\node_modules\electron-builder\src\readInstalled.ts:22:21
    at Generator.next (<anonymous>)
    ...

In fact there is not package.json inside app and there never was :| It's one level up.

develar added a commit to develar/electron-builder that referenced this issue Jun 14, 2017
@black-snow
Copy link
Contributor Author

@develar works again with 19.2.7, thanks

Say, is there some way to hook into the build process? I need to add some more assets and pri-files to the appx. Currently I unpack the appx that's generated, genrate/add my files, pack it up again and sign it again. It works perfectly but it could be nicer.

@develar
Copy link
Member

develar commented Jun 14, 2017

@black-snow Stay tuned — #1657 will be merged in 2 days :)

@black-snow
Copy link
Contributor Author

Whoa, super awesome. Didn't see this PR.

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

Successfully merging a pull request may close this issue.

2 participants