进入开发

This commit is contained in:
小朱
2025-07-13 13:18:58 +08:00
parent adb3e1db99
commit ec4e2c1ede
3 changed files with 6 additions and 6 deletions

View File

@@ -39,8 +39,8 @@ export class PluginManager {
constructor(logger: winston.Logger) {
this.logger = logger
// this.pluginsDir = path.join(__dirname, '../../../data/plugins')
this.pluginsDir = path.join(__dirname, '../../data/plugins')
this.pluginsDir = path.join(__dirname, '../../../data/plugins')
// this.pluginsDir = path.join(__dirname, '../../data/plugins')
this.initializePluginsDirectory()
}

View File

@@ -63,8 +63,8 @@ export class TerminalManager {
const arch = os.arch()
if (platform === 'win32') {
// this.ptyPath = path.resolve(__dirname, '../../../PTY/pty_win32_x64.exe')
this.ptyPath = path.resolve(__dirname, '../../PTY/pty_win32_x64.exe')
this.ptyPath = path.resolve(__dirname, '../../../PTY/pty_win32_x64.exe')
// this.ptyPath = path.resolve(__dirname, '../../PTY/pty_win32_x64.exe')
} else {
// Linux平台根据架构选择对应的PTY文件
if (arch === 'arm64' || arch === 'aarch64') {

View File

@@ -80,8 +80,8 @@ export function setGameDeploymentManagers(
// 获取可安装的游戏列表
router.get('/games', authenticateToken, async (req: Request, res: Response) => {
try {
// const gamesFilePath = path.join(__dirname, '../../data/games/installgame.json')
const gamesFilePath = path.join(__dirname, '../data/games/installgame.json')
const gamesFilePath = path.join(__dirname, '../../data/games/installgame.json')
// const gamesFilePath = path.join(__dirname, '../data/games/installgame.json')
const gamesData = await fs.readFile(gamesFilePath, 'utf-8')
const allGames: { [key: string]: SteamGameInfo } = JSON.parse(gamesData)