diff --git a/MicrosoftBinaries/GeneratePreviewForURL.m b/MicrosoftBinaries/GeneratePreviewForURL.m index 306238b..51f2707 100644 --- a/MicrosoftBinaries/GeneratePreviewForURL.m +++ b/MicrosoftBinaries/GeneratePreviewForURL.m @@ -60,15 +60,7 @@ csspath = [mbundle pathForResource:name ofType:@"html"]; if (csspath == nil) { - if (floor(NSAppKitVersionNumber) < NSAppKitVersionNumber10_10) { - csspath = [mbundle pathForResource:@"PreviewTemplateLion" ofType:@"html"]; - } else if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_10_Max) { - csspath = [mbundle pathForResource:@"PreviewTemplateYosemite" ofType:@"html"]; - } else if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_13_4) { - csspath = [mbundle pathForResource:@"PreviewTemplateElCapitan" ofType:@"html"]; - } else { - csspath = [mbundle pathForResource:@"PreviewTemplateMojave" ofType:@"html"]; - } + csspath = [mbundle pathForResource:@"PreviewTemplateMojave" ofType:@"html"]; } return [NSString stringWithContentsOfFile:csspath encoding:NSUTF8StringEncoding error:nil]; diff --git a/MicrosoftBinaries/PreviewTemplateElCapitan.html b/MicrosoftBinaries/PreviewTemplateElCapitan.html deleted file mode 100644 index c35bddb..0000000 --- a/MicrosoftBinaries/PreviewTemplateElCapitan.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - -
-
-
-
-

-
-
-
-
-
-
-
-
- -
-
- - diff --git a/MicrosoftBinaries/PreviewTemplateLion.html b/MicrosoftBinaries/PreviewTemplateLion.html deleted file mode 100644 index a76755c..0000000 --- a/MicrosoftBinaries/PreviewTemplateLion.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - -
-
- -
-
-
-
-
-
-

-
-
-
-
-
-
- - diff --git a/MicrosoftBinaries/PreviewTemplateYosemite.html b/MicrosoftBinaries/PreviewTemplateYosemite.html deleted file mode 100644 index 2a4892e..0000000 --- a/MicrosoftBinaries/PreviewTemplateYosemite.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - -
-
-
-
-

-
-
-
-
-
-
-
-
- -
-
- - diff --git a/MicrosoftBinaries/QLWindowsApps.xcodeproj/project.pbxproj b/MicrosoftBinaries/QLWindowsApps.xcodeproj/project.pbxproj index 5abf048..22c20b3 100644 --- a/MicrosoftBinaries/QLWindowsApps.xcodeproj/project.pbxproj +++ b/MicrosoftBinaries/QLWindowsApps.xcodeproj/project.pbxproj @@ -21,9 +21,6 @@ /* End PBXAggregateTarget section */ /* Begin PBXBuildFile section */ - 011116931DDFB5F2008BF5CA /* PreviewTemplateElCapitan.html in Resources */ = {isa = PBXBuildFile; fileRef = 011116901DDFB5F2008BF5CA /* PreviewTemplateElCapitan.html */; }; - 011116941DDFB5F2008BF5CA /* PreviewTemplateLion.html in Resources */ = {isa = PBXBuildFile; fileRef = 011116911DDFB5F2008BF5CA /* PreviewTemplateLion.html */; }; - 011116951DDFB5F2008BF5CA /* PreviewTemplateYosemite.html in Resources */ = {isa = PBXBuildFile; fileRef = 011116921DDFB5F2008BF5CA /* PreviewTemplateYosemite.html */; }; 011D85CA1643EBAE008A2601 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 011D85C91643EBAE008A2601 /* Cocoa.framework */; }; 011D85F11643F5B7008A2601 /* MicrosoftBinaries_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = 011D85F01643F5B7008A2601 /* MicrosoftBinaries_Prefix.pch */; }; 012A7D36171C8F880019A298 /* VersioninfoNames.strings in Resources */ = {isa = PBXBuildFile; fileRef = 012A7D38171C8F880019A298 /* VersioninfoNames.strings */; }; @@ -52,9 +49,6 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 011116901DDFB5F2008BF5CA /* PreviewTemplateElCapitan.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = PreviewTemplateElCapitan.html; sourceTree = ""; }; - 011116911DDFB5F2008BF5CA /* PreviewTemplateLion.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = PreviewTemplateLion.html; sourceTree = ""; }; - 011116921DDFB5F2008BF5CA /* PreviewTemplateYosemite.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = PreviewTemplateYosemite.html; sourceTree = ""; }; 011D85C91643EBAE008A2601 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; 011D85F01643F5B7008A2601 /* MicrosoftBinaries_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MicrosoftBinaries_Prefix.pch; sourceTree = ""; }; 012A7D37171C8F880019A298 /* en */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/VersioninfoNames.strings; sourceTree = ""; }; @@ -115,9 +109,6 @@ 089C167CFE841241C02AAC07 /* Resources */ = { isa = PBXGroup; children = ( - 011116901DDFB5F2008BF5CA /* PreviewTemplateElCapitan.html */, - 011116911DDFB5F2008BF5CA /* PreviewTemplateLion.html */, - 011116921DDFB5F2008BF5CA /* PreviewTemplateYosemite.html */, 016DC86121F7542E00E5C2CE /* PreviewTemplateMojave.html */, 8D576317048677EA00EA77CD /* Info.plist */, 012A7D38171C8F880019A298 /* VersioninfoNames.strings */, @@ -218,10 +209,7 @@ buildActionMask = 2147483647; files = ( 012A7D36171C8F880019A298 /* VersioninfoNames.strings in Resources */, - 011116951DDFB5F2008BF5CA /* PreviewTemplateYosemite.html in Resources */, 016DC86221F7542E00E5C2CE /* PreviewTemplateMojave.html in Resources */, - 011116931DDFB5F2008BF5CA /* PreviewTemplateElCapitan.html in Resources */, - 011116941DDFB5F2008BF5CA /* PreviewTemplateLion.html in Resources */, ); runOnlyForDeploymentPostprocessing = 0; };