-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error building appx #1559
Comments
|
Have you seen http://electron-userland.github.io/electron-builder/? |
Yes, I've seen that. Couldn't extract any useful information from it, though.
// edit: neither worked - could you give me an example? |
|
Could you please provide an example of useful/good docs? |
Thanks for your quick reply (again). That seemed to work .. at first. But then weird things happened ;)
Why would it build an NSIS installer if I told him to pack for appx? It then continues:
Did it download and try to sign my ia32 app with a x64 singtool? Is that correct? And how come the file is being used by another process? Should I open a new issue? Concerning the docs: Dunno; liked the docs how they were ~half a year ago. Less segmented and with examples. Frankly, I don't quite know what to do with the json schema tool and I'm somewhat too lazy to read and understand the schema. It's like I had to learn japanese to read the manual of my car. |
Alright, I figured it out. I need both,
Errored again. Using electron-builder.json5 configuration file
No native production dependencies
Packaging for win32 ia32 using electron 1.6.8 to dist\win-ia32-unpacked
CSC_KEY_PASSWORD is not defined, empty password will be used
Signing xyz.exe (certificate file: "xyz/build/cert/xyz.pfx")
TypeError: A value [object Object] was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
From coroutine:
at Promise.coroutine (xyz\node_modules\bluebird\js\release\generators.js:194:17)
at AppXTarget.build (xyz\node_modules\electron-builder\out\targets\appx.js:84:68)
at postAsyncTasks.push.default.map.it (xyz\node_modules\electron-builder\src\platformPackager.ts:106:85)
at tryCatcher (xyz\node_modules\bluebird\js\release\util.js:16:23) I fear the transpiled ts/js is too much black magic for me to further investigate :| Th source is // edit: async build(appOutDir: string, arch: Arch): Promise<any> { So build shall return a // edit2: // edit3: if ((yield packager.cscInfo.) == null) { to if ((yield packager.cscInfo._value) == null) { gets me past that step! |
Not yet. I will take a look tonight. |
Thank you |
Hey @develar,
Last version I used for building appx was 11.something. Seems like the options "language" has changed.
This was my previous working build block:
But running builder now throws:
Complaining about the win part. I tried to understand the options wiki (which has changed drastically) but I don't seem to get it. It's become too nested, I think. Guess we should add some examples.
Please tell me how the config must look for building appx with the latest version of electron-builder.
Thanks
The text was updated successfully, but these errors were encountered: