Skip to content

Commit 5fcdb88

Browse files
committed
gradle: ensure the signing config are used only if --sign is passed.
1 parent 421657d commit 5fcdb88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythonforandroid/bootstraps/sdl2_gradle/build/templates/build.tmpl.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ android {
4141
keyPassword System.getenv("P4A_RELEASE_KEYALIAS_PASSWD")
4242
}
4343
}
44-
{%- endif %}
44+
{%- endif %}
4545

4646
externalNativeBuild {
4747
ndkBuild {
@@ -53,7 +53,9 @@ android {
5353
debug {
5454
}
5555
release {
56+
{% if args.sign -%}
5657
signingConfig signingConfigs.release
58+
{%- endif %}
5759
}
5860
}
5961

0 commit comments

Comments
 (0)