diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-20 14:16:49 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-20 14:16:49 +0800 |
| commit | 6b22f7b7694fce530f84ba94c65c057450cca626 (patch) | |
| tree | a5a43e0c7447852c25e1ba63a2830528ba82548c | |
| parent | f94e23084aa7876d7d6afd8a780a074d84a0007c (diff) | |
Run jvn after successful export in deploy scripts
| -rw-r--r-- | scripts/dev/deploy.ps1 | 4 | ||||
| -rwxr-xr-x | scripts/dev/deploy.sh | 4 | ||||
| -rw-r--r-- | scripts/dev/dev_deploy.ps1 | 4 | ||||
| -rwxr-xr-x | scripts/dev/dev_deploy.sh | 5 |
4 files changed, 17 insertions, 0 deletions
diff --git a/scripts/dev/deploy.ps1 b/scripts/dev/deploy.ps1 index beaf6a8..5332f1d 100644 --- a/scripts/dev/deploy.ps1 +++ b/scripts/dev/deploy.ps1 @@ -79,6 +79,10 @@ if ($LASTEXITCODE -ne 0) { Write-Host "Deploying Command Line `".\.cargo\config.toml`"" if (cargo run --manifest-path tools/build_helper/Cargo.toml --quiet --bin exporter release > $null 2>&1) { Copy-Item -Path templates\compile_info.rs.template -Destination src\data\compile_info.rs -Force + # After export, if jvn program exists, run jvn -v --no-banner -c + if (Get-Command jvn -ErrorAction SilentlyContinue) { + jvn -v --no-banner -c + } Write-Host "Packing Installer `".\setup\windows\setup_jv_cli.iss`"" ISCC /Q .\scripts\setup\windows\setup_jv_cli.iss } diff --git a/scripts/dev/deploy.sh b/scripts/dev/deploy.sh index b8e4640..9ade49d 100755 --- a/scripts/dev/deploy.sh +++ b/scripts/dev/deploy.sh @@ -56,6 +56,10 @@ if FORCE_BUILD=$(date +%s) cargo build --workspace --release --quiet > /dev/null if cargo run --manifest-path tools/build_helper/Cargo.toml --quiet --bin exporter release > /dev/null 2>&1; then # Copy compile_info.rs.template to compile_info.rs after successful export cp -f templates/compile_info.rs.template src/data/compile_info.rs + # Run jvn if available + if command -v jvn &> /dev/null; then + jvn -v --no-banner -c + fi fi fi diff --git a/scripts/dev/dev_deploy.ps1 b/scripts/dev/dev_deploy.ps1 index 688b8d1..ebb15b8 100644 --- a/scripts/dev/dev_deploy.ps1 +++ b/scripts/dev/dev_deploy.ps1 @@ -28,5 +28,9 @@ if ($LASTEXITCODE -ne 0) { # Export if (cargo run --manifest-path tools/build_helper/Cargo.toml --quiet --bin exporter debug) { Copy-Item -Path templates\compile_info.rs.template -Destination src\data\compile_info.rs -Force + # Run jvn if available after export + if (Get-Command jvn -ErrorAction SilentlyContinue) { + jvn -v --no-banner -c + } } } diff --git a/scripts/dev/dev_deploy.sh b/scripts/dev/dev_deploy.sh index d175cd1..4ec438b 100755 --- a/scripts/dev/dev_deploy.sh +++ b/scripts/dev/dev_deploy.sh @@ -11,5 +11,10 @@ if FORCE_BUILD=$(date +%M) cargo build --workspace; then if cargo run --manifest-path tools/build_helper/Cargo.toml --quiet --bin exporter debug; then # Copy compile_info.rs.template to compile_info.rs after successful export cp -f templates/compile_info.rs.template src/data/compile_info.rs + + # Run jvn if available + if command -v jvn &> /dev/null; then + jvn -v --no-banner -c + fi fi fi |
