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') }