Browse Source

【综合】DMG版本XML配置调整

niehaoyu 10 months ago
parent
commit
8ae230b0ea
1 changed files with 4 additions and 2 deletions
  1. 4 2
      PDF Office/PDF Master/AppDelegate.swift

+ 4 - 2
PDF Office/PDF Master/AppDelegate.swift

@@ -880,11 +880,13 @@ extension AppDelegate : SUUpdaterDelegate {
     }
     
     func feedURLString(for updater: SUUpdater) -> String? {
+        var hostURL = "https://www.pdfreaderpro.com/downloads/"
 #if DEBUG
-        return "http://test-pdf-pro.kdan.cn:3021/downloads/pdfmasterprocast.xml"
+        hostURL = "http://test-pdf-pro.kdan.cn:3021/downloads/"
 #else
-        return "https://www.pdfreaderpro.com/downloads/pdfmasterprocast.xml"
+        hostURL = "https://www.pdfreaderpro.com/downloads/"
 #endif
+        return hostURL+NSLocalizedString("pdfreaderprocast.xml", comment: "")
     }
     
     func updaterShouldPromptForPermissionToCheck(forUpdates updater: SUUpdater) -> Bool {