From 9faacc723f8b1feaed8fa019af3897f8f46b0c2f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 20 Aug 2018 23:24:18 +0200 Subject: [PATCH] apksigner&termux-am: Avoid using gradle daemon By default gradle spawns a daemon which keeps on running in the background long after the package has been built and taking up precious ram. Avoid this. --- packages/apksigner/build.sh | 2 +- packages/termux-am/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/apksigner/build.sh b/packages/apksigner/build.sh index e7bb7da27..699798f5c 100644 --- a/packages/apksigner/build.sh +++ b/packages/apksigner/build.sh @@ -12,7 +12,7 @@ termux_step_make () { cp apksigner.1 $TERMUX_PREFIX/share/man/man1/ - ./gradlew + GRADLE_OPTS=" -Dorg.gradle.daemon=false" ./gradlew $TERMUX_D8 \ --classpath $ANDROID_HOME/platforms/android-$TERMUX_PKG_API_LEVEL/android.jar \ --release \ diff --git a/packages/termux-am/build.sh b/packages/termux-am/build.sh index 215aa5fc5..36a43d23b 100644 --- a/packages/termux-am/build.sh +++ b/packages/termux-am/build.sh @@ -10,7 +10,7 @@ TERMUX_PKG_CONFLICTS="termux-tools (<< 0.51)" termux_step_make () { export ANDROID_HOME - ./gradlew :app:assembleRelease + GRADLE_OPTS=" -Dorg.gradle.daemon=false" ./gradlew :app:assembleRelease } termux_step_make_install () {