-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ENOENT: no such file or directory, rename '~\wp-downloader-electron\dist\win-arm64\win-arm64-unpacked\electron.exe' - No electron.exe found - When building for arm64 - Windows #8687
Comments
This smells like a bug. You're building on windows but the command |
Yeah, I meant, that I had full paths in terminal outputs, I removed them here thinking it'd better to have a look. Updated though. So it was like this
Sorry if it made any confusion. |
Hello, have you solved your problem |
Nope, I still couldn’t find anything, and I’m not sure if I’m doing something wrong either. |
I’m not sure why, as I didn’t make any changes, but it successfully built a moment ago. |
I got the error again. Complete log Job: https://github.com/sipsuru/wp-downloader-electron/actions/runs/11951692308/job/33315828519 Run npm run build:win > [email protected] build:win
> electron-builder --win
• electron-builder version=25.1.8 os=10.0.20[3](https://github.com/sipsuru/wp-downloader-electron/actions/runs/11951692308/job/33315828519#step:8:3)48
• artifacts will be published if draft release exists reason=CI detected
• loaded configuration file=D:\a\wp-downloader-electron\wp-downloader-electron\electron-builder.yml
• executing @electron/rebuild electronVersion=33.2.0 arch=x6[4](https://github.com/sipsuru/wp-downloader-electron/actions/runs/11951692308/job/33315828519#step:8:4) buildFromSource=false appDir=./
• installing native dependencies arch=x64
• completed installing native dependencies
• packaging platform=win32 arch=x64 electron=33.2.0 appOutDir=dist\win-unpacked
• downloading url=https://npmmirror.com/mirrors/electron/v33.2.0/electron-v33.2.0-win32-x64.zip size=11[5](https://github.com/sipsuru/wp-downloader-electron/actions/runs/11951692308/job/33315828519#step:8:5) MB parts=8
• downloaded url=https://npmmirror.com/mirrors/electron/v33.2.0/electron-v33.2.0-win32-x[6](https://github.com/sipsuru/wp-downloader-electron/actions/runs/11951692308/job/33315828519#step:8:7)4.zip duration=1.147s
• updating asar integrity executable resource executablePath=dist\win-unpacked\wp-downloader-electron.exe
• downloading url=https://npmmirror.com/mirrors/electron-builder-binaries/winCodeSign-2.6.0/winCodeSign-2.6.0.[7](https://github.com/sipsuru/wp-downloader-electron/actions/runs/11951692308/job/33315828519#step:8:8)z size=5.6 MB parts=1
• downloaded url=https://npmmirror.com/mirrors/electron-builder-binaries/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=2.5[8](https://github.com/sipsuru/wp-downloader-electron/actions/runs/11951692308/job/33315828519#step:8:9)6s
• signing with signtool.exe path=dist\win-unpacked\wp-downloader-electron.exe
• no signing info identified, signing is skipped signHook=false cscInfo=null
• building target=MSI arch=x64 file=dist\wp-downloader-electron 1.0.0.msi
• building target=zip arch=x64 file=dist\wp-downloader-electron-1.0.0-win.zip
• building target=7z arch=x64 file=dist\wp-downloader-electron-1.0.0-win.7z
• executing @electron/rebuild electronVersion=33.2.0 arch=ia32 buildFromSource=false appDir=./
• installing native dependencies arch=ia32
• downloading url=https://npmmirror.com/mirrors/electron-builder-binaries/wix-4.0.0.5512.2/wix-4.0.0.5512.2.7z size=2.2 MB parts=1
• completed installing native dependencies
• downloaded url=https://npmmirror.com/mirrors/electron-builder-binaries/wix-4.0.0.5512.2/wix-4.0.0.5512.2.7z duration=6.742s
• packaging platform=win32 arch=ia32 electron=33.2.0 appOutDir=dist\win-ia32-unpacked
• downloading url=https://npmmirror.com/mirrors/electron/v33.2.0/electron-v33.2.0-win32-ia32.zip size=107 MB parts=8
• downloaded url=https://npmmirror.com/mirrors/electron/v33.2.0/electron-v33.2.0-win32-ia32.zip duration=15.035s
• updating asar integrity executable resource executablePath=dist\win-ia32-unpacked\wp-downloader-electron.exe
• signing with signtool.exe path=dist\win-ia32-unpacked\wp-downloader-electron.exe
• no signing info identified, signing is skipped signHook=false cscInfo=null
• building target=MSI arch=ia32 file=dist\wp-downloader-electron 1.0.0 ia32.msi
• building target=zip arch=ia32 file=dist\wp-downloader-electron-1.0.0-ia32-win.zip
• building target=7z arch=ia32 file=dist\wp-downloader-electron-1.0.0-ia32-win.7z
• executing @electron/rebuild electronVersion=33.2.0 arch=arm64 buildFromSource=false appDir=./
• installing native dependencies arch=arm64
• completed installing native dependencies
• packaging platform=win32 arch=arm64 electron=33.2.0 appOutDir=dist\win-arm64-unpacked
• downloading url=https://npmmirror.com/mirrors/electron/v33.2.0/electron-v33.2.0-win32-arm64.zip size=120 MB parts=8
• retrying attempt=1
• retrying attempt=1
• signing with signtool.exe path=dist\wp-downloader-electron 1.0.0.msi
• no signing info identified, signing is skipped signHook=false cscInfo=null
• signing with signtool.exe path=dist\wp-downloader-electron 1.0.0 ia32.msi
• no signing info identified, signing is skipped signHook=false cscInfo=null
• downloaded url=https://npmmirror.com/mirrors/electron/v33.2.0/electron-v33.2.0-win32-arm64.zip duration=5m53.[9](https://github.com/sipsuru/wp-downloader-electron/actions/runs/11951692308/job/33315828519#step:8:10)01s
⨯ ENOENT: no such file or directory, rename 'D:\a\wp-downloader-electron\wp-downloader-electron\dist\win-arm64-unpacked\electron.exe' -> 'D:\a\wp-downloader-electron\wp-downloader-electron\dist\win-arm64-unpacked\wp-downloader-electron.exe' failedTask=build stackTrace=Error: ENOENT: no such file or directory, rename 'D:\a\wp-downloader-electron\wp-downloader-electron\dist\win-arm64-unpacked\electron.exe' -> 'D:\a\wp-downloader-electron\wp-downloader-electron\dist\win-arm64-unpacked\wp-downloader-electron.exe' I remoed target And here the previous succesfull jobs (when having So as far I understand, portable target replaced my nsis target back then, and when I removed |
My solution is to set the electronList property in the build attribute of packagejson, with "electronList": "./main/electronList" |
So I took a look at this and am unable to reproduce it. I also added a test case to the electron-builder/test/src/windows/winPackagerTest.ts Lines 39 to 49 in 993a077
|
Above is a part of my electron-builder.yml. And I'm running on x64 bit Windows.
When I build articatcs
- With
electron-builder --win
or- With
electron-builder --win --arm64
locally (windows-x64) and github hosted runners (windows-latest), building unpack fails, no electron.exe found.
Console log:
And indeed there's no
electron.exe
(or any other renamed executable) indirst/win-arm64-unpacked
dir.I've tried using nightly/alpha versions of
electron
andelectron-builder
-> Didn't work.I also checked if this's a issue with electron-binaries not providing a electron.exe, by any chance -> Electron binaries indeed have electron.exe
So, what I guess it that electron-builder either removes
electron.exe
or can't copy. As far I know there's nothing to do with electron.exe except for changing the icon and renaming.Note
I'm new to
electron-builder
, so am I doing something wrong when building for arm64 on Windows? I mean, is there any specific requirements? (I couldn't find any in the documentation). If there's any, please leave a link.The text was updated successfully, but these errors were encountered: