From 6bc0b1c04f8e2535648bb791a0a803c15115d2bc Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 3 Jan 2026 21:13:12 +0800 Subject: Rename export scripts to deploy scripts --- deploy.ps1 | 15 +++++++++++++++ deploy.sh | 12 ++++++++++++ export.ps1 | 15 --------------- export.sh | 12 ------------ 4 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 deploy.ps1 create mode 100755 deploy.sh delete mode 100644 export.ps1 delete mode 100755 export.sh diff --git a/deploy.ps1 b/deploy.ps1 new file mode 100644 index 0000000..d077028 --- /dev/null +++ b/deploy.ps1 @@ -0,0 +1,15 @@ +# Require : Cargo (Rust), ISCC (Inno Setup) + +# Build +$env:CARGO_BUILD_RERUN_IF_ENV_CHANGED="FORCE_BUILD=$(Get-Date -Format 'mmss')" +cargo build --workspace --release +if ($LASTEXITCODE -ne 0) { + # Build failed +} else { + # 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/deploy.sh b/deploy.sh new file mode 100755 index 0000000..ce1a7bd --- /dev/null +++ b/deploy.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Require : Cargo (Rust) + +# Build +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 + rm -f src/data/compile_info.rs + fi +fi diff --git a/export.ps1 b/export.ps1 deleted file mode 100644 index d077028..0000000 --- a/export.ps1 +++ /dev/null @@ -1,15 +0,0 @@ -# Require : Cargo (Rust), ISCC (Inno Setup) - -# Build -$env:CARGO_BUILD_RERUN_IF_ENV_CHANGED="FORCE_BUILD=$(Get-Date -Format 'mmss')" -cargo build --workspace --release -if ($LASTEXITCODE -ne 0) { - # Build failed -} else { - # 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 deleted file mode 100755 index ce1a7bd..0000000 --- a/export.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -# Require : Cargo (Rust) - -# Build -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 - rm -f src/data/compile_info.rs - fi -fi -- cgit