summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-10 06:20:32 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-10 06:29:41 +0800
commitb1fa96a571036bef597695f8e0e7b7a58d1f3296 (patch)
treeba0a4849978f68608c1db7b6781ac19c92a44395 /scripts
parent412f9a2caa9248d97ade098b7bb160f84b1ebce9 (diff)
Add platform restrictions to deployment configsHEADDesktop_0.1.0_Basemain
- Move build_helper from crates/ to tools/ directory - Specify platform targets for shell completions and entry scripts - Bash scripts now target linux and macos - Powershell scripts target windows - Zsh plugin files target linux and macos
Diffstat (limited to 'scripts')
-rw-r--r--scripts/deploy/jv_cli.ps18
-rw-r--r--scripts/deploy/jv_cli.sh8
2 files changed, 8 insertions, 8 deletions
diff --git a/scripts/deploy/jv_cli.ps1 b/scripts/deploy/jv_cli.ps1
index 22836c7..2761137 100644
--- a/scripts/deploy/jv_cli.ps1
+++ b/scripts/deploy/jv_cli.ps1
@@ -47,11 +47,11 @@ Set-Alias jmv jmv
### COMPLETION ###
##################
-if (Test-Path "$SCRIPT_DIR\completions\powershell\completion_jv.ps1") {
- . "$SCRIPT_DIR\completions\powershell\completion_jv.ps1"
+if (Test-Path "$SCRIPT_DIR\comp\jv.ps1") {
+ . "$SCRIPT_DIR\comp\jv.ps1"
}
-if (Test-Path "$SCRIPT_DIR\completions\powershell\completion_jvv.ps1") {
- . "$SCRIPT_DIR\completions\powershell\completion_jvv.ps1"
+if (Test-Path "$SCRIPT_DIR\comp\jvv.ps1") {
+ . "$SCRIPT_DIR\comp\jvv.ps1"
}
###################
diff --git a/scripts/deploy/jv_cli.sh b/scripts/deploy/jv_cli.sh
index d732d95..80ff757 100644
--- a/scripts/deploy/jv_cli.sh
+++ b/scripts/deploy/jv_cli.sh
@@ -58,11 +58,11 @@ alias jvu='jv update'
### COMPLETION ###
##################
-if [ -f "$SCRIPT_DIR/completions/bash/completion_jv.sh" ]; then
- source "$SCRIPT_DIR/completions/bash/completion_jv.sh"
+if [ -f "$SCRIPT_DIR/comp/jv.sh" ]; then
+ source "$SCRIPT_DIR/comp/jv.sh"
fi
-if [ -f "$SCRIPT_DIR/completions/bash/completion_jvv.sh" ]; then
- source "$SCRIPT_DIR/completions/bash/completion_jvv.sh"
+if [ -f "$SCRIPT_DIR/comp/jvv.sh" ]; then
+ source "$SCRIPT_DIR/comp/jvv.sh"
fi
##################