author-more / penpot-desktop

A desktop application for Penpot, an open-source design tool.
GNU Affero General Public License v3.0
30 stars 2 forks source link

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 5 days ago

jokechen102 commented 5 days ago

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 commented 4 days ago

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.