Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build the binary same as uploaded-v2.6-node-v10.17.0-win-64 #998

Open
3DGISKing opened this issue Nov 5, 2020 · 4 comments
Open

How to build the binary same as uploaded-v2.6-node-v10.17.0-win-64 #998

3DGISKing opened this issue Nov 5, 2020 · 4 comments

Comments

@3DGISKing
Copy link

@3DGISKing 3DGISKing commented Nov 5, 2020

Hi,
Thank you for this great project.
I need to build the binary based on Node js 10.17.0 from scratch on Windows 64.
Actually, I want to build and get the result the same as uploaded-v2.6-node-v10.17.0-win-64 from the source.
But the result was different from the uploaded-v2.6-node-v10.17.0-win-64.
They are different in raw size.

What I tried
1 Install pkg-fetch 2.6.4
2 install Python 2.7.17
3 install NASM 2.13
4 install Visual Studio 2017 Community
5 manually get Node js 10.17.0 source (I used the source cloned by pkg-fetch 2.6.4 's build step )
6 manually apply patch : node.v10.17.0.cpp.patch from pkg-fetch 2.6.4 source.
7 build
I used the same command as pkg-fetch 2.6.4 for the build.
“cmd /c vcbuild.bat x64 noetw nosign noperfctr”

image

@gireeshpunathil
Copy link

@gireeshpunathil gireeshpunathil commented Nov 6, 2020

short answer: download and unzip this and build from it:
https://nodejs.org/download/release/v10.17.0/node-v10.17.0.tar.gz

long answer:

  • https://nodejs.org/
  • other download option
  • previous releases
  • select Node.js 10.17.0 or any desired version
  • select downloads link
  • along with the built binaries, the source tar is also provided

hope this helps!

@3DGISKing
Copy link
Author

@3DGISKing 3DGISKing commented Nov 6, 2020

thank you for your response.
but I have already tried this.
but my build output was different from the pre-built binary by pkg-fetch in size.
any tip?

is the following build command right?
cmd /c vcbuild.bat x64 noetw nosign noperfctr

@gireeshpunathil
Copy link

@gireeshpunathil gireeshpunathil commented Nov 6, 2020

but my build output was different from the pre-built binary by pkg-fetch in size.

that I don't know, from the source perspective, they should be the same

I think they (Node.js release team) builds with just vcbuild.bat , and with no params. (I am not 100% sure though), may be worth trying that

@3DGISKing
Copy link
Author

@3DGISKing 3DGISKing commented Nov 6, 2020

thanks
let me try the command without any param.

@3DGISKing 3DGISKing closed this Nov 6, 2020
@3DGISKing 3DGISKing reopened this Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.