diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-03 21:11:28 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-03 21:11:28 +0800 |
| commit | 9c81dd3d567c620e5876e2c2586e3086272a4d14 (patch) | |
| tree | f3029d20b1313505d3ed7596c7d9503ee0c35012 | |
| parent | 2e16a556e277035225d02d9a62c2da699235de36 (diff) | |
Update build timestamp format to seconds
| -rw-r--r-- | export.ps1 | 2 | ||||
| -rwxr-xr-x | export.sh | 4 |
2 files changed, 2 insertions, 4 deletions
@@ -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 @@ -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 |
