mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-22 04:30:47 +00:00
Update and remove 10.9 and 10.10 references
This commit is contained in:
1 parent
b2127da6f5
commit
57b39fc1e5
7 files changed
+8
-41
No files matched your search
@@ -28,6 +28,7 @@
|
||||
* System profiler privacy and transparency (#1690) (Martin Pilkington)
|
||||
* Support getting app icon from asset catalog (#1694) (Charles Srstka)
|
||||
* Don't hide update alert window now on deactivation (#1804) (Zorg)
|
||||
* Raise minimum system version to 10.11 (Zorg)
|
||||
* Special thanks to developers using early builds of this release in production and contributors for keeping this running (Kornel, Jonas Zaugg, Gwynne Raskind, Jordan Rose, Tony Arnold, Bryan Jones, Christian Tietze, Jakob Egger, and many more)
|
||||
|
||||
Please visit [Sparkle's website](http://sparkle-project.org) for more information on documentation and migration.
|
||||
@@ -711,4 +712,4 @@ Important security fixes:
|
||||
|
||||
# 0.1
|
||||
|
||||
* Initial Release
|
||||
* Initial Release
|
||||
@@ -6,5 +6,4 @@ ASSETCATALOG_COMPILER_APPICON_NAME = $(SPARKLE_ICON_NAME)
|
||||
LD_RUNPATH_SEARCH_PATHS = @executable_path/../Frameworks
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.SparkleTestApp
|
||||
CODE_SIGN_ENTITLEMENTS = TestApplication/Sparkle-Test-App.entitlements
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.10
|
||||
ENABLE_HARDENED_RUNTIME = NO
|
||||
+1
-1
@@ -33,7 +33,7 @@ Please visit [Sparkle's website](http://sparkle-project.org) for up to date docu
|
||||
|
||||
## Requirements
|
||||
|
||||
* Runtime: macOS 10.9 or greater
|
||||
* Runtime: macOS 10.11 or greater
|
||||
* Build: Latest major Xcode (stable or beta, whichever is latest) and one major version less; at least Xcode 12 if using Swift Package Manager.
|
||||
* HTTPS server for serving updates (see [App Transport Security](http://sparkle-project.org/documentation/app-transport-security/))
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</sparkle:releaseNotesLink>
|
||||
<pubDate>Wed, 09 Jan 2006 19:20:11 +0000</pubDate>
|
||||
<enclosure url="http://you.com/app/Your%20Great%20App%202.0.zip" sparkle:version="2.0" length="1623481" type="application/octet-stream" sparkle:edSignature="WVyVJpOx+a5+vNWJVY79TRjFKveNk+VhGJf2iti4CZtJsJewIUGvh/1AKKEAFbH1qUwx+vro1ECuzOsMmumoBA==" />
|
||||
<sparkle:minimumSystemVersion>10.9</sparkle:minimumSystemVersion>
|
||||
<sparkle:minimumSystemVersion>10.11</sparkle:minimumSystemVersion>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
@@ -21,7 +21,7 @@
|
||||
</sparkle:releaseNotesLink>
|
||||
<pubDate>Wed, 01 Jan 2006 12:20:11 +0000</pubDate>
|
||||
<enclosure url="http://you.com/app/Your%20Great%20App%201.5.zip" sparkle:version="1.5" length="1472893" type="application/octet-stream" sparkle:edSignature="pNFd7KbcQSu+Mq7UYrbQXTPq82luht2ACXm/r2utp1u/Uv/5hWqctdT2jwQgMejW7DRoeV/hVr6J4VdZYdwWDw==" />
|
||||
<sparkle:minimumSystemVersion>10.9</sparkle:minimumSystemVersion>
|
||||
<sparkle:minimumSystemVersion>10.11</sparkle:minimumSystemVersion>
|
||||
</item>
|
||||
|
||||
<!-- Now here's an example of a version with a weird internal version number (like an SVN revision) but a human-readable external one. -->
|
||||
@@ -32,7 +32,7 @@
|
||||
</sparkle:releaseNotesLink>
|
||||
<pubDate>Wed, 25 Dec 2005 12:20:11 +0000</pubDate>
|
||||
<enclosure url="http://you.com/app/Your%20Great%20App%201.4.zip" sparkle:version="241" sparkle:shortVersionString="1.4" sparkle:edSignature="Ody3D/ybSMH4T+P/oNj3LN4F0SA8RJGLEr1TI4UemrBAiJ9aEcDnYV3u58P75AbcFjI13jPYmHDUHXMSTFQbDw==" length="1472349" type="application/octet-stream" />
|
||||
<sparkle:minimumSystemVersion>10.9</sparkle:minimumSystemVersion>
|
||||
<sparkle:minimumSystemVersion>10.11</sparkle:minimumSystemVersion>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
||||
+1
-1
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
|
||||
'Andy Matuschak' => 'andy@andymatuschak.org',
|
||||
}
|
||||
|
||||
s.platform = :osx, '10.9'
|
||||
s.platform = :osx, '10.11'
|
||||
s.source = { :http => "https://github.com/sparkle-project/Sparkle/releases/download/#{s.version}/Sparkle-#{s.version}.tar.bz2" }
|
||||
s.source_files = 'Sparkle.framework/Versions/A/Headers/*.h'
|
||||
|
||||
|
||||
Vendored
-33
@@ -21,12 +21,8 @@
|
||||
|
||||
@interface SUWKWebView () <WKNavigationDelegate>
|
||||
|
||||
// Remove when minimum system requirement is 10.10+
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
@property (nonatomic, readonly) WKWebView *webView;
|
||||
@property (nonatomic) WKNavigation *currentNavigation;
|
||||
#pragma clang diagnostic pop
|
||||
@property (nonatomic) void (^completionHandler)(NSError * _Nullable);
|
||||
@property (nonatomic) BOOL drawsWebViewBackground;
|
||||
|
||||
@@ -39,9 +35,6 @@
|
||||
@synthesize completionHandler = _completionHandler;
|
||||
@synthesize drawsWebViewBackground = _drawsWebViewBackground;
|
||||
|
||||
// Remove when minimum system requirement is 10.10+
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
{
|
||||
// We must remove newlines when inserting the style source in this interpolated string below
|
||||
@@ -59,11 +52,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
|
||||
return [[WKUserScript alloc] initWithSource:scriptSource injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES];
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
// Remove when minimum system requirement is 10.10+
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
- (instancetype)initWithColorStyleSheetLocation:(NSURL *)colorStyleSheetLocation fontFamily:(NSString *)fontFamily fontPointSize:(int)fontPointSize javaScriptEnabled:(BOOL)javaScriptEnabled
|
||||
{
|
||||
self = [super init];
|
||||
@@ -108,7 +97,6 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
}
|
||||
return self;
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
- (NSView *)view
|
||||
{
|
||||
@@ -126,13 +114,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
{
|
||||
self.completionHandler = [completionHandler copy];
|
||||
|
||||
// Remove when minimum system requirement is 10.11+
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
// Note: This API requires macOS 10.11
|
||||
// Rather than figuring out a bad workaround for 10.10, it is simpler to just require 10.11 for this class
|
||||
self.currentNavigation = [self.webView loadData:data MIMEType:MIMEType characterEncodingName:textEncodingName baseURL:baseURL];
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
|
||||
- (void)setDrawsBackground:(BOOL)drawsBackground
|
||||
@@ -161,11 +143,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
[self.webView stopLoading];
|
||||
}
|
||||
|
||||
// Remove when minimum system requirement is 10.10+
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
if (navigation == self.currentNavigation) {
|
||||
if (self.completionHandler != nil) {
|
||||
@@ -176,11 +154,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
}
|
||||
}
|
||||
|
||||
// Remove when minimum system requirement is 10.10+
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
- (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
if (navigation == self.currentNavigation) {
|
||||
if (self.completionHandler != nil) {
|
||||
@@ -191,11 +165,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
}
|
||||
}
|
||||
|
||||
// Remove when minimum system requirement is 10.10+
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
- (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
if (self.currentNavigation != nil) {
|
||||
if (self.completionHandler != nil) {
|
||||
@@ -207,8 +177,6 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
}
|
||||
}
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler
|
||||
{
|
||||
NSURLRequest *request = navigationAction.request;
|
||||
@@ -233,6 +201,5 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource)
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@end
|
||||
@@ -54,7 +54,7 @@ class ArchiveItem: CustomStringConvertible {
|
||||
self.version = version
|
||||
self._shortVersion = shortVersion
|
||||
self.feedURL = feedURL
|
||||
self.minimumSystemVersion = minimumSystemVersion ?? "10.9"
|
||||
self.minimumSystemVersion = minimumSystemVersion ?? "10.11"
|
||||
self.archivePath = archivePath
|
||||
self.appPath = appPath
|
||||
self.supportsDSA = supportsDSA
|
||||
|
||||
Reference in new issue
Block a user