mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24963abfb0 | ||
|
|
b7b858dbf3 | ||
|
|
8e2107a57d |
No files matched your search
@@ -161,4 +161,4 @@ GCC_WARN_UNUSED_PARAMETER = YES
|
|||||||
GCC_WARN_UNUSED_VARIABLE = YES
|
GCC_WARN_UNUSED_VARIABLE = YES
|
||||||
|
|
||||||
// Turn on all warnings, then disable a few which are almost impossible to avoid
|
// Turn on all warnings, then disable a few which are almost impossible to avoid
|
||||||
WARNING_CFLAGS = -Wall -Weverything -Wno-unused-macros -Wno-gnu-statement-expression -Wno-auto-import -Wno-gnu-zero-variadic-macro-arguments -Wno-format-non-iso -Wno-direct-ivar-access -Werror=undef
|
WARNING_CFLAGS = -Wall -Weverything -Wno-unused-macros -Wno-gnu-statement-expression -Wno-auto-import -Wno-gnu-zero-variadic-macro-arguments -Wno-format-non-iso -Wno-direct-ivar-access -Wno-declaration-after-statement -Werror=undef
|
||||||
Vendored
-2
@@ -62,7 +62,6 @@ static SUSigningInputStatus decode(NSString *str, NSData * __strong *outData) {
|
|||||||
NSData *data = nil;
|
NSData *data = nil;
|
||||||
_ed25519SignatureStatus = decode(maybeEd25519, &data);
|
_ed25519SignatureStatus = decode(maybeEd25519, &data);
|
||||||
if (data) {
|
if (data) {
|
||||||
assert(64 == sizeof(_ed25519_signature));
|
|
||||||
if ([data length] == sizeof(_ed25519_signature)) {
|
if ([data length] == sizeof(_ed25519_signature)) {
|
||||||
[data getBytes:_ed25519_signature length:sizeof(_ed25519_signature)];
|
[data getBytes:_ed25519_signature length:sizeof(_ed25519_signature)];
|
||||||
} else {
|
} else {
|
||||||
@@ -163,7 +162,6 @@ static BOOL decodeStatus(NSCoder *decoder, NSString *key, SUSigningInputStatus *
|
|||||||
NSData *ed = nil;
|
NSData *ed = nil;
|
||||||
_ed25519PubKeyStatus = decode(maybeEd25519, &ed);
|
_ed25519PubKeyStatus = decode(maybeEd25519, &ed);
|
||||||
if (ed) {
|
if (ed) {
|
||||||
assert(32 == sizeof(_ed25519_public_key));
|
|
||||||
if ([ed length] == sizeof(_ed25519_public_key)) {
|
if ([ed length] == sizeof(_ed25519_public_key)) {
|
||||||
[ed getBytes:_ed25519_public_key length:sizeof(_ed25519_public_key)];
|
[ed getBytes:_ed25519_public_key length:sizeof(_ed25519_public_key)];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Vendored
+6
-4
@@ -322,17 +322,19 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE
|
|||||||
|
|
||||||
BOOL javaScriptEnabled = [_host boolForInfoDictionaryKey:SUEnableJavaScriptKey];
|
BOOL javaScriptEnabled = [_host boolForInfoDictionaryKey:SUEnableJavaScriptKey];
|
||||||
|
|
||||||
|
#if DOWNLOADER_XPC_SERVICE_EMBEDDED
|
||||||
// WKWebView has a bug where it won't work in loading local HTML content in sandboxed apps that do not have an outgoing network entitlement
|
// WKWebView has a bug where it won't work in loading local HTML content in sandboxed apps that do not have an outgoing network entitlement
|
||||||
// FB6993802: https://twitter.com/sindresorhus/status/1160577243929878528 | https://github.com/feedback-assistant/reports/issues/1
|
// FB6993802: https://twitter.com/sindresorhus/status/1160577243929878528 | https://github.com/feedback-assistant/reports/issues/1
|
||||||
// If the developer is using the downloader XPC service, they are very most likely are a) sandboxed b) do not use outgoing network entitlement.
|
// If the developer is using the downloader XPC service, they are very most likely are a) sandboxed b) do not use outgoing network entitlement.
|
||||||
// In this case, fall back to legacy WebKit view.
|
// In this case, fall back to legacy WebKit view.
|
||||||
// (In theory it is possible for a non-sandboxed app or sandboxed app with outgoing network entitlement to use the XPC service, it's just pretty unlikely. And falling back to a legacy web view would not be too harmful in those cases).
|
// (In theory it is possible for a non-sandboxed app or sandboxed app with outgoing network entitlement to use the XPC service, it's just pretty unlikely. And falling back to a legacy web view would not be too harmful in those cases).
|
||||||
BOOL useWKWebView = !SPUXPCServiceIsEnabled(SUEnableDownloaderServiceKey);
|
BOOL useWKWebView = !SPUXPCServiceIsEnabled(SUEnableDownloaderServiceKey);
|
||||||
|
if (!useWKWebView) {
|
||||||
if (useWKWebView) {
|
|
||||||
_releaseNotesView = [[SUWKWebView alloc] initWithColorStyleSheetLocation:colorStyleURL fontFamily:defaultFontFamily fontPointSize:defaultFontSize javaScriptEnabled:javaScriptEnabled];
|
|
||||||
} else {
|
|
||||||
_releaseNotesView = [[SULegacyWebView alloc] initWithColorStyleSheetLocation:colorStyleURL fontFamily:defaultFontFamily fontPointSize:defaultFontSize javaScriptEnabled:javaScriptEnabled];
|
_releaseNotesView = [[SULegacyWebView alloc] initWithColorStyleSheetLocation:colorStyleURL fontFamily:defaultFontFamily fontPointSize:defaultFontSize javaScriptEnabled:javaScriptEnabled];
|
||||||
|
} else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
_releaseNotesView = [[SUWKWebView alloc] initWithColorStyleSheetLocation:colorStyleURL fontFamily:defaultFontFamily fontPointSize:defaultFontSize javaScriptEnabled:javaScriptEnabled];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user