diff --git a/76Pokies/build.gradle b/76Pokies/build.gradle index b40d9dd..a258f3d 100644 --- a/76Pokies/build.gradle +++ b/76Pokies/build.gradle @@ -32,11 +32,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "76pokies" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 diff --git a/9kelab/build.gradle b/9kelab/build.gradle index ea3dd3b..6ed3cbc 100644 --- a/9kelab/build.gradle +++ b/9kelab/build.gradle @@ -33,11 +33,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "9kelab" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 diff --git a/Bbj/build.gradle b/Bbj/build.gradle index ca16bab..49c1dbc 100644 --- a/Bbj/build.gradle +++ b/Bbj/build.gradle @@ -47,10 +47,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "bbj" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Bintang918/build.gradle b/Bintang918/build.gradle index 713ffc8..b4a6c3a 100644 --- a/Bintang918/build.gradle +++ b/Bintang918/build.gradle @@ -46,10 +46,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Bintang918" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Candy916/build.gradle b/Candy916/build.gradle index 2286914..8f063ec 100644 --- a/Candy916/build.gradle +++ b/Candy916/build.gradle @@ -34,10 +34,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "dn99" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Cashsweep/build.gradle b/Cashsweep/build.gradle index 12ed6dd..8bab9b2 100644 --- a/Cashsweep/build.gradle +++ b/Cashsweep/build.gradle @@ -34,10 +34,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Cashsweep" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Dmcslot/build.gradle b/Dmcslot/build.gradle index 018d906..d12f706 100644 --- a/Dmcslot/build.gradle +++ b/Dmcslot/build.gradle @@ -33,10 +33,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "dmcslot" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Gdslot888/build.gradle b/Gdslot888/build.gradle index 88ecec3..0d383d5 100644 --- a/Gdslot888/build.gradle +++ b/Gdslot888/build.gradle @@ -34,10 +34,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Gdslot888" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Jeslot88/build.gradle b/Jeslot88/build.gradle index e0a3e77..d0e323c 100644 --- a/Jeslot88/build.gradle +++ b/Jeslot88/build.gradle @@ -33,10 +33,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Jeslot88" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Judy88/build.gradle b/Judy88/build.gradle index 22a1515..335b80f 100644 --- a/Judy88/build.gradle +++ b/Judy88/build.gradle @@ -34,10 +34,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Judy88" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Kejapjudi/build.gradle b/Kejapjudi/build.gradle index 6539bfb..b60c5d4 100644 --- a/Kejapjudi/build.gradle +++ b/Kejapjudi/build.gradle @@ -34,10 +34,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "dn99" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Magnum888/build.gradle b/Magnum888/build.gradle index b0bc599..3765952 100644 --- a/Magnum888/build.gradle +++ b/Magnum888/build.gradle @@ -34,10 +34,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Magnum888" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Mahkota8/build.gradle b/Mahkota8/build.gradle index 51102d9..65e2514 100644 --- a/Mahkota8/build.gradle +++ b/Mahkota8/build.gradle @@ -34,10 +34,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Mahkota8" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Mk88aud/build.gradle b/Mk88aud/build.gradle index 9785822..3d71d7c 100644 --- a/Mk88aud/build.gradle +++ b/Mk88aud/build.gradle @@ -34,10 +34,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "mk88aud" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Mko888/build.gradle b/Mko888/build.gradle index f232dba..6346360 100644 --- a/Mko888/build.gradle +++ b/Mko888/build.gradle @@ -34,10 +34,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Mko888" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Oyen333/build.gradle b/Oyen333/build.gradle index f2b800c..ce14417 100644 --- a/Oyen333/build.gradle +++ b/Oyen333/build.gradle @@ -35,10 +35,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Oyen333" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/Petron777/build.gradle b/Petron777/build.gradle index f0b5f10..53cbc63 100644 --- a/Petron777/build.gradle +++ b/Petron777/build.gradle @@ -34,10 +34,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "Petron777" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/RichSpin96/build.gradle b/RichSpin96/build.gradle index 0196455..af982fa 100644 --- a/RichSpin96/build.gradle +++ b/RichSpin96/build.gradle @@ -33,10 +33,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "RichSpin96" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/agn888new/build.gradle b/agn888new/build.gradle index bb4bc4e..81b6387 100644 --- a/agn888new/build.gradle +++ b/agn888new/build.gradle @@ -34,11 +34,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "dn99" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 diff --git a/amb88/build.gradle b/amb88/build.gradle index 880aaa4..8657126 100644 --- a/amb88/build.gradle +++ b/amb88/build.gradle @@ -33,11 +33,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "dn99" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 diff --git a/app/build.gradle b/app/build.gradle index 69e0e36..9399995 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -33,10 +33,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "testapp" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/bk888/build.gradle b/bk888/build.gradle index bc04180..07580c2 100644 --- a/bk888/build.gradle +++ b/bk888/build.gradle @@ -33,10 +33,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "bk888" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/boda8/build.gradle b/boda8/build.gradle index bd6340f..d2500c3 100644 --- a/boda8/build.gradle +++ b/boda8/build.gradle @@ -35,10 +35,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "boda8au" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/cekap33/build.gradle b/cekap33/build.gradle index 8b21383..bd543d8 100644 --- a/cekap33/build.gradle +++ b/cekap33/build.gradle @@ -34,10 +34,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "dn99" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/cergas/build.gradle b/cergas/build.gradle index 99f7988..21d9152 100644 --- a/cergas/build.gradle +++ b/cergas/build.gradle @@ -35,10 +35,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "cergas" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/dapatcuci/build.gradle b/dapatcuci/build.gradle index 18c8b93..ef69da7 100644 --- a/dapatcuci/build.gradle +++ b/dapatcuci/build.gradle @@ -33,10 +33,45 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "dapatcuci" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/dn99/build.gradle b/dn99/build.gradle index 4852c7d..d262dd1 100644 --- a/dn99/build.gradle +++ b/dn99/build.gradle @@ -33,6 +33,7 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } @@ -41,6 +42,40 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "dn99" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } + } dependencies { diff --git a/emu668/build.gradle b/emu668/build.gradle index c1bcc66..9518460 100644 --- a/emu668/build.gradle +++ b/emu668/build.gradle @@ -33,10 +33,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "emu668" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/jackpotau/build.gradle b/jackpotau/build.gradle index 625014b..6e62616 100644 --- a/jackpotau/build.gradle +++ b/jackpotau/build.gradle @@ -35,10 +35,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "jackpotau" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/mgi/build.gradle b/mgi/build.gradle index eec0115..c13a9a9 100644 --- a/mgi/build.gradle +++ b/mgi/build.gradle @@ -34,11 +34,45 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "mgi" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/mk99pgk/build.gradle b/mk99pgk/build.gradle index be05844..ab17df8 100644 --- a/mk99pgk/build.gradle +++ b/mk99pgk/build.gradle @@ -35,10 +35,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "mk99pgk" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/nak99/build.gradle b/nak99/build.gradle index 415ed1c..adb0cf7 100644 --- a/nak99/build.gradle +++ b/nak99/build.gradle @@ -35,10 +35,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "nak99" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/nova668/build.gradle b/nova668/build.gradle index 47c7994..a8a3d11 100644 --- a/nova668/build.gradle +++ b/nova668/build.gradle @@ -33,10 +33,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "nova668" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/petronas777/build.gradle b/petronas777/build.gradle index a7a5fca..d468318 100644 --- a/petronas777/build.gradle +++ b/petronas777/build.gradle @@ -34,10 +34,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "petronas777" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/play33new/build.gradle b/play33new/build.gradle index 8e18331..6415a6c 100644 --- a/play33new/build.gradle +++ b/play33new/build.gradle @@ -35,10 +35,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "play33new" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/play88aus/build.gradle b/play88aus/build.gradle index bfcd042..c2a48e3 100644 --- a/play88aus/build.gradle +++ b/play88aus/build.gradle @@ -34,10 +34,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "play88aus" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/pms99/build.gradle b/pms99/build.gradle index d30b45d..955079d 100644 --- a/pms99/build.gradle +++ b/pms99/build.gradle @@ -34,10 +34,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "pms99" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/ppn88/build.gradle b/ppn88/build.gradle index 5618ad2..0bec9d1 100644 --- a/ppn88/build.gradle +++ b/ppn88/build.gradle @@ -33,10 +33,44 @@ android { buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "ppn88" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/shell777/build.gradle b/shell777/build.gradle index 28cbc2d..bca22bf 100644 --- a/shell777/build.gradle +++ b/shell777/build.gradle @@ -34,10 +34,44 @@ android { } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "shell777" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/speednp/build.gradle b/speednp/build.gradle index 4355f1e..97383a4 100644 --- a/speednp/build.gradle +++ b/speednp/build.gradle @@ -35,10 +35,45 @@ android { buildTypes { release { + signingConfig signingConfigs.release + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "speednp" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/spinsini/build.gradle b/spinsini/build.gradle index 85b2ac7..638d1c1 100644 --- a/spinsini/build.gradle +++ b/spinsini/build.gradle @@ -33,10 +33,45 @@ android { buildTypes { release { + signingConfig signingConfigs.release + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "spinsini" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/telur33/build.gradle b/telur33/build.gradle index 92ec899..cae33fd 100644 --- a/telur33/build.gradle +++ b/telur33/build.gradle @@ -34,10 +34,45 @@ android { buildTypes { release { + signingConfig signingConfigs.release + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "telur33" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/toto88new/build.gradle b/toto88new/build.gradle index 9729f1d..21d5add 100644 --- a/toto88new/build.gradle +++ b/toto88new/build.gradle @@ -35,10 +35,45 @@ android { buildTypes { release { + signingConfig signingConfigs.release + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "toto88new" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/ttslot888new/build.gradle b/ttslot888new/build.gradle index beeb139..2b2e0c6 100644 --- a/ttslot888new/build.gradle +++ b/ttslot888new/build.gradle @@ -36,10 +36,45 @@ android { buildTypes { release { + signingConfig signingConfigs.release + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "ttslot888new" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/u88/build.gradle b/u88/build.gradle index d95ec34..8d973b5 100644 --- a/u88/build.gradle +++ b/u88/build.gradle @@ -35,10 +35,45 @@ android { } buildTypes { release { + signingConfig signingConfigs.release + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "u88" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/ufo9/build.gradle b/ufo9/build.gradle index a4cd78e..bb6a5e9 100644 --- a/ufo9/build.gradle +++ b/ufo9/build.gradle @@ -33,10 +33,45 @@ android { buildTypes { release { + signingConfig signingConfigs.release + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "ufo9" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/uwin33/build.gradle b/uwin33/build.gradle index 2c11eaa..c8ff2b8 100644 --- a/uwin33/build.gradle +++ b/uwin33/build.gradle @@ -47,10 +47,45 @@ android { buildTypes { release { + signingConfig signingConfigs.release + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "uwin33" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/vv88/build.gradle b/vv88/build.gradle index adccfcd..fc94a2c 100644 --- a/vv88/build.gradle +++ b/vv88/build.gradle @@ -31,26 +31,60 @@ android { // keyAlias 'key0' // keyPassword "dskj2024" // } -// debug { -// storeFile file('dskjweb.jks') -// storePassword "dskj2024" -// keyAlias 'dskjalias' -// keyPassword "dskj2024" -// } -// release { -// storeFile file('dskjweb.jks') -// storePassword "dskj2024" -// keyAlias 'dskjalias' -// keyPassword "dskj2024" -// } + debug { + storeFile file('dskjweb.jks') + storePassword "dskj2024" + keyAlias 'dskjalias' + keyPassword "dskj2024" + } + release { + storeFile file('dskjweb.jks') + storePassword "dskj2024" + keyAlias 'dskjalias' + keyPassword "dskj2024" + } } buildTypes { release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } + + applicationVariants.all { variant -> + variant.outputs.all { + def appName = "vv88aud" + def outputDir = new File("F:/web_app") + // 创建输出目录 + outputDir.mkdirs() + def outputFileName = "${appName}.apk" + + // 设置输出文件名 + setOutputFileName(outputFileName) + + // 计算新的输出文件 + def newOutputFile = new File(outputDir, outputFileName) + + // 如果新的输出目录不存在,则创建它 + newOutputFile.parentFile.mkdirs() + + // 在构建完成后将 APK 复制到新位置 + variant.assemble.doLast { + try { + java.nio.file.Files.copy( + outputFile.toPath(), + newOutputFile.toPath(), + java.nio.file.StandardCopyOption.REPLACE_EXISTING + ) + println "Success to copy APK !!!" + } catch (java.io.IOException e) { + println "Failed to copy APK: ${e.message}" + } + } + } + } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8