Browse Source

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.
android-5
Fredrik Fornwall 6 years ago
parent
commit
6bc3ae0c3d
  1. 2
      packages/apksigner/build.sh
  2. 2
      packages/termux-am/build.sh

2
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 \

2
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 () {

Loading…
Cancel
Save