electron-builder
electron-builder copied to clipboard
`error=rename appimage/388323485 appimage-12.0.1: file exists` (ERR_ELECTRON_BUILDER_CANNOT_EXECUTE) in Ubuntu
- Electron-Builder Version: 24.13.1, 24.12.0
- Latest Known Working Electron-Builder Version: 24.9.1
- Node Version: 20 (GitHub Actions)
- Electron Version: 28.2.3
- Electron Type (current, beta, nightly): current
- Target: Linux x64
The build failed with this error.
• cannot move downloaded into final location (another process downloaded faster?) path=/home/runner/.cache/electron-builder/appimage/appimage-12.0.1
tempFile=/home/runner/.cache/electron-builder/appimage/388323485
error=rename /home/runner/.cache/electron-builder/appimage/388323485 /home/runner/.cache/electron-builder/appimage/appimage-12.0.1: file exists
Detailed log: https://github.com/th-ch/youtube-music/actions/runs/7969007984/job/21754132043
We are using pnpm (8.15.3
)
Hmmm, we never updated app-builder-bin between those versions and that's what pulls the electron-builder-binaries (such as appimage-12.0.1
I'm not seeing any immediately obvious changes in the diff either https://github.com/electron-userland/electron-builder/compare/v24.9.1...v24.12.0
Is this issue 100% reproducible for you? It's not appearing in our unit tests either
- 24.12.0
- https://github.com/th-ch/youtube-music/actions/runs/7968235719/job/21752174790
- https://github.com/th-ch/youtube-music/actions/runs/7968236579/job/21752176733
- https://github.com/th-ch/youtube-music/actions/runs/7968247870/job/21752928339
- 24.13.1
- https://github.com/th-ch/youtube-music/actions/runs/7969007984/job/21754132043
- 24.9.1
- https://github.com/th-ch/youtube-music/actions/runs/7969339455/job/21755000082
24.9.1 -> 24.12.0 commit
https://github.com/th-ch/youtube-music/commit/6358a2d0b1fb7d54da31269b2ce16799705c449e
24.13.1 -> 24.9.1 commit
https://github.com/th-ch/youtube-music/commit/8bd05f525df98671f0a516b159cccab302b7ae99
Yes, this issue is 100% reproducible in this repository (https://github.com/th-ch/youtube-music)
still reproducible these issues in 24.13.3
https://github.com/th-ch/youtube-music/actions/runs/8125045551/job/22207198684
- 24.9.2: Successful
- 24.9.3: Failed
https://github.com/electron-userland/electron-builder/compare/v24.9.2...v24.9.3
Additional Information
CI fails when snap
+ AppImage
builds are enabled.
what was the resolution to this? I don't currently want to setup snapcraft but want to publish snap files
How would you bundle a snap distributable but not set up snapcraft? That seems like mutually exclusive
I am not really sure. I just had a setup that "worked" and was creating and releasing .snap files to github but then it stopped working after a electron-builder version upgrade similar to what @JellyBrick had experienced. my understanding is using snapcraft and such would release to the snap store? i just removed snap builds for now in our project...it's pretty low usage