From 291f06e74bc8c7b00fb45b43ad126fd2de15c6aa Mon Sep 17 00:00:00 2001 From: elm <71685838+not-elm@users.noreply.github.com> Date: Tue, 19 Aug 2025 12:58:30 +0900 Subject: [PATCH] Remove auto install debugging tools (#5) Please refer to README.md and install manually from now on. --- .github/workflows/ci.yml | 2 +- CHANGELOG.md | 5 ++++ build.rs | 64 ---------------------------------------- 3 files changed, 6 insertions(+), 65 deletions(-) delete mode 100644 build.rs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4367708..f92c643 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: test: strategy: matrix: - os: [windows-latest, ubuntu-latest] + os: [windows-latest, ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 22899d6..bbadd11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ - Fixed so that webview can detect pointers correctly even if it is not the root entity. +### Breaking Changes + +- Remove auto install debug tools + - Please refer to [README.md](./README.md) and install manually from now on. + ## v0.1.0 First release \ No newline at end of file diff --git a/build.rs b/build.rs deleted file mode 100644 index bcca7f4..0000000 --- a/build.rs +++ /dev/null @@ -1,64 +0,0 @@ -#[cfg(all(target_os = "macos", feature = "debug"))] -use std::env::home_dir; -#[cfg(all(target_os = "macos", feature = "debug"))] -use std::process::Command; - -fn main() -> std::io::Result<()> { - println!("cargo::rerun-if-changed=build.rs"); - #[cfg(all(target_os = "macos", feature = "debug"))] - { - install_bevy_cef_debug_render_process()?; - install_export_cef_dir()?; - export_cef_dir()?; - } - Ok(()) -} - -#[cfg(all(target_os = "macos", feature = "debug"))] -fn install_bevy_cef_debug_render_process() -> std::io::Result<()> { - let bevy_cef_render_process_path = home_dir() - .unwrap() - .join(".cargo") - .join("bin") - .join("bevy_cef_debug_render_process"); - if !bevy_cef_render_process_path.exists() { - Command::new("cargo") - .args(["install", "bevy_cef_debug_render_process"]) - .spawn()?; - } - Ok(()) -} - -#[cfg(all(target_os = "macos", feature = "debug"))] -fn install_export_cef_dir() -> std::io::Result<()> { - let export_cef_dir_path = home_dir() - .unwrap() - .join(".cargo") - .join("bin") - .join("export-cef-dir"); - if !export_cef_dir_path.exists() { - Command::new("cargo") - .args(["install", "export-cef-dir"]) - .spawn()?; - } - Ok(()) -} - -#[cfg(all(target_os = "macos", feature = "debug"))] -fn export_cef_dir() -> std::io::Result<()> { - let cef_dir = home_dir().unwrap().join(".local").join("share").join("cef"); - if cef_dir.exists() { - return Ok(()); - } - let export_cef_dir_path = home_dir() - .unwrap() - .join(".cargo") - .join("bin") - .join("export-cef-dir"); - Command::new(export_cef_dir_path) - .arg("--force") - .arg(cef_dir) - .spawn()? - .wait()?; - Ok(()) -}