fix: bust third-party module cache

This commit is contained in:
xweiba
2026-08-10 13:39:58 +08:00
parent 41dfe7a8ed
commit 9510d9aa42
3 changed files with 19 additions and 7 deletions
+3 -1
View File
@@ -254,6 +254,8 @@ final class ThirdPartyProxyManager: ObservableObject {
}
enum ThirdPartyProxyClient: String, CaseIterable, Identifiable {
static let moduleSubscriptionVersion = "1.0.0"
case shadowrocket
case surge
case quantumultX
@@ -309,7 +311,7 @@ enum ThirdPartyProxyClient: String, CaseIterable, Identifiable {
case .shadowrocket:
url = "\(prefix)\(directory)/wloc.module"
}
return URL(string: url)!
return URL(string: "\(url)?v=\(Self.moduleSubscriptionVersion)")!
}
var launchURL: URL? {