From 5f00e94a4c434d6bf7afe5e9d4c1341bca4316f7 Mon Sep 17 00:00:00 2001 From: Manuel Fuhr Date: Fri, 29 Oct 2021 08:19:44 +0200 Subject: [PATCH] gradle: Disable 'generate_profile_variants.sh' on Windows --- brouter-routing-app/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/brouter-routing-app/build.gradle b/brouter-routing-app/build.gradle index 2eb2618..22ee701 100644 --- a/brouter-routing-app/build.gradle +++ b/brouter-routing-app/build.gradle @@ -1,3 +1,5 @@ +import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform + plugins { id 'com.android.application' } @@ -105,7 +107,12 @@ task generateProfiles(type: Exec) { } task generateProfilesZip(type: Zip) { - dependsOn generateProfiles + if (DefaultNativePlatform.getCurrentOperatingSystem().isWindows()) { + logger.warn("Note: On Windows run script '../misc/scripts/generate_profile_variants.sh' manually to include all profiles") + } + else { + dependsOn generateProfiles + } archiveFileName = "profiles2.zip" from "../misc/profiles2" exclude "all.brf"