From f216fac0b0c86a090fd453fe70115b2e82154c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=88=E8=8F=9C=E5=8F=88=E7=88=B1=E7=8E=A9=E7=9A=84?= =?UTF-8?q?=E5=B0=8F=E6=9C=B1=E7=8C=AA?= <107445049+yxsj245@users.noreply.github.com> Date: Sat, 19 Jul 2025 17:28:51 +0800 Subject: [PATCH] Update package.js --- scripts/package.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/package.js b/scripts/package.js index a730431..6c94f9b 100644 --- a/scripts/package.js +++ b/scripts/package.js @@ -196,7 +196,7 @@ pause` await fs.writeFile( path.join(packageDir, 'start.bat'), startScript, - 'latin1' // 使用ANSI编码 + 'gbk' // 使用GBK编码(中文Windows默认编码) ) } else if (buildTarget === 'linux') { const startShScript = `#!/bin/bash @@ -226,7 +226,7 @@ pause` await fs.writeFile( path.join(packageDir, 'start.bat'), startScript, - 'latin1' // 使用ANSI编码 + 'gbk' // 使用GBK编码(中文Windows默认编码) ) const startShScript = `#!/bin/bash @@ -259,7 +259,7 @@ pause` await fs.writeFile( path.join(packageDir, 'install-python-deps.bat'), installPythonDepsScript, - 'latin1' // 使用ANSI编码 + 'gbk' // 使用GBK编码(中文Windows默认编码) ) // 创建Linux Python依赖安装脚本 @@ -383,4 +383,4 @@ function createZip(sourceDir, outputFile) { } // 运行打包 -createPackage() \ No newline at end of file +createPackage()