From 6aca142696ca9abc95e228fbc2ec1bc3ace4cba6 Mon Sep 17 00:00:00 2001 From: AoXuan Date: Thu, 7 Aug 2025 13:52:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor(initialization):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=B5=81=E7=A8=8B=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=96=B0=E5=8A=9F=E8=83=BD=20-=20=E5=9C=A8=20Git=20?= =?UTF-8?q?=E5=85=8B=E9=9A=86=E5=91=BD=E4=BB=A4=E4=B8=AD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E7=89=B9=E5=AE=9A=E5=88=86=E6=94=AF=E5=8F=82=E6=95=B0?= =?UTF-8?q?=20-=20=E5=9C=A8=E5=88=9D=E5=A7=8B=E5=8C=96=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E9=83=A8=E7=9A=84=E6=8C=89=E9=92=AE=20-=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BA=86=20Python=20=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/electron/services/gitService.ts | 2 +- frontend/electron/services/pythonService.ts | 2 +- frontend/src/views/Initialization.vue | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/electron/services/gitService.ts b/frontend/electron/services/gitService.ts index 5e9c693..e06e181 100644 --- a/frontend/electron/services/gitService.ts +++ b/frontend/electron/services/gitService.ts @@ -249,7 +249,7 @@ export async function cloneBackend( }) } await new Promise((resolve, reject) => { - const proc = spawn(gitPath, ['clone', '--progress', '--verbose', repoUrl, tmpDir], { + const proc = spawn(gitPath, ['clone', '--progress', '--verbose','--branch', 'feature/refactor-backend', repoUrl, tmpDir], { stdio: 'pipe', env: gitEnv, cwd: appRoot, diff --git a/frontend/electron/services/pythonService.ts b/frontend/electron/services/pythonService.ts index 361aa6c..b36ce49 100644 --- a/frontend/electron/services/pythonService.ts +++ b/frontend/electron/services/pythonService.ts @@ -403,7 +403,7 @@ export async function installDependencies(appRoot: string, mirror = 'tsinghua'): export async function startBackend(appRoot: string): Promise<{ success: boolean; error?: string }> { try { const pythonPath = path.join(appRoot, 'environment', 'python', 'python.exe') - const backendPath = path.join(appRoot, 'backend') + const backendPath = path.join(appRoot) const mainPyPath = path.join(backendPath, 'app','main.py') // 检查文件是否存在 diff --git a/frontend/src/views/Initialization.vue b/frontend/src/views/Initialization.vue index d45999b..39c68d7 100644 --- a/frontend/src/views/Initialization.vue +++ b/frontend/src/views/Initialization.vue @@ -4,6 +4,9 @@

AUTO MAA 初始化向导

欢迎使用 AUTO MAA,让我们来配置您的运行环境

跳转至首页,直接跳过环境安装(仅开发用) + + 跳到启动服务(第六步) + pythonInstalled.value && gitInstalled.value && backendExists.value && dependenciesInstalled.value ) +function jumpToLastStep() { + currentStep.value = 5 +} function skipToHome(){ router.push('/home') }