File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ val sdkDir: String by extra(
2828 ? : " "
2929)
3030
31+ val zygDir: File by extra(
32+ localProperties.getProperty(" zyg.dir" )?.let { File (it) }
33+ ? : rootProject.layout.projectDirectory.dir(" .github/updates" ).asFile
34+ )
35+
3136val gitCommitCount = " git rev-list HEAD --count" .execute().toInt()
3237val gitCommitHash = " git rev-parse --verify --short HEAD" .execute()
3338
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ plugins {
88}
99
1010val sdkDir: String by rootProject.extra
11+ val zygDir: File by rootProject.extra
1112val moduleId: String by rootProject.extra
1213val moduleName: String by rootProject.extra
1314val verCode: Int by rootProject.extra
@@ -125,7 +126,7 @@ androidComponents.onVariants { variant ->
125126 }
126127
127128 zipTask.doLast {
128- val updatesDir = rootProject.layout.projectDirectory.dir( " .github/updates " ).asFile
129+ val updatesDir = zygDir
129130 updatesDir.mkdirs()
130131
131132 val jsonFile = File (updatesDir, " nohello.json" )
@@ -137,7 +138,7 @@ androidComponents.onVariants { variant ->
137138 "versionCode": $verCode ,
138139 "version": "$verName ",
139140 "zipUrl": "https://github.com/MhmRdd/nohello/releases/download/$verName /$zipFileName ",
140- "changelog": "https://github.com/MhmRdd/nohello/raw/master/.github/updates /nohello_changelog.md"
141+ "changelog": "https://mhmrdd. github.io/01000004/zygisk /nohello_changelog.md"
141142 }
142143 """ .trimIndent()
143144 jsonFile.writeText(jsonContent)
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ version=${versionName}
44versionCode=${versionCode}
55author=mhmrdd
66description=A Zygisk module to hide root.
7- updateJson=https://github.com/MhmRdd/nohello/raw/master/.github/updates /nohello.json
7+ updateJson=https://mhmrdd. github.io/01000004/zygisk /nohello.json
Original file line number Diff line number Diff line change 11
22rm -rf /data/adb/post-fs-data.d/.nohello_cleanup.sh
3+ rm -rf /data/adb/nohello
You can’t perform that action at this time.
0 commit comments