回复先前版本
This commit is contained in:
		@@ -75,9 +75,9 @@ android {
 | 
				
			|||||||
            def outputFileName=project.rootDir.name + "_${versionName}.apk"
 | 
					            def outputFileName=project.rootDir.name + "_${versionName}.apk"
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            // 创建 WinBoll Studio 发布接口文件夹
 | 
					            // 创建 WinBoll Studio 发布接口文件夹
 | 
				
			||||||
            File fWinBoLLStudioDir = file("/sdcard/WinBoLLStudio/APKs");
 | 
					            File fWinBollStudioDir = file("/sdcard/WinBollStudio/APKs");
 | 
				
			||||||
            if(!fWinBoLLStudioDir.exists()) {
 | 
					            if(!fWinBollStudioDir.exists()) {
 | 
				
			||||||
                //fWinBoLLStudioDir.mkdirs();
 | 
					                //fWinBollStudioDir.mkdirs();
 | 
				
			||||||
                // 如果没有发布接口文件就不用进行APK发布和源码管理操作
 | 
					                // 如果没有发布接口文件就不用进行APK发布和源码管理操作
 | 
				
			||||||
                // 当前编译环境不是 WinBoll 主机, 以下将忽略APK发布和源码管理操作。
 | 
					                // 当前编译环境不是 WinBoll 主机, 以下将忽略APK发布和源码管理操作。
 | 
				
			||||||
                println 'The current compilation environment is not in WinBoll host, and the following APK publishing and source management operations will be ignore.'
 | 
					                println 'The current compilation environment is not in WinBoll host, and the following APK publishing and source management operations will be ignore.'
 | 
				
			||||||
@@ -94,12 +94,12 @@ android {
 | 
				
			|||||||
                            // 如果正在调试,就拷贝到 WinBoll 备份管理文件夹
 | 
					                            // 如果正在调试,就拷贝到 WinBoll 备份管理文件夹
 | 
				
			||||||
                            // 
 | 
					                            // 
 | 
				
			||||||
                            if(variant.flavorName == "beta"&&variant.buildType.name == "debug"){
 | 
					                            if(variant.flavorName == "beta"&&variant.buildType.name == "debug"){
 | 
				
			||||||
                                //File outBuildBckDir = new File(fWinBoLLStudioDir, "/${rootProject.name}/${variant.buildType.name}")
 | 
					                                //File outBuildBckDir = new File(fWinBollStudioDir, "/${rootProject.name}/${variant.buildType.name}")
 | 
				
			||||||
                                File outBuildBckDir = new File(fWinBoLLStudioDir, "/" + project.rootDir.name + "/${variant.buildType.name}")
 | 
					                                File outBuildBckDir = new File(fWinBollStudioDir, "/" + project.rootDir.name + "/${variant.buildType.name}")
 | 
				
			||||||
                                // 创建目标路径目录
 | 
					                                // 创建目标路径目录
 | 
				
			||||||
                                if(!outBuildBckDir.exists()) {
 | 
					                                if(!outBuildBckDir.exists()) {
 | 
				
			||||||
                                    outBuildBckDir.mkdirs();
 | 
					                                    outBuildBckDir.mkdirs();
 | 
				
			||||||
                                    println "Output Folder Created.(WinBoLLStudio) : " + outBuildBckDir.getAbsolutePath()
 | 
					                                    println "Output Folder Created.(WinBollStudio) : " + outBuildBckDir.getAbsolutePath()
 | 
				
			||||||
                                }
 | 
					                                }
 | 
				
			||||||
                                if(outBuildBckDir.exists()) {
 | 
					                                if(outBuildBckDir.exists()) {
 | 
				
			||||||
                                    copy{
 | 
					                                    copy{
 | 
				
			||||||
@@ -108,7 +108,7 @@ android {
 | 
				
			|||||||
                                        rename {
 | 
					                                        rename {
 | 
				
			||||||
                                            String fileName -> "${outputFileName}"
 | 
					                                            String fileName -> "${outputFileName}"
 | 
				
			||||||
                                        }
 | 
					                                        }
 | 
				
			||||||
                                        println "Output APK (WinBoLLStudio): " + outBuildBckDir.getAbsolutePath() + "/${outputFileName}"
 | 
					                                        println "Output APK (WinBollStudio): " + outBuildBckDir.getAbsolutePath() + "/${outputFileName}"
 | 
				
			||||||
                                    }
 | 
					                                    }
 | 
				
			||||||
                                    // 检查编译标志位配置
 | 
					                                    // 检查编译标志位配置
 | 
				
			||||||
                                    assert (winbollBuildProps['buildCount'] != null)
 | 
					                                    assert (winbollBuildProps['buildCount'] != null)
 | 
				
			||||||
@@ -151,8 +151,8 @@ android {
 | 
				
			|||||||
                                String szCommonTagAPKName = project.rootDir.name + "_" + szShortVersionName + ".apk"
 | 
					                                String szCommonTagAPKName = project.rootDir.name + "_" + szShortVersionName + ".apk"
 | 
				
			||||||
                                println "CommonTagAPKName is : " + szCommonTagAPKName
 | 
					                                println "CommonTagAPKName is : " + szCommonTagAPKName
 | 
				
			||||||
                                
 | 
					                                
 | 
				
			||||||
                                //File outTagDir = new File(fWinBoLLStudioDir, "/${rootProject.name}/tag/")
 | 
					                                //File outTagDir = new File(fWinBollStudioDir, "/${rootProject.name}/tag/")
 | 
				
			||||||
                                File outTagDir = new File(fWinBoLLStudioDir, "/" + project.rootDir.name + "/tag/")
 | 
					                                File outTagDir = new File(fWinBollStudioDir, "/" + project.rootDir.name + "/tag/")
 | 
				
			||||||
                                // 创建目标路径目录
 | 
					                                // 创建目标路径目录
 | 
				
			||||||
                                if(!outTagDir.exists()) {
 | 
					                                if(!outTagDir.exists()) {
 | 
				
			||||||
                                    outTagDir.mkdirs();
 | 
					                                    outTagDir.mkdirs();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user