mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c790ae0880 | ||
|
|
b7b858dbf3 | ||
|
|
8e2107a57d |
No files matched your search
@@ -9,6 +9,7 @@ SPARKLE_EMBED_DOWNLOADER_XPC_SERVICE = 1
|
|||||||
SPARKLE_EMBED_INSTALLER_STATUS_XPC_SERVICE = 0
|
SPARKLE_EMBED_INSTALLER_STATUS_XPC_SERVICE = 0
|
||||||
SPARKLE_EMBED_INSTALLER_CONNECTION_XPC_SERVICE = 0
|
SPARKLE_EMBED_INSTALLER_CONNECTION_XPC_SERVICE = 0
|
||||||
|
|
||||||
|
|
||||||
// Set to 0 to disable building legacy 1.x SUUpdater stub
|
// Set to 0 to disable building legacy 1.x SUUpdater stub
|
||||||
SPARKLE_BUILD_LEGACY_SUUPDATER = 1
|
SPARKLE_BUILD_LEGACY_SUUPDATER = 1
|
||||||
|
|
||||||
@@ -161,4 +162,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
+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