From bb6c64fe18dd3dc8fd683da127936917b17df0a6 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 7 Jan 2026 14:54:48 +0800 Subject: Rename export directory to deploy and move templates --- deploy.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'deploy.ps1') diff --git a/deploy.ps1 b/deploy.ps1 index 5b929f2..8140dcb 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -1,5 +1,12 @@ # Require : Cargo (Rust), ISCC (Inno Setup) +# Check for ISCC +$isccPath = Get-Command ISCC -ErrorAction SilentlyContinue +if (-not $isccPath) { + Write-Warning '"Inno Setup" not installed. (https://jrsoftware.org/isinfo.php)' + exit +} + # Build $env:CARGO_BUILD_RERUN_IF_ENV_CHANGED="FORCE_BUILD=$(Get-Date -Format 'mmss')" cargo build --workspace --release @@ -9,7 +16,7 @@ if ($LASTEXITCODE -ne 0) { # Build succeeded # Export if (cargo run --manifest-path crates/build_helper/Cargo.toml --bin exporter) { - Copy-Item -Path src\data\compile_info.rs.template -Destination src\data\compile_info.rs -Force + Copy-Item -Path templates\compile_info.rs -Destination src\data\compile_info.rs -Force ISCC /Q .\setup\windows\setup_jv_cli.iss } } -- cgit