From 8477d996dbc768d5df6aefd89fb61910188434cf Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Mon, 21 Aug 2023 06:26:46 -0400 Subject: [PATCH] fix: bump heap size to 1g max (#3286) --- scripts/linux/apktool | 2 +- scripts/osx/apktool | 2 +- scripts/windows/apktool.bat | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/linux/apktool b/scripts/linux/apktool index efbe419f..5ef7d329 100755 --- a/scripts/linux/apktool +++ b/scripts/linux/apktool @@ -53,7 +53,7 @@ javaOpts="" # line and adjust the value accordingly. Use "java -X" for a list of options # you can pass here. # -javaOpts="-Xmx512M -Dfile.encoding=utf-8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true" +javaOpts="-Xmx1024M -Dfile.encoding=utf-8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true" # Alternatively, this will extract any parameter "-Jxxx" from the command line # and pass them to Java (instead of to dx). This makes it possible for you to diff --git a/scripts/osx/apktool b/scripts/osx/apktool index 0d226244..ce14198e 100755 --- a/scripts/osx/apktool +++ b/scripts/osx/apktool @@ -53,7 +53,7 @@ javaOpts="" # line and adjust the value accordingly. Use "java -X" for a list of options # you can pass here. # -javaOpts="-Xmx512M -Dfile.encoding=utf-8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true" +javaOpts="-Xmx1024M -Dfile.encoding=utf-8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true" # Alternatively, this will extract any parameter "-Jxxx" from the command line # and pass them to Java (instead of to dx). This makes it possible for you to diff --git a/scripts/windows/apktool.bat b/scripts/windows/apktool.bat index 06cbd383..08adf635 100755 --- a/scripts/windows/apktool.bat +++ b/scripts/windows/apktool.bat @@ -36,7 +36,7 @@ if "%ATTR:~0,1%"=="-" if "%~x1"==".apk" ( ) :load -"%java_exe%" -jar -Duser.language=en -Dfile.encoding=UTF8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true "%~dp0%BASENAME%%max%.jar" %fastCommand% %* +"%java_exe%" -jar -Xmx1024M -Duser.language=en -Dfile.encoding=UTF8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true "%~dp0%BASENAME%%max%.jar" %fastCommand% %* rem Pause when ran non interactively for /f "tokens=2" %%# in ("%cmdcmdline%") do if /i "%%#" equ "/c" pause