#We are trying to build windows app, by using electron..

4 messages · Page 1 of 1 (latest)

waxen salmon
#

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",

#renameerror #ENOENT

lofty star
#

running Angular with Electron is going to require some extra custom plumbing in your project and the build. depending on how you build electron (either with webpack or vite) the build process won't be looking for renderer artifacts generated by angular correctly. once you resolve that path issue, the format angular outputs won't be the one electron expects for a renderer, so you may have to write a custom script to run and move files around correctly anyway.

waxen salmon
#

But, this issue is coming only in 1 PC..On other PC's, exe gets created successfully..

lofty star
#

that doesnt change any of what i said, it just means your build isnt consistent/deterministic