Skip to content

Commit 5d88b74

Browse files
nikola-maticcameel
authored andcommitted
install_deps.ps1: Remove downloaded packages and sources after installation
1 parent 73d582d commit 5d88b74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/install_deps.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if ( -not (Test-Path "$PSScriptRoot\..\deps\boost") ) {
1212
}
1313
tar -xf cmake.zip
1414
mv cmake-3.27.4-windows-x86_64 "$PSScriptRoot\..\deps\cmake"
15+
Remove-Item cmake.zip
1516

1617
# FIXME: The default user agent results in Artifactory treating Invoke-WebRequest as a browser
1718
# and serving it a page that requires JavaScript.
@@ -20,9 +21,11 @@ if ( -not (Test-Path "$PSScriptRoot\..\deps\boost") ) {
2021
throw 'Downloaded Boost source package has wrong checksum.'
2122
}
2223
tar -xf boost.zip
24+
Remove-Item boost.zip
2325
cd boost_1_83_0
2426
.\bootstrap.bat
2527
.\b2 -j4 -d0 link=static runtime-link=static variant=release threading=multi address-model=64 --with-filesystem --with-system --with-program_options --with-test --prefix="$PSScriptRoot\..\deps\boost" install
2628
if ( -not $? ) { throw "Error building boost." }
2729
cd ..
30+
Remove-Item -LiteralPath .\boost_1_83_0 -Force -Recurse
2831
}

0 commit comments

Comments
 (0)