From 4308e72aa4900dd78e7f81c1ef0914644c059baf Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Mon, 23 Sep 2024 20:03:52 +0800 Subject: [PATCH] =?UTF-8?q?fetch=E5=91=BD=E4=BB=A4=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++-- ui/src/pages/Update.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 8666894..c451625 100644 --- a/main.py +++ b/main.py @@ -24,9 +24,10 @@ def custom_event(data): command_list = { "lfs": "git\\bin\\git lfs install", - "ensurepip": "python\\python -m ensurepip --default-pip --no-warn-script-location", + "ensurepip": "python\\python -m ensurepip --default-pip", "clone": "git\\bin\\git clone https://git.zhaozuohong.vip/mower-ng/mower-ng.git --branch slow", - "fetch": "..\\git\\bin\\git fetch", + "fetch_fast": "..\\git\\bin\\git fetch origin/fast", + "fetch_slow": "..\\git\\bin\\git fetch origin/slow", "switch_fast": "..\\git\\bin\\git switch -f fast", "switch_slow": "..\\git\\bin\\git switch -f slow", "reset_fast": "..\\git\\bin\\git reset --hard origin/fast", diff --git a/ui/src/pages/Update.vue b/ui/src/pages/Update.vue index ef3185e..53f4945 100644 --- a/ui/src/pages/Update.vue +++ b/ui/src/pages/Update.vue @@ -14,7 +14,7 @@ watch(branch, () => { const steps = computed(() => [ { title: '更新源码', - command: ['fetch', `switch_${branch.value}`, `reset_${branch.value}`], + command: [`fetch_${branch.value}`, `switch_${branch.value}`, `reset_${branch.value}`], cwd: 'mower-ng' }, {