| | |
| | | renamePackage(destPath + "/app/src/main/java/com/ks/app"); |
| | | replaceSettings(destPath); |
| | | //压缩文件夹 |
| | | ZipUtil.compressToZip(destPath, new File(destPath).getParent(), new File(destPath).getName() + ".zip"); |
| | | File zip = new File(new File(destPath).getParent(), new File(destPath).getName() + ".zip"); |
| | | ZipUtil.compressToZip(destPath, zip.getParent(), zip.getName()); |
| | | //删除原来的文件夹 |
| | | FileUtil.deleteFileDir(new File(destPath)); |
| | | return destPath; |
| | | return zip.getAbsolutePath(); |
| | | } |
| | | |
| | | private void replaceSettings(String path) throws Exception { |