From c4d67bf738ca116c616b2f2c6c0859f16cccf6b4 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sat, 27 Dec 2025 20:34:27 +0800 Subject: Remove compile_info.rs after successful export --- export.ps1 | 1 + export.sh | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/export.ps1 b/export.ps1 index d24c37e..77fda4d 100644 --- a/export.ps1 +++ b/export.ps1 @@ -8,6 +8,7 @@ if ($LASTEXITCODE -ne 0) { # Build succeeded # Export if (cargo run --manifest-path crates/build_helper/Cargo.toml --bin exporter) { + Remove-Item -Path src\data\compile_info.rs -ErrorAction SilentlyContinue ISCC /Q .\setup\windows\setup_jv_cli.iss } } diff --git a/export.sh b/export.sh index e508d79..66e85f2 100755 --- a/export.sh +++ b/export.sh @@ -5,5 +5,8 @@ # Build if cargo build --workspace --release; then # Export - cargo run --manifest-path crates/build_helper/Cargo.toml --bin exporter + if cargo run --manifest-path crates/build_helper/Cargo.toml --bin exporter; then + # Delete compile_info.rs after successful export + rm -f src/data/compile_info.rs + fi fi -- cgit