refactor(electron): 重构 Git 和后端代码获取逻辑

- 优化 Git 安装过程,使用临时目录解压后移动到目标位置
- 重新设计后端代码获取逻辑,支持跳过环境安装
- 添加跳转至首页按钮,便于开发测试
- 修复 Python 依赖安装路径问题
This commit is contained in:
2025-08-07 01:37:52 +08:00
parent 161dc478ae
commit f85a3024ef
3 changed files with 114 additions and 232 deletions

View File

@@ -3,6 +3,7 @@
<div class="header">
<h1>AUTO MAA 初始化向导</h1>
<p>欢迎使用 AUTO MAA让我们来配置您的运行环境</p>
<a-button size="large" type="primary" @click="skipToHome">跳转至首页直接跳过环境安装仅开发用</a-button>
</div>
<a-steps
@@ -317,6 +318,10 @@ const allCompleted = computed(() =>
pythonInstalled.value && gitInstalled.value && backendExists.value && dependenciesInstalled.value
)
function skipToHome(){
router.push('/home')
}
// 主题设置相关
function onThemeModeChange() {
setThemeMode(selectedThemeMode.value)