mirror of
https://github.com/GSManagerXZ/GameServerManager.git
synced 2026-06-01 02:19:34 +08:00
Merge branch 'main' of https://github.com/GSManagerXZ/GameServerManager3
This commit is contained in:
@@ -196,7 +196,8 @@ pause`
|
||||
|
||||
await fs.writeFile(
|
||||
path.join(packageDir, 'start.bat'),
|
||||
iconv.encode(startScript, 'gbk') // 使用iconv-lite转换为GBK编码
|
||||
startScript,
|
||||
'latin1' // 使用ANSI编码
|
||||
)
|
||||
} else if (buildTarget === 'linux') {
|
||||
const startShScript = `#!/bin/bash
|
||||
@@ -225,7 +226,8 @@ pause`
|
||||
|
||||
await fs.writeFile(
|
||||
path.join(packageDir, 'start.bat'),
|
||||
iconv.encode(startScript, 'gbk') // 使用iconv-lite转换为GBK编码
|
||||
startScript,
|
||||
'latin1' // 使用ANSI编码
|
||||
)
|
||||
|
||||
const startShScript = `#!/bin/bash
|
||||
@@ -257,7 +259,8 @@ pause`
|
||||
|
||||
await fs.writeFile(
|
||||
path.join(packageDir, 'install-python-deps.bat'),
|
||||
iconv.encode(installPythonDepsScript, 'gbk') // 使用iconv-lite转换为GBK编码
|
||||
installPythonDepsScript,
|
||||
'latin1' // 使用ANSI编码
|
||||
)
|
||||
|
||||
// 创建Linux Python依赖安装脚本
|
||||
@@ -381,4 +384,4 @@ function createZip(sourceDir, outputFile) {
|
||||
}
|
||||
|
||||
// 运行打包
|
||||
createPackage()
|
||||
createPackage()
|
||||
|
||||
Reference in New Issue
Block a user