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' }, {