summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-03 21:11:28 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-03 21:11:28 +0800
commit9c81dd3d567c620e5876e2c2586e3086272a4d14 (patch)
treef3029d20b1313505d3ed7596c7d9503ee0c35012
parent2e16a556e277035225d02d9a62c2da699235de36 (diff)
Update build timestamp format to seconds
-rw-r--r--export.ps12
-rwxr-xr-xexport.sh4
2 files changed, 2 insertions, 4 deletions
diff --git a/export.ps1 b/export.ps1
index 8b1d675..d077028 100644
--- a/export.ps1
+++ b/export.ps1
@@ -1,7 +1,7 @@
# Require : Cargo (Rust), ISCC (Inno Setup)
# Build
-$env:CARGO_BUILD_RERUN_IF_ENV_CHANGED="FORCE_BUILD=$(Get-Date -Format 'yyyyMMdd')"
+$env:CARGO_BUILD_RERUN_IF_ENV_CHANGED="FORCE_BUILD=$(Get-Date -Format 'mmss')"
cargo build --workspace --release
if ($LASTEXITCODE -ne 0) {
# Build failed
diff --git a/export.sh b/export.sh
index c18e41c..ce1a7bd 100755
--- a/export.sh
+++ b/export.sh
@@ -3,9 +3,7 @@
# Require : Cargo (Rust)
# Build
-export FORCE_BUILD=$(date +%Y-%m-%d)
-
-if cargo build --workspace --release; then
+if FORCE_BUILD=$(date +%s) cargo build --workspace --release; then
# Export
if cargo run --manifest-path crates/build_helper/Cargo.toml --bin exporter; then
# Delete compile_info.rs after successful export