mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Processed requested changes
Instead of using find and replace, use the correct methods on URL to change the file name and extention.
This commit is contained in:
1 parent
28ff3069ff
commit
48fc202f36
2 files changed
+10
-2
No files matched your search
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -95,8 +95,8 @@ class ArchiveItem: CustomStringConvertible {
|
||||
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"))
|
||||
feedURL?.deletingLastPathComponent()
|
||||
feedURL?.appendingPathComponent("appcast.php")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user