electron / windows-installer

Build Windows Installers for Electron apps
MIT License
1.58k stars 261 forks source link

Fails on `Squirrel-Mono.exe --releasify` #527

Open Bug-Reaper opened 3 months ago

Bug-Reaper commented 3 months ago

Here's the error:

An unhandled rejection has occurred inside Forge:
Error: Failed with exit code: 255
Output:
System.AggregateException: One or more errors occurred. (Unknown header: 454472957) ---> System.NotSupportedException: Unknown header: 454472957
  at SharpCompress.Common.Zip.ZipHeaderFactory.ReadHeader (System.UInt32 headerBytes, System.IO.BinaryReader reader, System.Boolean zip64) [0x0015f] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at SharpCompress.Common.Zip.StreamingZipHeaderFactory+<ReadStreamHeader>d__1.MoveNext () [0x00177] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at SharpCompress.Readers.Zip.ZipReader+<GetEntries>d__6.MoveNext () [0x000a1] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at SharpCompress.Readers.AbstractReader`2[TEntry,TVolume].NextEntryForCurrentStream () [0x00000] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at SharpCompress.Readers.AbstractReader`2[TEntry,TVolume].MoveToNextEntry () [0x00047] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at Squirrel.ReleasePackage+<>c__DisplayClass14_0.<extractZipWithEscaping>b__0 () [0x000cf] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <fe66f31a57d1499da5e0e11d440d4bd0>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <fe66f31a57d1499da5e0e11d440d4bd0>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <fe66f31a57d1499da5e0e11d440d4bd0>:0 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <fe66f31a57d1499da5e0e11d440d4bd0>:0 
  at System.Threading.Tasks.Task.Wait () [0x00000] in <fe66f31a57d1499da5e0e11d440d4bd0>:0 
  at Squirrel.ReleasePackage.CreateReleasePackage (System.String outputFile, System.String packagesRootDir, System.Func`2[T,TResult] releaseNotesProcessor, System.Action`1[T] contentsPostProcessHook) [0x00142] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at Squirrel.Update.Program.Releasify (System.String package, System.String targetDir, System.String packagesDir, System.String bootstrapperExe, System.String backgroundGif, System.String signingOpts, System.String baseUrl, System.String setupIcon, System.Boolean generateMsi, System.Boolean packageAs64Bit, System.String frameworkVersion, System.Boolean generateDeltas) [0x00214] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at Squirrel.Update.Program.executeCommandLine (System.String[] args) [0x00116] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at Squirrel.Update.Program.main (System.String[] args) [0x00113] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at Squirrel.Update.Program.Main (System.String[] args) [0x00006] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
---> (Inner Exception #0) System.NotSupportedException: Unknown header: 454472957
  at SharpCompress.Common.Zip.ZipHeaderFactory.ReadHeader (System.UInt32 headerBytes, System.IO.BinaryReader reader, System.Boolean zip64) [0x0015f] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at SharpCompress.Common.Zip.StreamingZipHeaderFactory+<ReadStreamHeader>d__1.MoveNext () [0x00177] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at SharpCompress.Readers.Zip.ZipReader+<GetEntries>d__6.MoveNext () [0x000a1] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at SharpCompress.Readers.AbstractReader`2[TEntry,TVolume].NextEntryForCurrentStream () [0x00000] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at SharpCompress.Readers.AbstractReader`2[TEntry,TVolume].MoveToNextEntry () [0x00047] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at Squirrel.ReleasePackage+<>c__DisplayClass14_0.<extractZipWithEscaping>b__0 () [0x000cf] in <1ffb1a5dca5b4f2f93386cec56fd9ec2>:0 
  at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <fe66f31a57d1499da5e0e11d440d4bd0>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <fe66f31a57d1499da5e0e11d440d4bd0>:0 <---

There's some fairly ancient discussion on this error type but nothing concrete in terms of answers. Any help appreciated. (Possibly relavant my app is >4Gib)

Bug-Reaper commented 2 months ago

Never got past this one, believe I did try dropping newer versions of 7z into node_modules/electron-winstaller/vendor folder.