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.
This commit is contained in:
parent
80c5d83cb5
commit
9faacc723f
@ -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 \
|
||||
|
@ -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…
Reference in New Issue
Block a user