diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-07 14:54:48 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-07 14:54:48 +0800 |
| commit | bb6c64fe18dd3dc8fd683da127936917b17df0a6 (patch) | |
| tree | 8719c670c51f84d84a7b64b6070684b171d2193d /deploy.ps1 | |
| parent | edf60b58e4e33607b3929cfd6c678b88b49abaab (diff) | |
Rename export directory to deploy and move templates
Diffstat (limited to 'deploy.ps1')
| -rw-r--r-- | deploy.ps1 | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 } } |
