Skip to content

Commit

Permalink
Update to latest binary ros2 windows distributions
Browse files Browse the repository at this point in the history
Signed-off-by: Melvin Wang <melvin.mc.wang@gmail.com>
  • Loading branch information
wmmc88 committed Sep 26, 2021
1 parent 60765f0 commit 45a5906
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/setup-ros-windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down Expand Up @@ -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}`,
]);
Expand Down

0 comments on commit 45a5906

Please sign in to comment.