Skip to content

Commit 7d5f899

Browse files
committed
Add adb push helper
1 parent 1228f3d commit 7d5f899

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

push.bat

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bash push.sh
2+
PAUSE

push.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env sh
2+
# Push and Install Zip
3+
# Copyright 2022, VR25
4+
# License: GPLv3+
5+
#
6+
# usage: $0 [adb device]
7+
8+
id=$(sed -n "s/^id=//p" module.prop)
9+
version="$(sed -n 1p changelog.md | sed 's/[*()]//g')"
10+
versionCode=${version#* }
11+
version=${version% *}
12+
zip=${id}_${version}_$versionCode
13+
zip=$(echo _builds/$zip/$zip*zip)
14+
dest=/sdcard/Download/${zip##*/}
15+
16+
adb $([ -z "${1-}" ] || echo "-s $1") push $zip $dest \
17+
&& adb $([ -z "${1-}" ] || echo "-s $1") shell su -c magisk --install-module $dest || :

0 commit comments

Comments
 (0)