aboutsummaryrefslogtreecommitdiffstats
path: root/ui/software_update.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2019-11-14 08:08:28 -0800
committerGerald Combs <gerald@wireshark.org>2019-11-15 18:39:04 +0000
commit02057200fd73fc70cc4a6eeece5c033c14f0c50a (patch)
tree37582235a0d91441aeae1f07a61f6d735070e609 /ui/software_update.h
parentfd4bb1e392839954c959a76af35c6eec6448add9 (diff)
macOS: Add support for automatic updates using Sparkle.
Add support for automatic updates using the Sparkle framework. Add FindSparkle.cmake and associated CMake plumbing. Add a public key and other info to Info.plist.in. Add ui/macosx/sparkle_bridge.{h,m}, which wraps the Sparkle API. Make code that's specific to WinSparkle Windows-only. Add Sparkle installation steps to the macos-setup scripts. Sparkle prints a warning if your bundle is unsigned (which is the case during development) so disable installing it by default. Updating here takes a long time. We might be able to fix that by shipping our DSYMs separately. Change-Id: I6cc6671db5657dadc514bda6bf6e1c8bbc9468a5 Reviewed-on: https://code.wireshark.org/review/35090 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/software_update.h')
-rw-r--r--ui/software_update.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/software_update.h b/ui/software_update.h
index 5ac764a832..b764c5b5b4 100644
--- a/ui/software_update.h
+++ b/ui/software_update.h
@@ -11,6 +11,14 @@
#ifndef __SOFTWARE_UPDATE_H__
#define __SOFTWARE_UPDATE_H__
+/** @file
+ * Automatic update routines.
+ *
+ * Routines that integrate with WinSparkle on Windows and Sparkle on
+ * macOS.
+ * @ingroup main_ui_group
+ */
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -33,6 +41,7 @@ extern void software_update_check(void);
*/
extern void software_update_cleanup(void);
+#ifdef _WIN32
/** Check to see if Wireshark can shut down safely (e.g. offer to save the
* current capture). Called from a separate thread.
*
@@ -46,6 +55,7 @@ extern int software_update_can_shutdown_callback(void);
* Does nothing on platforms that don't support software updates.
*/
extern void software_update_shutdown_request_callback(void);
+#endif
#ifdef __cplusplus
}