-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
win,msi: install tools for native modules #22645
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@echo off | ||
|
||
echo ==================================================== | ||
echo Tools for Node.js Native Modules Installation Script | ||
echo ==================================================== | ||
echo. | ||
echo This Boxstarter script will install Python and the Visual Studio Build Tools, | ||
echo necessary to compile Node.js native modules. All necessary Windows updates | ||
echo will also be installed. | ||
echo. | ||
echo This will require about 3 Gb of free disk space, plus any space necessary to | ||
echo install Windows updates. | ||
echo. | ||
echo This will take a while to run. Your computer may reboot during the | ||
echo installation, and will resume automatically. | ||
echo. | ||
echo Please close all open programs for the duration of the installation. | ||
echo. | ||
echo You can close this window to stop now. This script can be invoked from the | ||
echo Start menu. Detailed instructions to install these tools manually are | ||
echo available at https://github.com/nodejs/node-gyp#on-windows | ||
echo. | ||
pause | ||
|
||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('http://boxstarter.org/bootstrapper.ps1')); get-boxstarter -Force; Install-BoxstarterPackage -PackageName '%~dp0\install_tools.txt'" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
choco upgrade -y python2 | ||
choco upgrade -y visualstudio2017buildtools | ||
choco upgrade -y visualstudio2017-workload-vctools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,14 @@ | |
|
||
<String Id="MajorUpgrade_DowngradeErrorMessage">A later version of [ProductName] is already installed. Setup will now exit.</String> | ||
|
||
<String Id="NativeToolsDlg_Title">[ProductName] Setup</String> | ||
<String Id="NativeToolsDlgTitle">{\WixUI_Font_Title}Tools for Native Modules</String> | ||
<String Id="NativeToolsDlgDescription">Optionally install the tools necessary to compile native modules.</String> | ||
<String Id="NativeToolsDlgBannerBitmap">WixUI_Bmp_Banner</String> | ||
<String Id="NativeToolsDlgIntro">Some npm modules need to be compiled from C/C++ when installing. If you want to be able to install such modules, some tools (Python 2 and VS Build Tools) need to be installed.</String> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: |
||
<String Id="NativeToolsDlgInstallCheckbox">Automatically install the necessary tools. The script will pop-up in a new window after the installation completes.</String> | ||
<String Id="NativeToolsDlgManualDetails">Alternatively, follow the instructions at <![CDATA[<a href="https://github.com/nodejs/node-gyp#on-windows">https://github.com/nodejs/node-gyp#on-windows</a>]]> to install the dependencies yourself.</String> | ||
|
||
<!-- References like [ProductName] or $(var.ProductName) don't seem to work in Title attributes --> | ||
<String Id="NodeRuntime_Title">Node.js runtime</String> | ||
<String Id="NodeRuntime_Description">Install the core [ProductName] runtime (node.exe).</String> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.