Skip to content

Commit

Permalink
package: also use system provided zip if using JDK v20
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Nov 18, 2023
1 parent 7444147 commit 7f4dc05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion android/package.v
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,9 @@ fn package_aab(opt PackageOptions) ! {
// com.android.tools.build.bundletool.model.exceptions.CommandExecutionException: File 'base.zip' does not seem to be a valid ZIP file.
// ...
// Caused by: java.util.zip.ZipException: invalid CEN header (bad signature)
if jdk_semantic_version.le(semver.build(1, 8, 0)) {
if jdk_semantic_version.le(semver.build(1, 8, 0))
|| (jdk_semantic_version.ge(semver.build(20, 0, 0))
&& jdk_semantic_version.lt(semver.build(21, 0, 0))) {
$if !windows {
if opt.verbosity > 1 {
println('Working around Java/bundletool/ZIP64 BUG...')
Expand Down

0 comments on commit 7f4dc05

Please sign in to comment.