Skip to content

An unhandled rejection has occurred inside Forge: Error: Failed with exit code: 4294967295 #557

@citizenll

Description

@citizenll

The build failed with the following system information: Windows 11 Microsoft Windows [Version 10.0.26100.4349]

npx electron-forge import

✔ Checking your system
✔ Locating importable project                                                                                                                                                                                                                                                            
✔ Processing configuration and dependencies                                                                                                                                                                                                                                              
  ✔ Resolving package manager: npm                                                                                                                                                                                                                                                       
  ✔ Installing dependencies                                                                                                                                                                                                                                                              
  ✔ Copying base template Forge configuration                                                                                                                                                                                                                                            
  ✔ Fixing .gitignore                                                                                                                                                                                                                                                                    
✔ Finalizing import         

electron-forge publish

✔ Checking your system
✔ Loading configuration
✔ Resolving publish targets
❯ Running make command
  ✔ Loading configuration
  ✔ Resolving make targets
  ✔ Running package command
    ✔ Preparing to package application
    ✔ Running packaging hooks
      ✔ Running generateAssets hook
      ✔ Running prePackage hook
    ✔ Packaging application
      ✔ Packaging for x64 on win32 [46s]
    ✔ Running postPackage hook
  ✔ Running preMake hook
  ❯ Making distributables
    ✖ Making a squirrel distributable for win32/x64
      › Failed with exit code: 4294967295
      Output:
      System.AggregateException: ����һ���������� ---> System.ComponentModel.Win32Exception: ϵͳ�Ҳ���ָ�����ļ���
      �� System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
      �� System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
      �� Squirrel.Utility.<InvokeProcessAsync>d__11.MoveNext()
      --- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
      �� System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      �� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      �� Squirrel.Utility.<CreateZipFromDirectory>d__23.MoveNext()
      --- �ڲ��쳣��ջ���ٵĽ�β ---
      �� System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
      �� System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
      �� Squirrel.ReleasePackage.CreateReleasePackage(String outputFile, String packagesRootDir, Func`2 releaseNotesProcessor, Action`1 contentsPostProcessHook)
      �� Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi, Boolean packageAs64Bit, String frameworkVersion, Boolean       
      generateDeltas)
      �� Squirrel.Update.Program.executeCommandLine(String[] args)
      �� Squirrel.Update.Program.main(String[] args)
      �� Squirrel.Update.Program.Main(String[] args)
      ---> (�ڲ��쳣 #0) System.ComponentModel.Win32Exception (0x80004005): ϵͳ�Ҳ���ָ�����ļ���
      �� System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
      �� System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
      �� Squirrel.Utility.<InvokeProcessAsync>d__11.MoveNext()
      --- �����쳣����һλ���ж�ջ���ٵ�ĩβ ---
      �� System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      �� System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      �� Squirrel.Utility.<CreateZipFromDirectory>d__23.MoveNext()<---
  ◼ Running postMake hook
◼ Publishing distributables

(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
(node:1700) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.

An unhandled rejection has occurred inside Forge:
Error: Failed with exit code: 4294967295
Output:
System.AggregateException: ����һ���������� ---> System.ComponentModel.Win32Exception: ϵͳ�Ҳ���ָ�����ļ���
   �� System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   �� System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   �� Squirrel.Utility.<InvokeProcessAsync>d__11.MoveNext()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions