Manager: remove v from download names

- now that Canaries are only commit hashes for the version string, the v is unnecessary/confusing, so the simplest solution is to just remove the v from the filename for all Manager-based downloads of Magisk and Manager
This commit is contained in:
Chris Renshaw 2020-03-28 06:00:06 -03:00 committed by John Wu
parent a9eb443072
commit d05ed0e59c

View File

@ -41,7 +41,7 @@ sealed class DownloadSubject : Parcelable {
val manager: ManagerJson = Info.remote.app
override val title: String
get() = "MagiskManager-v${manager.version}(${manager.versionCode})"
get() = "MagiskManager-${manager.version}(${manager.versionCode})"
override val url: String
get() = manager.link
@ -63,7 +63,7 @@ sealed class DownloadSubject : Parcelable {
override val configuration: Configuration
) : Magisk() {
override val url: String get() = magisk.link
override val title: String get() = "Magisk-v${magisk.version}(${magisk.versionCode})"
override val title: String get() = "Magisk-${magisk.version}(${magisk.versionCode})"
@IgnoredOnParcel
override val file by lazy {
@ -89,7 +89,7 @@ sealed class DownloadSubject : Parcelable {
@IgnoredOnParcel
override val file by lazy {
File(Config.downloadDirectory, "Magisk-v${magisk.version}(${magisk.versionCode}).zip")
File(Config.downloadDirectory, "Magisk-${magisk.version}(${magisk.versionCode}).zip")
}
}