Skip to content

Commit ce7c6c6

Browse files
author
Mihail Slavchev
committed
fix URL on *nix based systems
1 parent 05437ff commit ce7c6c6

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
@@ -314,8 +314,9 @@ task buildMetadata (type: JavaExec) {
314314
zip_properties.put("encoding", "UTF-8")
315315

316316
def currentApk = project.ext.currentApkFile
317+
def urlPrefix = "jar:file:" + (isWinOs ? "/" : "")
317318

318-
def zip_disk = URI.create("jar:file:/" + currentApk);
319+
def zip_disk = URI.create(urlPrefix + currentApk);
319320

320321
def zipfs
321322
def pathInZipfile

0 commit comments

Comments
 (0)