Skip to content

Commit 8e7d0a8

Browse files
committed
- Adjusted uninstall.sh
- Changed updateJson to better alternative
1 parent 596e686 commit 8e7d0a8

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
3136
val gitCommitCount = "git rev-list HEAD --count".execute().toInt()
3237
val gitCommitHash = "git rev-parse --verify --short HEAD".execute()
3338

module/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
}
99

1010
val sdkDir: String by rootProject.extra
11+
val zygDir: File by rootProject.extra
1112
val moduleId: String by rootProject.extra
1213
val moduleName: String by rootProject.extra
1314
val 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)

module/template/module.prop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ version=${versionName}
44
versionCode=${versionCode}
55
author=mhmrdd
66
description=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

module/template/uninstall.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11

22
rm -rf /data/adb/post-fs-data.d/.nohello_cleanup.sh
3+
rm -rf /data/adb/nohello

0 commit comments

Comments
 (0)