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

Cannot build quick start app #370

Open
mihailk111 opened this issue Dec 1, 2020 · 1 comment
Open

Cannot build quick start app #370

mihailk111 opened this issue Dec 1, 2020 · 1 comment

Comments

@mihailk111
Copy link

E: \ workplace5 \ programming \ electronTest> npm run
make

electronTest@1.0.0 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. 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. 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, Action1 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. 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. 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. 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. 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, Action1 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. 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. 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! electronTest@1.0.0 make: electron-forge make
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electronTest@1.0.0 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

@malept
Copy link
Member

malept commented Dec 10, 2020

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)

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

No branches or pull requests

2 participants