summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2025-12-27 20:34:27 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2025-12-27 20:34:27 +0800
commitc4d67bf738ca116c616b2f2c6c0859f16cccf6b4 (patch)
tree096733828c70bc9a2319282ca15dc92d017a1ff7
parentb00e3e750d118c35b0949b78c1a59242aeb43082 (diff)
Remove compile_info.rs after successful export
-rw-r--r--export.ps11
-rwxr-xr-xexport.sh5
2 files changed, 5 insertions, 1 deletions
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