Skip to content

Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic

update checker with pkg macos

AnoF-Cyber5cb9e98451f2
diff --git a/MacOS/ProxyBridge/ProxyBridge/UpdateService.swift b/MacOS/ProxyBridge/ProxyBridge/UpdateService.swift
index 529937b..ac828f3 100644
--- a/MacOS/ProxyBridge/ProxyBridge/UpdateService.swift
+++ b/MacOS/ProxyBridge/ProxyBridge/UpdateService.swift
@@ -63,10 +63,13 @@ class UpdateService {
asset.name.lowercased().contains("installer"))
}
+ // a macOS pkg installer in the release is valid update
+ let isUpdateAvailable = isNewerVersion(latestVersion, currentVersion) && pkgAsset != nil
+
return VersionInfo(
currentVersion: currentVersion,
latestVersion: release.tagName,
- isUpdateAvailable: isNewerVersion(latestVersion, currentVersion),
+ isUpdateAvailable: isUpdateAvailable,
downloadUrl: pkgAsset?.browserDownloadUrl,
fileName: pkgAsset?.name,
error: nil