Skip to content

Commit 4eb50ae

Browse files
authored
Automatically install kaleido binaries also on Linux aarch64 (#191)
Signed-off-by: Adrian Reber <[email protected]>
1 parent cdaa092 commit 4eb50ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plotly_kaleido/build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ use std::process::Command;
1010

1111
use directories::ProjectDirs;
1212

13-
#[cfg(target_os = "linux")]
13+
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
1414
const KALEIDO_URL: &str =
1515
"https://github.com/plotly/Kaleido/releases/download/v0.2.1/kaleido_linux_x64.zip";
1616

17+
#[cfg(all(target_arch = "aarch64", target_os = "linux"))]
18+
const KALEIDO_URL: &str =
19+
"https://github.com/plotly/Kaleido/releases/download/v0.2.1/kaleido_linux_arm64.zip";
20+
1721
#[cfg(target_os = "windows")]
1822
const KALEIDO_URL: &str =
1923
"https://github.com/plotly/Kaleido/releases/download/v0.2.1/kaleido_win_x64.zip";

0 commit comments

Comments
 (0)