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

error code:4294967295 #391

Closed
jonathanqwq opened this issue Jul 8, 2021 · 3 comments
Closed

error code:4294967295 #391

jonathanqwq opened this issue Jul 8, 2021 · 3 comments

Comments

@jonathanqwq
Copy link

jonathanqwq commented Jul 8, 2021

√ Checking your system
√ Resolving Forge Config
We need to package your application before we can make it
√ Preparing to Package Application for arch: x64
√ Preparing native dependencies
√ Packaging Application
Making for the following targets: squirrel
× Making for target: squirrel - On platform: win32 - For arch: x64

An unhandled error has occurred inside Forge:
An error occured while making for target: squirrel
Failed with exit code: 4294967295
Output:
System.AggregateException: ����һ���������� ---> System.Exception: Failed to modify resources, command invoked was: 'D:\����\vue\my-electron-app\node_modules\electron-winstaller\vendor\rcedit.exe "D:\����\vue\my-electron-app\out\make\squirrel.windows\x64\Setup.exe" --set-version-string "CompanyName" "Jonathan Shi" --set-version-string "LegalCopyright" "Copyright ? 2021 Jonathan Shi" --set-version-string "FileDescription" "My Electron app" --set-version-string "ProductName" "My Electron app" --set-file-version 1.0.0 --set-product-version 1.0.0'

Output was:
Fatal error: Unable to load file
   �� Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__20.MoveNext()
   --- �ڲ��쳣��ջ���ٵĽ�β ---
   �� System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   �� Squirrel.Update.Program.<>c__DisplayClass10_0.<Releasify>b__6()
   �� Squirrel.Utility.<>c__DisplayClass8_0.<Retry>b__0()
   �� Squirrel.Utility.Retry[T](Func`1 block, Int32 retries)
   �� 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.Exception: Failed to modify resources, command invoked was: 'D:\����\vue\my-electron-app\node_modules\electron-winstaller\vendor\rcedit.exe "D:\����\vue\my-electron-app\out\make\squirrel.windows\x64\Setup.exe" --set-version-string "CompanyName" "Jonathan Shi" --set-version-string "LegalCopyright" "Copyright ? 2021 Jonathan Shi" --set-version-string "FileDescription" "My Electron app" --set-version-string "ProductName" "My Electron app" --set-file-version 1.0.0 --set-product-version 1.0.0'

Output was:
Fatal error: Unable to load file
   �� Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__20.MoveNext()<---


Error: Failed with exit code: 4294967295
Output:
System.AggregateException: ����һ���������� ---> System.Exception: Failed to modify resources, command invoked was: 'D:\����\vue\my-electron-app\node_modules\electron-winstaller\vendor\rcedit.exe "D:\����\vue\my-electron-app\out\make\squirrel.windows\x64\Setup.exe" --set-version-string "CompanyName" "Jonathan Shi" --set-version-string "LegalCopyright" "Copyright ? 2021 Jonathan Shi" --set-version-string "FileDescription" "My Electron app" --set-version-string "ProductName" "My Electron app" --set-file-version 1.0.0 --set-product-version 1.0.0'

Output was:
Fatal error: Unable to load file
   �� Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__20.MoveNext()
   --- �ڲ��쳣��ջ���ٵĽ�β ---
   �� System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   �� Squirrel.Update.Program.<>c__DisplayClass10_0.<Releasify>b__6()
   �� Squirrel.Utility.<>c__DisplayClass8_0.<Retry>b__0()
   �� Squirrel.Utility.Retry[T](Func`1 block, Int32 retries)
   �� 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.Exception: Failed to modify resources, command invoked was: 'D:\����\vue\my-electron-app\node_modules\electron-winstaller\vendor\rcedit.exe "D:\����\vue\my-electron-app\out\make\squirrel.windows\x64\Setup.exe" --set-version-string "CompanyName" "Jonathan Shi" --set-version-string "LegalCopyright" "Copyright ? 2021 Jonathan Shi" --set-version-string "FileDescription" "My Electron app" --set-version-string "ProductName" "My Electron app" --set-file-version 1.0.0 --set-product-version 1.0.0'

Output was:
Fatal error: Unable to load file
   �� Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__20.MoveNext()<---


    at ChildProcess.<anonymous> (D:\软件\vue\my-electron-app\node_modules\electron-winstaller\src\spawn-promise.ts:52:16)
    at ChildProcess.emit (node:events:394:28)
    at ChildProcess.emit (node:domain:470:12)
    at maybeClose (node:internal/child_process:1067:16)
    at Socket.<anonymous> (node:internal/child_process:453:11)
    at Socket.emit (node:events:406:35)
    at Socket.emit (node:domain:470:12)
    at Pipe.<anonymous> (node:net:662:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@sy277888
Copy link

Have you solved it?

@sy277888
Copy link

@jonathanqwq Have you solved it?

@anaisbetts
Copy link
Contributor

This is usually caused by Antivirus

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

3 participants