electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.68k stars 1.74k forks source link

no such file or directory, rename *** #6106

Open lius123 opened 3 years ago

lius123 commented 3 years ago

The bundle size is significantly larger than recommended. Consider reducing it with code splitting: https://umijs.org/docs/load-on-demand You can also analyze the project dependencies using ANALYZE=1

• electron-builder version=22.11.7 os=10.0.19042 • loaded configuration file=package.json ("build" field) • writing effective config file=release\0.0.1_setup\builder-effective-config.yaml • rebuilding native dependencies dependencies=node-sass@4.14.1 platform=win32 arch=x64 • packaging platform=win32 arch=x64 electron=13.1.7 appOutDir=release\0.0.1_setup\win-unpacked ⨯ ENOENT: no such file or directory, rename 'D:\moushi\im-pc\release\0.0.1_setup\win-unpacked\electron.exe' -> 'D:\moushi\im-pc\release\0.0.1_setup\win-unpacked\APP.exe' failedTask=build stackTrace=Error: ENOENT: no such file or directory, rename 'D:\moushi\im-pc\release\0.0.1_setup\win-unpacked\electron.exe' -> 'D:\moushi\im-pc\release\0.0.1_setup\win-unpacked\APP.exe'

my build config

"build": { "extends": null, "productName": "APP", "appId": "com.moushi.app", "directories": { "output": "release/${version}_setup" }, "files": [ "!node_modules//*", "src/main/*/", "src/main/public", "src/render/dist//*" ], "mac": { "target": [ "dmg", "zip" ] }, "win": { "target": [ { "target": "nsis", "arch": [ "x64", "ia32" ] } ], "artifactName": "${productName}setup${version}.${ext}", "icon": "src/main/public/icon.ico" }, "publish": [ { "provider": "generic", "url": "" } ], "nsis": { "oneClick": false, "perMachine": false, "allowToChangeInstallationDirectory": true, "deleteAppDataOnUninstall": false } },

stale[bot] commented 3 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

anlate commented 2 years ago

i meet the same problem, do u resolved this?

stale[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

einarchive commented 1 year ago

Same error is happening to me, did any of you find a workaround by any chance?

1yasa commented 3 weeks ago

+1