Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/src/cmake/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "CMake",
"id": "cmake",
"version": "26.8.1",
"version": "26.8.2",
"description": "A feature to install CMake",
"options": {
"version": {
Expand Down
8 changes: 4 additions & 4 deletions features/src/cmake/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ echo "Downloading CMake...";

if [[ "${CMAKE_VERSION}" == "latest" ]]; then
find_version_from_git_tags CMAKE_VERSION https://github.com/Kitware/CMake;
while ! wget --no-hsts -q -O /tmp/cmake_${CMAKE_VERSION}.sh https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-$(uname -m).sh; do
while ! wget --no-hsts -q -O "/tmp/cmake_${CMAKE_VERSION}.tar.gz" "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-$(uname -m).tar.gz"; do
echo "(!) cmake version ${CMAKE_VERSION} failed to download. Attempting to fall back one version to retry...";
find_prev_version_from_git_tags CMAKE_VERSION https://github.com/Kitware/CMake;
done
else
wget --no-hsts -q -O /tmp/cmake_${CMAKE_VERSION}.sh https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-$(uname -m).sh;
wget --no-hsts -q -O "/tmp/cmake_${CMAKE_VERSION}.tar.gz" "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-$(uname -m).tar.gz";
fi

echo "Installing CMake...";

# Install CMake
bash /tmp/cmake_${CMAKE_VERSION}.sh --skip-license --exclude-subdir --prefix=/usr;
cat "/tmp/cmake_${CMAKE_VERSION}.tar.gz" | tar -C /usr -xzvf - --strip-components=1

# Clean up
# rm -rf /tmp/*;
rm -rf /var/tmp/*;
rm -rf /var/cache/apt/*;
rm -rf /var/lib/apt/lists/*;
rm -rf /tmp/cmake_${CMAKE_VERSION}.sh;
rm -rf "/tmp/cmake_${CMAKE_VERSION}.tar.gz";
Loading