Cross platform build
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 271
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 2
Description
I successfully updated our Node Addon. I also integrated out Gitlab CI/CD to automatically build the libs, however when building win32 on macOS I can see macOS files being referenced. I guess its because of the binding.gyp.
Here is the current command to build win32 on macOS:
npm_config_platform=win32 npm_config_target_platform=win32 ./node_modules/.bin/node-pre-gyp rebuild -target_platform=win32 --runtime=node --target=$NODE_VERSION
As you can see I also tried to set the npm_config_platform and npm_config_target_platform env variables. However without any success.
How to build windows Node Addons on macOS?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting binding.gyp and reproducing the npm_config_platform, npm_config_target_platform, and node-pre-gyp rebuild command described in the issue. Trace which macOS files are referenced during the win32 build. Done means the command builds the Windows Node addon on macOS without those macOS references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- gitlab, node.js
- Domain
- build-system, ci-cd, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100