summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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