From 912bd25af7eac86511ce2b50168dbc6034a3b21b Mon Sep 17 00:00:00 2001 From: Der_Googler <54764558+DerGoogler@users.noreply.github.com> Date: Thu, 27 Jun 2024 15:04:33 +0200 Subject: [PATCH] some improvements --- Makefile | 3 +-- build-module.sh | 7 ++++--- module/system/{ => usr/share/mmrl}/bin/placeholder | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename module/system/{ => usr/share/mmrl}/bin/placeholder (100%) diff --git a/Makefile b/Makefile index 8096064..5f5918c 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,8 @@ build: cross build --target aarch64-linux-android --release - + install: build adb push target/aarch64-linux-android/release/mmrl /data/mkuser/usr/bin -# rustup target add aarch64-linux-android module: build bash build-module.sh diff --git a/build-module.sh b/build-module.sh index bba3e80..6e220b2 100644 --- a/build-module.sh +++ b/build-module.sh @@ -50,7 +50,7 @@ cat <system/usr/share/mmrl/config/mmrl/info.json EOF cp ../CHANGELOG.md . -cp ../target/aarch64-linux-android/release/mmrl system/bin/mmrl +cp ../target/aarch64-linux-android/release/mmrl system/usr/share/mmrl/bin/mmrl FILE_NAME="$NAME-$VER-module-aarch64.zip" @@ -58,8 +58,9 @@ FILE_NAME="$NAME-$VER-module-aarch64.zip" dos2unix \ META-INF/com/google/android/update-binary \ META-INF/com/google/android/updater-script \ + system/bin/mmrl \ *.sh -zip -r "../target/$FILE_NAME" ./* -x "system/bin/placeholder" +zip -r "../target/$FILE_NAME" ./* -x "system/usr/share/mmrl/bin/placeholder" -rm -rf "system/bin/mmrl" "CHANGELOG.md" +rm -rf "system/usr/share/mmrl/bin/mmrl" "CHANGELOG.md" diff --git a/module/system/bin/placeholder b/module/system/usr/share/mmrl/bin/placeholder similarity index 100% rename from module/system/bin/placeholder rename to module/system/usr/share/mmrl/bin/placeholder