Skip to content

Commit

Permalink
增加了node
Browse files Browse the repository at this point in the history
  • Loading branch information
ComerLater committed Oct 5, 2024
1 parent 95616d5 commit 01b9bae
Show file tree
Hide file tree
Showing 1,963 changed files with 302,429 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ set RTT_EXEC_PATH=%GCC_EXEC_PATH%
set RTT_CC=gcc
set PATH=%RTT_EXEC_PATH%;%PATH%

@REM node
set PATH=%NDT_ROOT%\toolchain\node\node-v20.18.0-win-x64;%PATH%

@REM git
set PATH=%NDT_ROOT%\toolchain\git\MinGit-2.42.0.2-64-bit\cmd;%PATH%

Expand Down
1 change: 1 addition & 0 deletions toolchain/node/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<https://nodejs.org/en/download/prebuilt-binaries>
1,389 changes: 1,389 additions & 0 deletions toolchain/node/node-v20.18.0-win-x64/CHANGELOG.md

Large diffs are not rendered by default.

2,174 changes: 2,174 additions & 0 deletions toolchain/node/node-v20.18.0-win-x64/LICENSE

Large diffs are not rendered by default.

885 changes: 885 additions & 0 deletions toolchain/node/node-v20.18.0-win-x64/README.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions toolchain/node/node-v20.18.0-win-x64/corepack
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/node_modules/corepack/dist/corepack.js" "$@"
else
exec node "$basedir/node_modules/corepack/dist/corepack.js" "$@"
fi
7 changes: 7 additions & 0 deletions toolchain/node/node-v20.18.0-win-x64/corepack.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@SETLOCAL
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\corepack.js" %*
) ELSE (
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\node_modules\corepack\dist\corepack.js" %*
)
55 changes: 55 additions & 0 deletions toolchain/node/node-v20.18.0-win-x64/install_tools.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@echo off

setlocal
title Install Additional Tools for Node.js

cls

echo ====================================================
echo Tools for Node.js Native Modules Installation Script
echo ====================================================
echo.
echo This script will install Python and the Visual Studio Build Tools, necessary
echo to compile Node.js native modules. Note that Chocolatey and required Windows
echo updates will also be installed.
echo.
echo This will require about 3 GiB of free disk space, plus any space necessary to
echo install Windows updates. This will take a while to run.
echo.
echo Please close all open programs for the duration of the installation. If the
echo installation fails, please ensure Windows is fully updated, reboot your
echo computer and try to run this again. This script can be found in the
echo Start menu under Node.js.
echo.
echo You can close this window to stop now. Detailed instructions to install these
echo tools manually are available at https://github.com/nodejs/node-gyp#on-windows
echo.
pause

cls

REM Adapted from https://github.com/Microsoft/windows-dev-box-setup-scripts/blob/79bbe5bdc4867088b3e074f9610932f8e4e192c2/README.md#legal
echo Using this script downloads third party software
echo ------------------------------------------------
echo This script will direct to Chocolatey to install packages. By using
echo Chocolatey to install a package, you are accepting the license for the
echo application, executable(s), or other artifacts delivered to your machine as a
echo result of a Chocolatey install. This acceptance occurs whether you know the
echo license terms or not. Read and understand the license terms of the packages
echo being installed and their dependencies prior to installation:
echo - https://chocolatey.org/packages/chocolatey
echo - https://chocolatey.org/packages/python
echo - https://chocolatey.org/packages/visualstudio2019-workload-vctools
echo.
echo This script is provided AS-IS without any warranties of any kind
echo ----------------------------------------------------------------
echo Chocolatey has implemented security safeguards in their process to help
echo protect the community from malicious or pirated software, but any use of this
echo script is at your own risk. Please read the Chocolatey's legal terms of use
echo as well as how the community repository for Chocolatey.org is maintained.
echo.
pause

cls

"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command Start-Process '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); choco upgrade -y python visualstudio2019-workload-vctools; Read-Host ''Type ENTER to exit'' ' -Verb RunAs
Binary file added toolchain/node/node-v20.18.0-win-x64/node.exe
Binary file not shown.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 01b9bae

Please sign in to comment.