mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Special case for .tar.gz extension
This commit is contained in:
1 parent
662e84400a
commit
ac042821d8
1 file changed
+4
-1
@@ -120,7 +120,10 @@ class ArchiveItem: CustomStringConvertible {
|
||||
}
|
||||
|
||||
private var releaseNotesPath : URL? {
|
||||
let basename = self.archivePath.deletingPathExtension();
|
||||
var basename = self.archivePath.deletingPathExtension();
|
||||
if basename.pathExtension == "tar" { // tar.gz
|
||||
basename = basename.deletingPathExtension();
|
||||
}
|
||||
let releaseNotes = basename.appendingPathExtension("html");
|
||||
if !FileManager.default.fileExists(atPath: releaseNotes.path) {
|
||||
return nil;
|
||||
|
||||
Reference in new issue
Block a user