mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Update ArchiveItem.swift
When the SUFeedURL extention is "php", replace filename.php with appcast.xml in generate_appcast
This commit is contained in:
1 parent
795ce1278d
commit
28ff3069ff
1 file changed
+4
@@ -94,6 +94,10 @@ class ArchiveItem: CustomStringConvertible {
|
||||
var feedURL:URL? = nil;
|
||||
if let feedURLStr = infoPlist["SUFeedURL"] as? String {
|
||||
feedURL = URL(string: feedURLStr);
|
||||
if feedURL?.pathExtension == "php" {
|
||||
let feedFileAndExtention = feedURL?.lastPathComponent + "." + feedURL?.pathExtension as? String
|
||||
feedURL = URL(string: feedURL?.absoluteString.replacingOccurrences(of: feedFileAndExtention, with: "appcast.xml"))
|
||||
}
|
||||
}
|
||||
|
||||
try self.init(version: version,
|
||||
|
||||
Reference in new issue
Block a user