From 08b1609b5878ccf13149f8c7d3d89fc2414b4908 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Sat, 25 Sep 2021 18:11:46 -0400 Subject: [PATCH] Update to latest binary ros2 windows distributions Signed-off-by: Melvin Wang --- src/setup-ros-windows.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/setup-ros-windows.ts b/src/setup-ros-windows.ts index 6e3464de4..b11c435d9 100644 --- a/src/setup-ros-windows.ts +++ b/src/setup-ros-windows.ts @@ -8,12 +8,12 @@ import * as utils from "./utils"; const binaryReleases: { [index: string]: string } = { dashing: - "https://github.com/ros2/ros2/releases/download/release-dashing-20201202/ros2-dashing-20201202-windows-amd64.zip", + "https://github.com/ros2/ros2/releases/download/release-dashing-20210610/ros2-dashing-20210610-windows-amd64.zip", eloquent: "https://github.com/ros2/ros2/releases/download/release-eloquent-20200124/ros2-eloquent-20200124-windows-release-amd64.zip", - foxy: "https://github.com/ros2/ros2/releases/download/release-foxy-20201211/ros2-foxy-20201211-windows-release.amd64.zip", + foxy: "https://github.com/ros2/ros2/releases/download/release-foxy-20210902/ros2-foxy-20210902-windows-release-amd64.tar.bz2", galactic: - "https://github.com/ros2/ros2/releases/download/release-galactic-20210523/ros2-galactic-20210523-windows-release-amd64.zip", + "https://github.com/ros2/ros2/releases/download/release-galactic-20210716/ros2-galactic-20210616-windows-release-amd64.zip", }; const pip3Packages: string[] = ["lxml", "netifaces"]; @@ -58,15 +58,18 @@ async function prepareRos2BuildEnvironment() { async function prepareRos2BinaryReleases() { for (const rosDistro of utils.getRequiredRosDistributions()) { if (rosDistro in binaryReleases) { + const binaryURL = binaryReleases[rosDistro]; + const filename = binaryURL.split('/').slice(-1)[0]; + const extension = filename.split('.').slice(1).join('.'); await utils.exec("wget", [ "--quiet", - binaryReleases[rosDistro], + binaryURL, "-O", - `${rosDistro}.zip`, + `${rosDistro}.${extension}`, ]); await utils.exec("7z", [ "x", - `${rosDistro}.zip`, + `${rosDistro}.${extension}`, "-y", `-oC:\\dev\\${rosDistro}`, ]);