Skip to content

Commit

Permalink
some improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Jun 27, 2024
1 parent ececf87 commit 912bd25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions build-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,17 @@ cat <<EOF >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"

# convert files before zipping
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"
File renamed without changes.

0 comments on commit 912bd25

Please sign in to comment.