|
@@ -254,7 +254,7 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
this.zipSceneJson(num, sceneJson);
|
|
|
|
|
|
//写入启动命令
|
|
|
- this.zipBat(num, "v4");
|
|
|
+ this.zipBat(num, "v4", downLoadTaskBean.getLang());
|
|
|
|
|
|
//打压缩包
|
|
|
ZipUtil.zip(String.format(this.sourceLocal, num, ""), zipPath, Charset.forName("GBK"), true);
|
|
@@ -332,7 +332,7 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
this.zipGetInfoJson(num, getInfoJson);
|
|
|
|
|
|
//写入启动命令
|
|
|
- this.zipBat(num, "v3");
|
|
|
+ this.zipBat(num, "v3", downLoadTaskBean.getLang());
|
|
|
|
|
|
//打压缩包
|
|
|
ZipUtil.zip(String.format(this.sourceLocal, num, ""), zipPath);
|
|
@@ -469,10 +469,10 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
FileUtil.writeUtf8String(num, String.format(sourceLocal, num, "code.txt"));
|
|
|
}
|
|
|
|
|
|
- private void zipBat(String num, String version) throws Exception{
|
|
|
- String batContent = String.format(this.exeContent, num);
|
|
|
+ private void zipBat(String num, String version, String lang) throws Exception{
|
|
|
+ String batContent = String.format(this.exeContent, num, lang);
|
|
|
if("v3".equals(version)){
|
|
|
- batContent = String.format(this.exeContentV3, num);
|
|
|
+ batContent = String.format(this.exeContentV3, num, lang);
|
|
|
}
|
|
|
// this.zipBytes(out, exeName, batContent.getBytes());
|
|
|
FileUtil.writeUtf8String(batContent, String.format(this.sourceLocal, num, exeName));
|