Skip to content

Commit

Permalink
v0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Jun 22, 2024
1 parent ee96540 commit 9acac38
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "mmrl"
description = "MMRL comes now as command line interface, with multi module install support!"
version = "0.3.3"
version = "0.3.4"
edition = "2021"
author = "Der_Googler"

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ install: build
# rustup target add aarch64-linux-android

module: build
bash build-module.sh

nb-module:
bash build-module.sh
21 changes: 15 additions & 6 deletions build-module.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
#!/bin/bash

# run checks
if ! command -v dos2unix >/dev/null; then
echo "Please install dos2unix (sudo apt-get install dos2unix)"
exit 1
fi

# Go to work dir
cd module
cd module

get_prop() { cat ./../Cargo.toml | grep -Po "(?<=^$1 = \")[^\"]*(?=\".*)"; }

NAME=$(get_prop name)
VER=$(get_prop version)
AUT=$(get_prop author)
VER_CODE="${VER//./}"
BUILD_DATE=`date "+%Y-%m-%d"`
BUILD_DATE=$(date "+%Y-%m-%d")
RUST_VER=$(rustc --version | grep -oP '\d+\.\d+\.\d+')

# generate module.prop
cat << EOF >module.prop
cat <<EOF >module.prop
id=$NAME
name=MMRL CLI
version=$VER
Expand All @@ -24,7 +30,7 @@ updateJson=https://raw.githubusercontent.com/DerGoogler/MMRL-CLI/master/module/u
EOF

# generate update.json
cat << EOF >update.json
cat <<EOF >update.json
{
"version": "$VER",
"versionCode": "$VER_CODE",
Expand All @@ -33,7 +39,7 @@ cat << EOF >update.json
}
EOF

cat << EOF >system/usr/share/mmrl/mmrl/info.json
cat <<EOF >system/usr/share/mmrl/config/mmrl/info.json
{
"version": "$VER",
"versionCode": "$VER_CODE",
Expand All @@ -49,7 +55,10 @@ cp ../target/aarch64-linux-android/release/mmrl system/bin/mmrl
FILE_NAME="$NAME-$VER-module-aarch64.zip"

# convert files before zipping
dos2unix *.sh
dos2unix \
META-INF/com/google/android/update-binary \
META-INF/com/google/android/updater-script \
*.sh

zip -r "../target/$FILE_NAME" ./* -x "system/bin/placeholder"

Expand Down
17 changes: 17 additions & 0 deletions module/common/repo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"support": "https://github.com/DerGoogler/MMRL-CLI/issues",
"donate": "https://github.com/sponsors/DerGoogler",
"cover": "https://raw.githubusercontent.com/DerGoogler/MMRL-CLI/master/assets/CLI-Banner.png",
"screenshots": [
"https://raw.githubusercontent.com/DerGoogler/MMRL-CLI/master/assets/store_ready/1.png",
"https://raw.githubusercontent.com/DerGoogler/MMRL-CLI/master/assets/store_ready/2.png",
"https://raw.githubusercontent.com/DerGoogler/MMRL-CLI/master/assets/store_ready/3.png",
"https://raw.githubusercontent.com/DerGoogler/MMRL-CLI/master/assets/store_ready/4.png"
],
"categories": [
"Tools",
"System",
"Configurable"
],
"readme": "https://raw.githubusercontent.com/DerGoogler/MMRL-CLI/master/README.md"
}
6 changes: 3 additions & 3 deletions module/module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=mmrl
name=MMRL CLI
version=0.3.3
versionCode=033
version=0.3.4
versionCode=034
author=Der_Googler
description=MMRL Command Line Interface is a free tool to install Magisk/KernelSU modules. Build on 2024-05-25 with Rust 1.78.0.
description=MMRL Command Line Interface is a free tool to install Magisk/KernelSU modules. Build on 2024-06-22 with Rust 1.78.0.
updateJson=https://raw.githubusercontent.com/DerGoogler/MMRL-CLI/master/module/update.json
6 changes: 3 additions & 3 deletions module/system/usr/share/mmrl/config/mmrl/info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "0.3.3",
"versionCode": "033",
"version": "0.3.4",
"versionCode": "034",
"author": "Der_Googler",
"rustVersion": "1.78.0",
"buildDate": "2024-05-25"
"buildDate": "2024-06-22"
}
6 changes: 3 additions & 3 deletions module/update.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "0.3.3",
"versionCode": "033",
"zipUrl": "https://github.com/DerGoogler/MMRL-CLI/releases/download/v0.3.3/mmrl-0.3.3-module-aarch64.zip",
"version": "0.3.4",
"versionCode": "034",
"zipUrl": "https://github.com/DerGoogler/MMRL-CLI/releases/download/v0.3.4/mmrl-0.3.4-module-aarch64.zip",
"changelog": "https://raw.githubusercontent.com/DerGoogler/MMRL-CLI/master/CHANGELOG.md"
}

0 comments on commit 9acac38

Please sign in to comment.