Skip to content

Failed to rename electron.exe to appname.exe during execution of "electron-builder build --win --x64" #1877

@harshars08

Description

@harshars08

We are trying to build windows app, by using electron.
However, when we execute "electron-builder build --win --x64", it fails with below error..

packaging platform=win32 arch=x64 electron=29.1.5 appOutDir=build\win-unpacked

  • ENOENT: no such file or directory, rename 'C:\Workspace\TestApp\TestApp_frontend\build\win-unpacked\electron.exe' ->

'C:\Workspace\TestApp\TestApp_frontend\build\win-unpacked\TestApp.exe' failedTask=build stackTrace=Error: ENOENT: no such file or directory,

rename 'C:\Workspace\TestApp\TestApp_frontend\build\win-unpacked\electron.exe' -> 'C:\Workspace\TestApp\TestApp_frontend\build\win-unpacked\TestApp.exe'

Anyone faced this issue before or what could be possible reasons?

I am currently using below versions:

"electron": "29.1.5",

"@angular/cli": "^17.1.2",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions