From 9c81dd3d567c620e5876e2c2586e3086272a4d14 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 3 Jan 2026 21:11:28 +0800 Subject: Update build timestamp format to seconds --- export.ps1 | 2 +- export.sh | 4 +--- 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 -- cgit