Skip to content

Commit 62b7d0e

Browse files
author
Mihail Slavchev
committed
Merge branch 'release'
2 parents 08a337a + 321c51a commit 62b7d0e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build/project-template-gradle/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,9 @@ task buildMetadata (type: JavaExec) {
462462
keyStorePath = keyStoreFile.getAbsolutePath()
463463
alias = "androiddebugkey"
464464
}
465+
def jarSignerPath = new File(System.getenv("JAVA_HOME"), "bin/jarsigner").getAbsolutePath()
465466

466-
def cmdParams = new ArrayList<String>(["jarsigner", "-sigalg", "SHA1withRSA", "-digestalg", "SHA1", "-storepass", storePass, "-keypass", keyPass, "-keystore", keyStorePath, currentApk, alias])
467+
def cmdParams = new ArrayList<String>([jarSignerPath, "-sigalg", "SHA1withRSA", "-digestalg", "SHA1", "-storepass", storePass, "-keypass", keyPass, "-keystore", keyStorePath, currentApk, alias])
467468

468469
if (isWinOs) {
469470
cmdParams.add(0, "/c")

0 commit comments

Comments
 (0)