新增:签名工具支持保存签名参数
新增:反编译打包工具在打包结束后询问是否进行签名 新增:text_dialog支持传view 修改:TextToDalog重命名TextToDialog 修复:打包工具打包失败or反编译失败不再闪退 修复:签名工具偶尔会卡住的问题 修复:打包工具点击关闭未杀死线程导致挂起
This commit is contained in:
@@ -2,6 +2,7 @@ package com.qy.utils;
|
||||
|
||||
import java.io.*;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.rmi.server.ExportException;
|
||||
import java.util.Random;
|
||||
import java.util.jar.JarOutputStream;
|
||||
import java.util.zip.CRC32;
|
||||
@@ -184,7 +185,26 @@ public class Tools {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public static void saveConfig(File file,String data){
|
||||
if(!file.exists()){
|
||||
try {
|
||||
if(!file.createNewFile()){
|
||||
return;
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
try {
|
||||
FileWriter writer=new FileWriter(file);
|
||||
writer.write(data);
|
||||
writer.flush();
|
||||
writer.close();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
public static JSONObject loadConfig(File file) {
|
||||
JSONObject json = null;
|
||||
BufferedReader reader;
|
||||
@@ -202,6 +222,7 @@ public class Tools {
|
||||
while ((tmp = reader.readLine()) != null) {
|
||||
str += tmp;
|
||||
}
|
||||
reader.close();
|
||||
json = new JSONObject(str);
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
|
||||
Reference in New Issue
Block a user