Skip to content

Commit

Permalink
Remove preview templates for macOS versions no longer supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
shysaur committed Nov 19, 2022
1 parent 775f43c commit 8154c48
Showing 5 changed files with 1 addition and 336 deletions.
10 changes: 1 addition & 9 deletions MicrosoftBinaries/GeneratePreviewForURL.m
Original file line number Diff line number Diff line change
@@ -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];
105 changes: 0 additions & 105 deletions MicrosoftBinaries/PreviewTemplateElCapitan.html

This file was deleted.

105 changes: 0 additions & 105 deletions MicrosoftBinaries/PreviewTemplateLion.html

This file was deleted.

105 changes: 0 additions & 105 deletions MicrosoftBinaries/PreviewTemplateYosemite.html

This file was deleted.

12 changes: 0 additions & 12 deletions MicrosoftBinaries/QLWindowsApps.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -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 = "<group>"; };
011116911DDFB5F2008BF5CA /* PreviewTemplateLion.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = PreviewTemplateLion.html; sourceTree = "<group>"; };
011116921DDFB5F2008BF5CA /* PreviewTemplateYosemite.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = PreviewTemplateYosemite.html; sourceTree = "<group>"; };
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 = "<group>"; };
012A7D37171C8F880019A298 /* en */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/VersioninfoNames.strings; sourceTree = "<group>"; };
@@ -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;
};

0 comments on commit 8154c48

Please sign in to comment.