When packaging the latest code for a Windows version, the `app.asar.unpacked` folder cannot be generated normally

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?

1 Like

I successfully packaged using tag v1.46.8, the latest version should still be in development and testing

I make a pr to fix it: fix packaging on windows (documentation and file path limit) by Simon-Laux · Pull Request #4134 · deltachat/deltachat-desktop · GitHub

basically:

  • 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.

It can be packed now :+1:, but it seems to be missing the installation package. There’s only a portable version.

image

1 Like