mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
v12.32 was the first release whose build-win32 got past the Node.js lookup, and it died at the first step it had never run: tar: D\:\a\\_temp/node-ia32: Cannot open: No such file or directory RUNNER_TEMP is a Windows path, and GNU tar in Git Bash reads anything before a colon as a remote host. The step now builds the nodedir on the POSIX form of the path (cygpath -u), unpacks the headers by relative name inside it, checks that include/node/node.h arrived, and gives node-gyp the Windows form (cygpath -w). The step after that had never run either. bcrypt and argon2 publish no win32-ia32 prebuild, so they must be compiled for ia32, and accounts-password imports both with no fallback. A cross-build that silently did nothing would still zip and pass 7z t, and fail only at the first sign-in. releases/check-addon-arch.mjs reads each shipped addon's PE header and fails the job unless bcrypt and argon2 each have one for ia32. It skips packages whose os/cpu name another platform, as npm does. On the published v12.31 win64 zip it passes as x64 and refuses the same zip as ia32. tests/win32BundleBuild.test.cjs pins the new step, checks that no Windows job in any workflow gives tar a RUNNER_TEMP or GITHUB_WORKSPACE path, and tests the checker on synthetic PE and ELF files, positive and negative. Thanks to xet7 !