mirror of
https://github.com/GSManagerXZ/GameServerManager.git
synced 2026-07-02 04:44:39 +08:00
进入开发
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user