From a975449c22edfdab8515a9188e10bd3a2d3771c3 Mon Sep 17 00:00:00 2001 From: shrihanDev Date: Sun, 4 Sep 2022 02:03:51 +0530 Subject: [PATCH] mod rvba script --- rvba/build-rvba-app.sh | 130 ++++++++++++++++++++--------------------- 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/rvba/build-rvba-app.sh b/rvba/build-rvba-app.sh index 2221b51..c104a93 100644 --- a/rvba/build-rvba-app.sh +++ b/rvba/build-rvba-app.sh @@ -65,40 +65,40 @@ if [[ -z $1 ]] || [[ $1 == aarch64 ]]; then cp ~/bootstrap-aarch64.zip app/src/main/cpp end_group - log "Patching termux-bootstrap-zip.S" y - cat <app/src/main/cpp/termux-bootstrap-zip.S -asm - .global blob - .global blob_size - .section .rodata - blob: - #if defined __i686__ - - #elif defined __x86_64__ - - #elif defined __aarch64__ - .incbin "bootstrap-aarch64.zip" - #elif defined __arm__ - - #else - # error Unsupported arch - #endif - 1: - blob_size: - .int 1b - blob -EOF - end_group - - log "Patching app/build.gradle" y - sed -i "s#include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'#include 'arm64-v8a'#g" app/build.gradle - end_group - - log "Patching terminal-emulator/build.gradle" y - sed -i "s#abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'#abiFilters 'arm64-v8a'#g" terminal-emulator/build.gradle - end_group +# log "Patching termux-bootstrap-zip.S" y +# cat <app/src/main/cpp/termux-bootstrap-zip.S +#asm +# .global blob +# .global blob_size +# .section .rodata +# blob: +# #if defined __i686__ +# +# #elif defined __x86_64__ +# +# #elif defined __aarch64__ +# .incbin "bootstrap-aarch64.zip" +# #elif defined __arm__ +# +# #else +# # error Unsupported arch +# #endif +# 1: +# blob_size: +# .int 1b - blob +#EOF +# end_group +# +# log "Patching app/build.gradle" y +# sed -i "s#include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'#include 'arm64-v8a'#g" app/build.gradle +# end_group +# +# log "Patching terminal-emulator/build.gradle" y +# sed -i "s#abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'#abiFilters 'arm64-v8a'#g" terminal-emulator/build.gradle +# end_group log "Building app for aarch64" y - ./gradlew -a --daemon --parallel --build-cache --configuration-cache assembleDebug + ./gradlew assembleDebug end_group elif [[ $1 == arm ]]; then @@ -107,41 +107,41 @@ elif [[ $1 == arm ]]; then cp ~/bootstrap-arm.zip app/src/main/cpp end_group - log "Patching termux-bootstrap-zip.S" y - cat <app/src/main/cpp/termux-bootstrap-zip.S -asm - .global blob - .global blob_size - .section .rodata - blob: - #if defined __i686__ - - #elif defined __x86_64__ - - #elif defined __aarch64__ - - #elif defined __arm__ - .incbin "bootstrap-arm.zip" - - #else - # error Unsupported arch - #endif - 1: - blob_size: - .int 1b - blob -EOF - end_group - - log "Patching app/build.gradle" y - sed -i "s#include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'#include 'armeabi-v7a'#g" app/build.gradle - end_group - - log "Patching terminal-emulator/build.gradle" y - sed -i "s#abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'#abiFilters 'armeabi-v7a'#g" terminal-emulator/build.gradle - end_group +# log "Patching termux-bootstrap-zip.S" y +# cat <app/src/main/cpp/termux-bootstrap-zip.S +#asm +# .global blob +# .global blob_size +# .section .rodata +# blob: +# #if defined __i686__ +# +# #elif defined __x86_64__ +# +# #elif defined __aarch64__ +# +# #elif defined __arm__ +# .incbin "bootstrap-arm.zip" +# +# #else +# # error Unsupported arch +# #endif +# 1: +# blob_size: +# .int 1b - blob +#EOF +# end_group +# +# log "Patching app/build.gradle" y +# sed -i "s#include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'#include 'armeabi-v7a'#g" app/build.gradle +# end_group +# +# log "Patching terminal-emulator/build.gradle" y +# sed -i "s#abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'#abiFilters 'armeabi-v7a'#g" terminal-emulator/build.gradle +# end_group log "Building app for arm" y - ./gradlew -a --daemon --parallel --build-cache --configuration-cache assembleDebug + ./gradlew assembleDebug end_group else