完善自动打包程序(基本正常),缺少UI界面

穿山甲打包程序新增选择是否用应用包名选项
穿山甲配置同步
This commit is contained in:
2020-03-18 17:10:43 +08:00
parent 19e7e49fe7
commit 6637bfe422
7 changed files with 125 additions and 54 deletions

View File

@@ -55,9 +55,10 @@ public class Tools {
File srcFile = new File(srcFileName);
// 判断源文件是否存在
if (!srcFile.exists()) {
System.err.println("源文件不存在:"+srcFile.getAbsolutePath());
return false;
} else if (!srcFile.isFile()) {
System.err.println("源文件是目录:"+srcFile.getAbsolutePath());
return false;
}
@@ -66,12 +67,9 @@ public class Tools {
// 如果目标文件所在目录不存在,则创建目录
if (!destFile.exists()) {
// 目标文件所在目录不存在
boolean t=destFile.mkdirs();
if(srcFileName.equals("Activity.smali")){
System.out.println("创建文件夹:"+destFileName+" "+t);
}
if (!destFile.mkdirs()) {
// 复制文件失败:创建目标文件所在目录失败
System.err.println("创建文件夹失败");
return false;
}