From dc4ef0aec107d69bd8f3511e062f50f7fef238f7 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 23 Jan 2026 04:07:52 +0800 Subject: Add build progress messages and quiet flags --- deploy.ps1 | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'deploy.ps1') diff --git a/deploy.ps1 b/deploy.ps1 index 934c27b..cf2eef3 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -5,6 +5,13 @@ $scriptPath = $MyInvocation.MyCommand.Path $scriptDir = Split-Path $scriptPath -Parent Set-Location $scriptDir +# Check for ISCC +$isccPath = Get-Command ISCC -ErrorAction SilentlyContinue +if (-not $isccPath) { + Write-Warning '"Inno Setup" not installed. (https://jrsoftware.org/isinfo.php)' + exit 1 +} + # Check if core library exists $coreLibPath = "..\VersionControl\" if (-not (Test-Path $coreLibPath)) { @@ -13,14 +20,16 @@ if (-not (Test-Path $coreLibPath)) { } # Test core library -cargo test --manifest-path ..\VersionControl\Cargo.toml --workspace +Write-Host "Testing Core Library `".\..\VersionControl\Cargo.toml`"" +cargo test --manifest-path ..\VersionControl\Cargo.toml --workspace --quiet if ($LASTEXITCODE -ne 0) { Write-Warning "Core library tests failed. Aborting build." exit 1 } # Test workspace -cargo test --workspace +Write-Host "Testing Command Line `".\Cargo.toml`"" +cargo test --workspace --quiet if ($LASTEXITCODE -ne 0) { Write-Warning "Workspace tests failed. Aborting build." exit 1 @@ -42,23 +51,19 @@ if ($coreGitStatus) { exit 1 } -# Check for ISCC -$isccPath = Get-Command ISCC -ErrorAction SilentlyContinue -if (-not $isccPath) { - Write-Warning '"Inno Setup" not installed. (https://jrsoftware.org/isinfo.php)' - exit 1 -} - # Build $env:FORCE_BUILD=$(Get-Date -Format 'mmss') -cargo build --workspace --release +Write-Host "Building `".\Cargo.toml`"" +cargo build --workspace --release --quiet if ($LASTEXITCODE -ne 0) { # Build failed } else { # Build succeeded # Export - if (cargo run --manifest-path tools/build_helper/Cargo.toml --bin exporter release) { + Write-Host "Deploying `".\.cargo\config.toml`"" + if (cargo run --manifest-path tools/build_helper/Cargo.toml --quiet --bin exporter release) { Copy-Item -Path templates\compile_info.rs.template -Destination src\data\compile_info.rs -Force + Write-Host "Packing Installer `".\setup\windows\setup_jv_cli.iss`"" ISCC /Q .\setup\windows\setup_jv_cli.iss } } -- cgit