diff options
author | Trevor Manz <trevor.j.manz@gmail.com> | 2023-10-06 16:31:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 22:31:12 +0200 |
commit | cba5ae45c2422a4cf9df3a149a646a191a8f27b2 (patch) | |
tree | cbfc3f90860730e01be42e6d91ced0e56750cbb2 /cli/tools/jupyter/install.rs | |
parent | 677a591e56251821051412ca13beae5d6ff29f69 (diff) |
fix(jupyter): Rename logo assets so they are discoverable (#20806)
Changes logo prefix from `icon-*` to `logo-*` so they are correctly
discovered by Jupyter.
Diffstat (limited to 'cli/tools/jupyter/install.rs')
-rw-r--r-- | cli/tools/jupyter/install.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/tools/jupyter/install.rs b/cli/tools/jupyter/install.rs index d1777d92d..d1e4ef46b 100644 --- a/cli/tools/jupyter/install.rs +++ b/cli/tools/jupyter/install.rs @@ -12,6 +12,7 @@ use tempfile::TempDir; const DENO_ICON_32: &[u8] = include_bytes!("./resources/deno-logo-32x32.png"); const DENO_ICON_64: &[u8] = include_bytes!("./resources/deno-logo-64x64.png"); +const DENO_ICON_SVG: &[u8] = include_bytes!("./resources/deno-logo-svg.svg"); pub fn status() -> Result<(), AnyError> { let output = std::process::Command::new("jupyter") @@ -61,8 +62,9 @@ pub fn install() -> Result<(), AnyError> { let f = std::fs::File::create(kernel_json_path)?; serde_json::to_writer_pretty(f, &json_data)?; - install_icon(temp_dir.path(), "icon-32x32.png", DENO_ICON_32)?; - install_icon(temp_dir.path(), "icon-64x64.png", DENO_ICON_64)?; + install_icon(temp_dir.path(), "logo-32x32.png", DENO_ICON_32)?; + install_icon(temp_dir.path(), "logo-64x64.png", DENO_ICON_64)?; + install_icon(temp_dir.path(), "logo-svg.svg", DENO_ICON_SVG)?; let child_result = std::process::Command::new("jupyter") .args([ |