Merge "Unzip apk in $(genDir) instead of inside source tree"

This commit is contained in:
Spandan Das
2021-06-21 21:07:24 +00:00
committed by Gerrit Code Review

View File

@@ -30,8 +30,8 @@ genrule {
name: "LargeResourcesUncompressed", name: "LargeResourcesUncompressed",
srcs: [":LargeResourcesCompressed"], srcs: [":LargeResourcesCompressed"],
out: ["LargeResourcesUncompressed.apk"], out: ["LargeResourcesUncompressed.apk"],
cmd: "cp $(in) $(out) && unzip -o $(out) resources.arsc" cmd: "cp $(in) $(out) && unzip -o $(out) resources.arsc -d $(genDir)" +
+ " && zip $(out) resources.arsc" " && zip -j $(out) $(genDir)/resources.arsc",
} }
java_library { java_library {