Electron-builder: Building on Windows fails with Update.com Error Code

Created on 11 May 2016  Â·  22Comments  Â·  Source: electron-userland/electron-builder

Running npm run dist on windows exists with the following error:

\node_modules\electron-winstaller-fixed\vendor\Update.com failed with exit code: 4294967295

npm run pack works just fine. I'm trying to create an MSI and work towards windows autoupdating.

Running the latest Windows Technical Preview, in case that matters. Tried both @latest and @3.11.0 suggested in #366

feature windows

Most helpful comment

Still doesn't work on 3.26.3
Just keep getting Update.com failed with exit code: 4294967295
Only pack works

All 22 comments

Please attach node_modules/electron-winstaller-fixed/vendor/SquirrelSetup.log.

Assuming this is the relevant part:

2016-05-10 19:33:06> Unhandled exception: System.ComponentModel.DataAnnotations.ValidationException: Description is required.
   at NuGet.Manifest.Validate(Manifest manifest)
   at NuGet.Manifest.ReadFrom(Stream stream, IPropertyProvider propertyProvider, Boolean validateSchema)
   at NuGet.LocalPackage.ReadManifest(Stream manifestStream)
   at NuGet.ZipPackage.EnsureManifest()
   at NuGet.ZipPackage..ctor(String filePath, Boolean enableCaching)
   at Squirrel.ReleasePackage.get_SuggestedReleaseFileName()
   at Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi)
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)

Apparently a blank package.json description shits the bed. I fixed that and now I get 2016-05-11 19:55:42> Unhandled exception: System.UriFormatException: Invalid URI: The format of the URI could not be determined.

EDIT: Found it, http icons only for windows. Weird

Weird, but it is Windows :( Reopened — must be checked on our side, not on ** Windows ** tool.

Gotcha. Let me know how I can help!
On May 11, 2016 9:51 PM, "Vladimir Krivosheev" [email protected]
wrote:

Weird, but it is Windows :( Reopened — must be checked on our side, not on
** Windows ** tool.

—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/electron-userland/electron-builder/issues/392#issuecomment-218659878

We have the same issue, the strange thing is that all worked until yesterday...
@framerate what does it means "EDIT: Found it, http icons only for windows. Weird"?
I'm using https:// for the icon URL. is this the problem?

@marcopiraccini The same error in the node_modules/electron-winstaller-fixed/vendor/SquirrelSetup.log?

Here, on Windows 7 32 bit. Yesterday it worked!

2016-05-13 04:23:04> Program: Starting Squirrel Updater: --releasify C:\app\dist\win\TestApp-0.1.6-full.nupkg --releaseDir C:\app\dist\win --loadingGif C:\appbuild\loading-splash.png --no-msi
2016-05-13 04:23:06> Program: Bootstrapper EXE found at:C:\app\node_modules\electron-builder\node_modules\electron-winstaller-fixed\vendor\Setup.exe
2016-05-13 04:23:09> Unhandled exception: System.IO.FileNotFoundException: Could not find file 'C:\app\dist\win\TestApp-0.1.6-full.nupkg'.
File name: 'C:\app\dist\win\TestApp-0.1.6-full.nupkg'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.ReleaseEntry.GenerateFromFile(String path, String baseUrl)
at Squirrel.Update.Program.<>c__DisplayClass10_0.b__0(String packageFilename)
at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Squirrel.Update.Program.ReleasifyElectron(String package, String targetDir, String bootstrapperExe, String backgroundGif, String baseUrl, Boolean generateMsi)
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)

(Indeedm the file 'C:\app\dist\win\TestApp-0.1.6-full.nupkg' does not exists...)

@marcopiraccini As a workaround, set electron-buidler version to 3.20.0. Does it help?

(Indeedm the file 'C:\app\dist\win\TestApp-0.1.6-full.nupkg' does not exists...)

What exists? Please list files.

Under "win"? Nothing.
In the xxx-win32-ia32 there is all the working application

Is electron-builder nos supporting ia32 anymore? https://github.com/electron-userland/electron-builder/commit/079989acee340512d9834e5a210b98561289fcb9#diff-6456376d7ed2e6f2d66ffc860e13af6eR55

@marcopiraccini Fully supported, it is just a warning. Try to set version to 3.20.0 until your issue is not fixed.

The same. Also with 3.17.0 (which used to work 3 days ago!)
It seems something broke on a recursive dependency.

(tried again, forgot the caret in dep, with "electron-builder": "3.17.1", works)

@marcopiraccini Reproduced. Fix will be soon. Our test suite didn't check ia32 and error was not catched during CI run.

Tnx very much :)

@marcopiraccini BTW, may be you can just migrate to x64 ;)?

I cannot, ia32 it's a requirement :(

@develar Tested with v3.22.1, but I have the same problem :(

Summarizing, Windows 7 ia32, using (main package.json, not the app one):

    "electron-builder": "^3.22.1",
    "electron-prebuilt": "^0.37"

build --platform=win32 --arch=ia32 -> Creates the xxx-win32-ia32 folder. Ok
build --platform=win32 --arch=ia32 -d -> Creates the folders in the image:

builder_1

...with win-ia32 empty, and win-ia32-unpacked with this content:

builder_2

...then the nupkg is not created and the subsequent Squirrel releasify fails.

(why this is not labelled as "bug"? )

@marcopiraccini Because this issue about "Apparently a blank package.json description shits the bed. " Please try version 3.26.0 and open new issue in case of error (and please attach Squirrel log file and output).

Still doesn't work on 3.26.3
Just keep getting Update.com failed with exit code: 4294967295
Only pack works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noahprince22 picture noahprince22  Â·  3Comments

philcockfield picture philcockfield  Â·  3Comments

mstralka picture mstralka  Â·  3Comments

JohnWeisz picture JohnWeisz  Â·  3Comments

lbssousa picture lbssousa  Â·  3Comments