mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 05:25:19 +00:00
build: remove nocorepack
vcbuild
flag
PR-URL: https://github.com/nodejs/node/pull/57772 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
This commit is contained in:
parent
77f88b9485
commit
86bfdb5528
@ -22,9 +22,6 @@
|
||||
<String Id="npm_Title" Value="npm package manager"/>
|
||||
<String Id="npm_Description" Value="Install npm, the recommended package manager for [ProductName]."/>
|
||||
|
||||
<String Id="corepack_Title" Value="corepack manager"/>
|
||||
<String Id="corepack_Description" Value="Install corepack, the universal package manager for [ProductName]."/>
|
||||
|
||||
<String Id="DocumentationShortcuts_Title" Value="Online documentation shortcuts"/>
|
||||
<String Id="DocumentationShortcuts_Description" Value="Add start menu entries that link the online documentation for [ProductName] [FullVersion] and the [ProductName] website."/>
|
||||
|
||||
|
@ -12,31 +12,28 @@
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<OutputPath>..\..\..\..\</OutputPath>
|
||||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
|
||||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NpmSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\npm\;CorepackSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\corepack\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants>
|
||||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NpmSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\npm\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants>
|
||||
<Cultures>en-US</Cultures>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<OutputPath>..\..\..\..\</OutputPath>
|
||||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
|
||||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NpmSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\npm\;CorepackSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\corepack\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants>
|
||||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NpmSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\npm\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|arm64' ">
|
||||
<OutputPath>..\..\..\..\</OutputPath>
|
||||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
|
||||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NpmSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\npm\;CorepackSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\corepack\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants>
|
||||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NpmSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\npm\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|arm64' ">
|
||||
<OutputPath>..\..\..\..\</OutputPath>
|
||||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
|
||||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NpmSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\npm\;CorepackSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\corepack\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants>
|
||||
<DefineConstants>Debug;ProductVersion=$(NodeVersion);FullVersion=$(FullVersion);DistTypeDir=$(DistTypeDir);NpmSourceDir=..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\npm\;ProgramFilesFolderId=ProgramFiles64Folder</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\..\..\npm.wxs">
|
||||
<Link>npm.wxs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\..\..\corepack.wxs">
|
||||
<Link>corepack.wxs</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="WixToolset.UI.wixext" Version="4.0.0-rc.1" />
|
||||
@ -50,8 +47,6 @@
|
||||
<Target Name="BeforeBuild">
|
||||
<HeatDirectory ToolPath="$(WixToolPath)" Directory="..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\npm" PreprocessorVariable="var.NpmSourceDir" DirectoryRefId="NodeModulesFolder" ComponentGroupName="NpmSourceFiles" GenerateGuidsNow="true" SuppressFragments="false" OutputFile="..\..\..\..\npm.wxs">
|
||||
</HeatDirectory>
|
||||
<HeatDirectory ToolPath="$(WixToolPath)" Directory="..\..\..\..\Release\node-v$(FullVersion)-win-$(Platform)\node_modules\corepack" PreprocessorVariable="var.CorepackSourceDir" DirectoryRefId="NodeModulesFolder" ComponentGroupName="CorepackSourceFiles" GenerateGuidsNow="true" SuppressFragments="false" OutputFile="..\..\..\..\corepack.wxs">
|
||||
</HeatDirectory>
|
||||
</Target>
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>move "$(TargetDir)en-us\$(TargetFileName)" "$(TargetPath)"
|
||||
|
@ -73,15 +73,6 @@
|
||||
<ComponentRef Id="SetInstallDirPermission" />
|
||||
</Feature>
|
||||
|
||||
<Feature Id="corepack"
|
||||
Level="1"
|
||||
Title="!(loc.corepack_Title)"
|
||||
Description="!(loc.corepack_Description)">
|
||||
<ComponentRef Id="CorepackCmdScript"/>
|
||||
<ComponentRef Id="CorepackBashScript"/>
|
||||
<ComponentGroupRef Id="CorepackSourceFiles"/>
|
||||
</Feature>
|
||||
|
||||
<Feature Id="npm"
|
||||
Level="1"
|
||||
Title="!(loc.npm_Title)"
|
||||
@ -210,14 +201,6 @@
|
||||
</DirectoryRef>
|
||||
|
||||
<DirectoryRef Id="INSTALLDIR">
|
||||
<Component Id="CorepackCmdScript">
|
||||
<File Id="corepack.cmd" KeyPath="yes" Source="$(var.CorepackSourceDir)\shims\nodewin\corepack.cmd"/>
|
||||
</Component>
|
||||
|
||||
<Component Id="CorepackBashScript">
|
||||
<File Id="corepack.sh" KeyPath="yes" Source="$(var.CorepackSourceDir)\shims\nodewin\corepack"/>
|
||||
</Component>
|
||||
|
||||
<Component Id="NpmCmdScript">
|
||||
<File Id="npm.cmd" KeyPath="yes" Source="$(var.NpmSourceDir)\bin\npm.cmd"/>
|
||||
</Component>
|
||||
|
14
vcbuild.bat
14
vcbuild.bat
@ -33,7 +33,6 @@ set nobuild=
|
||||
set sign=
|
||||
set nosnapshot=
|
||||
set nonpm=
|
||||
set nocorepack=
|
||||
set cctest_args=
|
||||
set test_args=
|
||||
set stage_package=
|
||||
@ -95,7 +94,6 @@ if /i "%1"=="nosign" set "sign="&echo Note: vcbuild no longer signs by de
|
||||
if /i "%1"=="sign" set sign=1&goto arg-ok
|
||||
if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
|
||||
if /i "%1"=="nonpm" set nonpm=1&goto arg-ok
|
||||
if /i "%1"=="nocorepack" set nocorepack=1&goto arg-ok
|
||||
if /i "%1"=="ltcg" set ltcg=1&goto arg-ok
|
||||
if /i "%1"=="licensertf" set licensertf=1&goto arg-ok
|
||||
if /i "%1"=="test" set test_args=%test_args% %common_test_suites%&set lint_cpp=1&set lint_js=1&set lint_md=1&goto arg-ok
|
||||
@ -194,7 +192,6 @@ if "%*"=="format-md" if exist "%node_exe%" goto format-md
|
||||
if "%config%"=="Debug" set configure_flags=%configure_flags% --debug
|
||||
if defined nosnapshot set configure_flags=%configure_flags% --without-snapshot
|
||||
if defined nonpm set configure_flags=%configure_flags% --without-npm
|
||||
if defined nocorepack set configure_flags=%configure_flags% --without-corepack
|
||||
if defined ltcg set configure_flags=%configure_flags% --with-ltcg
|
||||
if defined release_urlbase set configure_flags=%configure_flags% --release-urlbase=%release_urlbase%
|
||||
if defined download_arg set configure_flags=%configure_flags% %download_arg%
|
||||
@ -458,15 +455,6 @@ if not defined nonpm (
|
||||
if errorlevel 1 echo Cannot copy npx.ps1 && goto package_error
|
||||
)
|
||||
|
||||
if not defined nocorepack (
|
||||
robocopy ..\deps\corepack %TARGET_NAME%\node_modules\corepack /e /xd test > nul
|
||||
if errorlevel 8 echo Cannot copy corepack package && goto package_error
|
||||
copy /Y ..\deps\corepack\shims\nodewin\corepack %TARGET_NAME%\ > nul
|
||||
if errorlevel 1 echo Cannot copy corepack && goto package_error
|
||||
copy /Y ..\deps\corepack\shims\nodewin\corepack.cmd %TARGET_NAME%\ > nul
|
||||
if errorlevel 1 echo Cannot copy corepack.cmd && goto package_error
|
||||
)
|
||||
|
||||
copy /Y ..\tools\msvs\nodevars.bat %TARGET_NAME%\ > nul
|
||||
if errorlevel 1 echo Cannot copy nodevars.bat && goto package_error
|
||||
copy /Y ..\tools\msvs\install_tools\*.* %TARGET_NAME%\ > nul
|
||||
@ -807,7 +795,7 @@ set exit_code=1
|
||||
goto exit
|
||||
|
||||
:help
|
||||
echo vcbuild.bat [debug/release] [msi] [doc] [test/test-all/test-addons/test-doc/test-js-native-api/test-node-api/test-internet/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [projgen] [clang-cl] [ccache path-to-ccache] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [nonpm] [nocorepack] [ltcg] [licensetf] [sign] [x64/arm64] [vs2022] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-md] [lint-md-build] [format-md] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [cctest] [no-cctest] [openssl-no-asm]
|
||||
echo vcbuild.bat [debug/release] [msi] [doc] [test/test-all/test-addons/test-doc/test-js-native-api/test-node-api/test-internet/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [projgen] [clang-cl] [ccache path-to-ccache] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [nonpm] [ltcg] [licensetf] [sign] [x64/arm64] [vs2022] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-md] [lint-md-build] [format-md] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [cctest] [no-cctest] [openssl-no-asm]
|
||||
echo Examples:
|
||||
echo vcbuild.bat : builds release build
|
||||
echo vcbuild.bat debug : builds debug build
|
||||
|
Loading…
Reference in New Issue
Block a user