-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
doc: add copy node executable guide on windows #47665
Conversation
Review requested:
|
Thanks for the PR! We're using the
Also, do you mind using |
The step reference of copying node executable may be wrong, and I also fix it in 00454f5 |
Another question is in some windows with powershell, the default encoding is UTF-16. That is to say in the step 1 and 2, the encoding of echoed |
I think UTF-16 too should be okay because we have a test that uses a UTF-16 character in the SEA - Line 35 in 595b2b3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I reckon |
It works in cmd. I also searched equivalent of Bash's $(), and write the following command to copy node, but I am not sure whether there is a better or eleganter command in windows cmd. for /F "tokens=*" %n IN ('where.exe node') DO @(copy "%n" hello.exe) |
@nodejs/platform-windows any thoughts on ^? |
@yjl9903 FWIW, if this works on cmd, I'm in favor of using this command for the Windows docs because then we'll have a command that would work both on cmd as well as powershell on Windows. If someone else knows of a more elegant way of doing this, maybe that could be done in a separate PR later? |
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice changes! Thank you for the first contribution :)
#47722 merged to this PR |
@yjl9903 unfortunately, our tooling doesn't support merge commits yet, so you might need to go for a rebase instead |
e1178b8
to
e2f9442
Compare
Oh, I think I am not very familiar with how to do rebasing... How to reopen this PR @RaisinTen ? |
@yjl9903 could you try checking if https://gist.github.com/robertpainsi/2c42c15f1ce6dab03a0675348edd4e2c helps? So IIUC, you would need to run: git push -f origin b31d587dc8c1b0f459243d2b96a17a7175c996cf:patch-1
# Reopen the PR.
git push -f origin 45c4698fa56d28579009de9d78a1f41b372689ec:patch-1 Alternatively, you could also try to click on "Create pull request" in main...yjl9903:node:patch-1, which would help you create a new pull request with the current list of commits that are present on your branch. |
Hello.
In single-executable, copyied node executable on windows should be named with extension
.exe
, this PR added some guides about it.Related discussion nodejs/single-executable#65