fix: 完成AUTO-MAS改名

This commit is contained in:
DLmaster361
2025-09-10 23:07:52 +08:00
parent ab48b91f26
commit fd8f602da2
52 changed files with 272 additions and 295 deletions

View File

@@ -203,7 +203,7 @@ function createTray() {
])
tray.setContextMenu(contextMenu)
tray.setToolTip('AUTO_MAA')
tray.setToolTip('AUTO-MAS')
// 双击托盘图标显示/隐藏窗口
tray.on('double-click', () => {
@@ -545,7 +545,7 @@ ipcMain.handle('download-git', async () => {
ipcMain.handle(
'clone-backend',
async (_event, repoUrl = 'https://github.com/DLmaster361/AUTO_MAA.git') => {
async (_event, repoUrl = 'https://github.com/AUTO-MAS-Project/AUTO-MAS.git') => {
const appRoot = getAppRoot()
return cloneBackend(appRoot, repoUrl)
}
@@ -553,7 +553,7 @@ ipcMain.handle(
ipcMain.handle(
'update-backend',
async (_event, repoUrl = 'https://github.com/DLmaster361/AUTO_MAA.git') => {
async (_event, repoUrl = 'https://github.com/AUTO-MAS-Project/AUTO-MAS.git') => {
const appRoot = getAppRoot()
return cloneBackend(appRoot, repoUrl) // 使用相同的逻辑会自动判断是pull还是clone
}

View File

@@ -187,7 +187,7 @@ export async function downloadGit(appRoot: string): Promise<{ success: boolean;
// 克隆后端代码(替换原有核心逻辑)
export async function cloneBackend(
appRoot: string,
repoUrl = 'https://github.com/DLmaster361/AUTO_MAA.git'
repoUrl = 'https://github.com/AUTO-MAS-Project/AUTO-MAS.git'
): Promise<{
success: boolean
error?: string