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

electron-forge publish,Fatal error: Unable to commit changes #3444

Closed
3 tasks done
yxw007 opened this issue Dec 19, 2023 · 1 comment
Closed
3 tasks done

electron-forge publish,Fatal error: Unable to commit changes #3444

yxw007 opened this issue Dec 19, 2023 · 1 comment
Labels
blocked/upstream Issues blocked by upstream bugs question

Comments

@yxw007
Copy link

yxw007 commented Dec 19, 2023

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

7.2.0

Electron version

v28.0.0

Operating system

Windows 10 (1803)

Last known working Electron Forge version

No response

Expected behavior

Can be successfully packaged and published

Actual behavior

PS D:\Work\Projects\electron\electron_app> npm run publish

> [email protected] publish
> electron-forge publish

√ Checking your system
√ Loading configuration
√ Resolving publish targets
  › Publishing to the following targets: github
√ Loading configuration
√ Resolving publish targets
  › Publishing to the following targets: github
√ Loading configuration
√ Resolving publish targets
  › Publishing to the following targets: github
√ Loading configuration
√ Resolving publish targets
  › Publishing to the following targets: github
> Running make command
  √ Loading configuration
  √ Resolving make targets
    › Making for the following targets:
  √ Running package command
    √ Preparing to package application
    √ Running packaging hooks
      √ Running generateAssets hook
      √ Running prePackage hook
    √ Packaging application
      √ Packaging for x64 on win32 [3s]
    √ Running postPackage hook
  √ Running preMake hook
  > Making distributables
    × Making a squirrel distributable for win32/x64
      › Failed with exit code: 4294967295
      Output:
      Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\dxcompiler.dll
        Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\electron_app.exe
        Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\electron_app_ExecutionStub.exe
        Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\ffmpeg.dll
        Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\libEGL.dll
        Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\libGLESv2.dll
        Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\squirrel.exe
        Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\vk_swiftshader.dll
        Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\vulkan-1.dll
        Done Adding Additional Store
        Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\Update.exe
        System.AggregateException: ����һ���������� ---> System.Exception: Failed to modify resources, command invoked was: 'D:\Work\Projects\electro\electron_a…
        �� Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__20.MoveNext()
        --- �ڲ��쳣��ջ���ٵĽ�β ---
        �� System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
        �� 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 signingO…
        �� 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:\Work\Projects\electron\electron_app\node_modules\electron-winsta…
        �� Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__20.MoveNext()<---
  ■ Running postMake hook
■ Publishing distributables

An unhandled rejection has occurred inside Forge:
Error: Failed with exit code: 4294967295
Output:
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\dxcompiler.dll
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\electron_app.exe
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\electron_app_ExecutionStub.exe
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\ffmpeg.dll
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\libEGL.dll
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\libGLESv2.dll
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\squirrel.exe
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\vk_swiftshader.dll
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\lib\net45\vulkan-1.dll
Done Adding Additional Store
Successfully signed: C:\Users\Administrator\AppData\Local\SquirrelTemp\tempa\Update.exe
System.AggregateException: ����һ���������� ---> System.Exception: Failed to modify resources, command invoked was: 'D:\Work\Projects\electron\electron_app\node_modules\electron-winstaller\vendor\rcedit.exe "D:\Work\Projects\electron\electron_app\out\make\squirrel.windows\x64\Setup.exe" --set-version-string "CompanyName" "Potter<[email protected]>" --set-version-string "LegalCopyright" "Copyright ? 2023 Potter<[email protected]>" --set-version-string "FileDescription" "electron learn demo" --set-version-string "ProductName" "electron learn demo" --set-file-version 0.0.2 --set-product-version 0.0.2'

Output was:
Fatal error: Unable to commit changes
   �� Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__20.MoveNext()
   --- �ڲ��쳣��ջ���ٵĽ�β ---
   �� System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   �� 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:\Work\Projects\electron\electron_app\node_modules\electron-winstaller\vendor\rcedit.exe "D:\Work\Projects\electron\electron_app\out\make\squirrel.windows\x64\Setup.exe" --set-version-string "CompanyName" "Potter<[email protected]>" --set-version-string "LegalCopyright" "Copyright ? 2023 Potter<[email protected]>" --set-version-string "FileDescription" "electron learn demo" --set-version-string "ProductName" "electron learn demo" --set-file-version 0.0.2 --set-product-version 0.0.2'

Output was:
Fatal error: Unable to commit changes
   �� Squirrel.Update.Program.<setPEVersionInfoAndIcon>d__20.MoveNext()<---
at ChildProcess.<anonymous> (D:\Work\Projects\electron\electron_app\node_modules\electron-winstaller\lib\spawn-promise.js:49:24)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1091:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)

Steps to reproduce

git clone https://github.com/yxw007/electron_app.git
cd electron_app
yarn install
npm run publish

Additional information

No response

@yxw007 yxw007 changed the title electron-forge publish,Error: ENOTEMPTY: directory not empty electron-forge publish,Fatal error: Unable to commit changes Dec 19, 2023
@erikian
Copy link
Member

erikian commented Feb 4, 2024

This is probably your antivirus software in action, see electron/node-rcedit#25

@erikian erikian closed this as completed Feb 4, 2024
@erikian erikian added question blocked/upstream Issues blocked by upstream bugs labels Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/upstream Issues blocked by upstream bugs question
Projects
None yet
Development

No branches or pull requests

2 participants