We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 675813e commit 00f88adCopy full SHA for 00f88ad
1 file changed
FlowCrypt/build.gradle.kts
@@ -373,12 +373,22 @@ tasks.register("renameReleaseBuilds") {
373
}
374
375
tasks.register<Copy>("copyReleaseApks") {
376
- from("${layout.buildDirectory}") {
377
- include("**/*release*.apk")
378
- }
379
-
380
includeEmptyDirs = false
381
- into("${rootProject.rootDir}/release")
+
+ into(
+ File(rootProject.rootDir, "release").apply {
+ if (!exists() && !mkdirs()) {
+ error("Can't create $name")
382
+ }
383
384
+ )
385
386
+ with(
387
+ copySpec {
388
+ from(layout.buildDirectory)
389
+ include("**/*release*.apk")
390
391
392
393
eachFile {
394
//replace path to copy only apk file to the destination folder(without subdirectories)
0 commit comments