Skip to content

Commit 626b379

Browse files
Adding conditional download of node24 for win-x86 systems
1 parent e9b3d09 commit 626b379

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Misc/externals.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ L1_MODE=$4
66

77
INCLUDE_NODE6=${INCLUDE_NODE6:-true}
88
INCLUDE_NODE10=${INCLUDE_NODE10:-true}
9+
INCLUDE_NODE24=${INCLUDE_NODE24:-true}
910

1011
CONTAINER_URL=https://vstsagenttools.blob.core.windows.net/tools
1112

@@ -180,6 +181,9 @@ if [[ "$PACKAGERUNTIME" == "win-x"* ]]; then
180181
# Copy vstsom to vstshost for default PowerShell handler behavior
181182
cp -r "$LAYOUT_DIR/externals/vstsom/"* "$LAYOUT_DIR/externals/vstshost/"
182183
fi
184+
if [[ "$PACKAGERUNTIME" == "win-x86" ]]; then
185+
INCLUDE_NODE24=false
186+
fi
183187

184188
acquireExternalTool "$CONTAINER_URL/mingit/${MINGIT_VERSION}/MinGit-${MINGIT_VERSION}-${BIT}-bit.zip" git
185189
acquireExternalTool "$CONTAINER_URL/git-lfs/${LFS_VERSION}/x${BIT}/git-lfs.exe" "git/mingw${BIT}/bin"
@@ -202,8 +206,10 @@ if [[ "$PACKAGERUNTIME" == "win-x"* ]]; then
202206
acquireExternalTool "${NODE_URL}/v${NODE16_VERSION}/${PACKAGERUNTIME}/node.lib" node16/bin
203207
acquireExternalTool "${NODE_URL}/v${NODE20_VERSION}/${PACKAGERUNTIME}/node.exe" node20_1/bin
204208
acquireExternalTool "${NODE_URL}/v${NODE20_VERSION}/${PACKAGERUNTIME}/node.lib" node20_1/bin
209+
if [[ "$INCLUDE_NODE24" == "true" ]]; then
205210
acquireExternalTool "${NODE_URL}/v${NODE24_VERSION}/${PACKAGERUNTIME}/node.exe" node24/bin
206211
acquireExternalTool "${NODE_URL}/v${NODE24_VERSION}/${PACKAGERUNTIME}/node.lib" node24/bin
212+
fi
207213
elif [[ "$PACKAGERUNTIME" == "win-arm64" || "$PACKAGERUNTIME" == "win-arm32" ]]; then
208214
# Download external tools for Windows ARM
209215

0 commit comments

Comments
 (0)