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

build failed:Error: ENOENT: no such file or directory, rename 'dist\win-unpacked\electron.exe' -> 'dist\win-unpacked\Penpot Desktop.exe' #26

Open
jokechen102 opened this issue Nov 26, 2024 · 1 comment
Labels
upstream Upstream issue

Comments

@jokechen102
Copy link

I followed the instructions in the README, cloned the repository, and ran both npm ci and npm run build. My computer is running a Windows environment, but the build failed.

E:\codeRepo\penpot-desktop-01\penpot-desktop> npm run build

> penpot-desktop@0.4.2 build
> electron-builder --config build/electron-builder.yml

  • electron-builder  version=25.1.8 os=10.0.19041
  • loaded configuration  file=E:\codeRepo\penpot-desktop-01\penpot-desktop\build\electron-builder.yml
  • description is missed in the package.json  appPackageFile=E:\codeRepo\penpot-desktop-01\penpot-desktop\package.json
  • writing effective config  file=dist\builder-effective-config.yaml
  • executing @electron/rebuild  electronVersion=33.2.0 arch=x64 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
  ⨯ ENOENT: no such file or directory, rename 'E:\codeRepo\penpot-desktop-01\penpot-desktop\dist\win-unpacked\electron.exe' -> 'E:\codeRepo\penpot-desktop-01\penpot-desktop\dist\win-unpacked\Penpot Desktop.exe'  failedTask=build stackTrace=Error: ENOENT: no such file or directory, rename 'E:\codeRepo\penpot-desktop-01\penpot-desktop\dist\win-unpacked\electron.exe' -> 'E:\codeRepo\penpot-desktop-01\penpot-desktop\dist\win-unpacked\Penpot Desktop.exe'
@Belar
Copy link
Contributor

Belar commented Nov 27, 2024

Hi, Penpot Desktop builds on Windows in CI, but I didn't run into this issue. Looks like something is going wrong in Electron Builder and it may be environment specific. It is currently being discussed in this GH issue.

I will mark it as an upstream issue and make sure to apply a fix when there is one.

@Belar Belar added the upstream Upstream issue label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Upstream issue
Projects
None yet
Development

No branches or pull requests

2 participants