Update build process so that third-party binaries are included only once in the resulting site binary
It would appear that while a nexe build cannot correctly find included third-party binaries without them being included in resources, it does, nevertheless, add them to the build.
This means, that for nodecert and node-hugo, all mkcert and hugo binaries are currently being added to the final site binary. This went unnoticed as the mkcert binaries where rather small but is apparent now because of the size of the hugo binaries (which are substantial).
Proposed solution
The build process should:
- Move the mkcert and node-hugo binaries out of their respective locations in the package folder under
node_modules
- Add only the required platform-specific binary to resources
- Move the binaries back at the end of the build process.