windows-installer
windows-installer copied to clipboard
Cannot build quick start app
E: \ workplace5 \ programming \ electronTest> npm run make
[email protected] make E: \ workplace5 \ programming \ electronTest electron-forge make
√ Checking your system √ Resolving Forge Config We need to package your application before we can make it √ Preparing to Package Application for arch: ia32 √ Preparing native dependencies √ Packaging Application Making for the following targets: squirrel × Making for target: squirrel - On platform: win32 - For arch: ia32
An unhandled error has occurred inside Forge:
An error occured while making for target: squirrel
Failed with exit code: 4294967295
Output:
System.AggregateException: One or more errors have occurred. ---> System.ComponentModel.Win32Exception: The specified executable file is not a valid application for this operating system.
at System.Diagnostics.Process.StartWithCreateProcess (ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start ()
at System.Diagnostics.Process.Start (ProcessStartInfo startInfo)
at Squirrel.Utility. <InvokeProcessAsync> d__11.MoveNext ()
--- End of the stack trace from the previous location where the exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task
task)
at Squirrel.Utility. <CreateZipFromDirectory> d__23.MoveNext ()
--- End of internal exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait ()
at Squirrel.ReleasePackage.CreateReleasePackage (String outputFile, String packagesRootDir, Func2 releaseNotesProcessor, Action
1 contentsPostProcessHook)
at Squirrel.Update.Program.Releasify (String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi, String frameworkVersion, Boolean generateDeltas)
at Squirrel.Update.Program.executeCommandLine (String [] args)
at Squirrel.Update.Program.main (String [] args)
at Squirrel.Update.Program.Main (String [] args)
---> (Internal Exception # 0) System.ComponentModel.Win32Exception (0x80004005): The specified executable file is not a valid application for this operating system.
at System.Diagnostics.Process.StartWithCreateProcess (ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start ()
at System.Diagnostics.Process.Start (ProcessStartInfo startInfo)
at Squirrel.Utility. <InvokeProcessAsync> d__11.MoveNext ()
--- End of the stack trace from the previous location where the exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task
task)
in Squirrel.Utility. <CreateZipFromDirectory> d__23.MoveNext () <---
Error: Failed with exit code: 4294967295
Output:
System.AggregateException: One or more errors have occurred. ---> System.ComponentModel.Win32Exception: The specified executable file is not a valid application for this operating system.
at System.Diagnostics.Process.StartWithCreateProcess (ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start ()
at System.Diagnostics.Process.Start (ProcessStartInfo startInfo)
at Squirrel.Utility. <InvokeProcessAsync> d__11.MoveNext ()
--- End of the stack trace from the previous location where the exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task
task)
at Squirrel.Utility. <CreateZipFromDirectory> d__23.MoveNext ()
--- End of internal exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait ()
at Squirrel.ReleasePackage.CreateReleasePackage (String outputFile, String packagesRootDir, Func2 releaseNotesProcessor, Action
1 contentsPostProcessHook)
at Squirrel.Update.Program.Releasify (String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi, String frameworkVersion, Boolean generateDeltas)
at Squirrel.Update.Program.executeCommandLine (String [] args)
at Squirrel.Update.Program.main (String [] args)
at Squirrel.Update.Program.Main (String [] args)
---> (Internal Exception # 0) System.ComponentModel.Win32Exception (0x80004005): The specified executable file is not a valid application for this operating system.
at System.Diagnostics.Process.StartWithCreateProcess (ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start ()
at System.Diagnostics.Process.Start (ProcessStartInfo startInfo)
at Squirrel.Utility. <InvokeProcessAsync> d__11.MoveNext ()
--- End of the stack trace from the previous location where the exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task
task)
in Squirrel.Utility. <CreateZipFromDirectory> d__23.MoveNext () <---
at ChildProcess. <anonymous> (E: \ workplace5 \ programming \ electronTest \ node_modules \ electron-winstaller \ src \ spawn-promise.ts: 52: 16)
at ChildProcess.emit (events.js: 315: 20)
at ChildProcess.EventEmitter.emit (domain.js: 483: 12)
at maybeClose (internal / child_process.js: 1021: 16)
at Process.ChildProcess._handle.onexit (internal / child_process.js: 286: 5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] make: electron-forge make
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] make
script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C: \ Users \ admin \ AppData \ Roaming \ npm-cache \ _logs \ 2020-12-01T17_34_05_546Z-debug.log
It would help if you could provide a minimal GitHub repo that reliably reproduces this behavior.
Also, which Operating system & version are you using? (For example, Windows 10 Home 2004)