Remove auto install debugging tools (#5)

Please refer to README.md and install manually from now on.
This commit is contained in:
elm
2025-08-19 12:58:30 +09:00
committed by GitHub
parent e42a9beacd
commit 291f06e74b
3 changed files with 6 additions and 65 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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(())
}