diff options
| -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 |
