When I cloned the latest code of the desktop version and tried to package a Windows version on Windows, this issue occurred:
⨯ ENOENT: no such file or directory, scandir 'D:\git_yyy\deltachat\packages\target-electron\dist\win-unpacked\resources\app.asar.unpacked\node_modules\@deltachat' failedTask=build stackTrace=Error: ENOENT: no such file or directory, scandir 'D:\git_yyy\deltachat\packages\target-electron\dist\win-unpacked\resources\app.asar.unpacked\node_modules\@deltachat'
I followed the instructions in the documentation DEVELOPMENT.md and encountered this issue when running pnpm pack:win. Is there something wrong with the configuration?
there is a new step before running pnpm run pack: pnpm pack:patch-node-modules (I added that to the documentation
and there was the window path length limit that I ran into, added a note about it in docs and set a configuration variable to limit path length generated by pnpm internally to make the issue less likely.