aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
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 /cmake
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 'cmake')
-rw-r--r--cmake/modules/FindSparkle.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/cmake/modules/FindSparkle.cmake b/cmake/modules/FindSparkle.cmake
new file mode 100644
index 0000000000..7da80be0ea
--- /dev/null
+++ b/cmake/modules/FindSparkle.cmake
@@ -0,0 +1,22 @@
+#
+# Find the Sparkle framework
+#
+# This defines the following:
+# SPARKLE_FOUND - True if we found Sparkle
+# SPARKLE_INCLUDE_DIR - Path to Sparkle.h
+# SPARKLE_LIBRARY - Path to Sparkle.framework
+
+include(FindPackageHandleStandardArgs)
+
+file(GLOB USR_LOCAL_HINT "/usr/local/Sparkle-[1-9]*/")
+file(GLOB HOMEBREW_HINT "/usr/local/Caskroom/sparkle/[1-9]*/")
+
+find_path(SPARKLE_INCLUDE_DIR Sparkle.h
+ HINTS ${USR_LOCAL_HINT} ${HOMEBREW_HINT}
+)
+find_library(SPARKLE_LIBRARY NAMES Sparkle
+ HINTS ${USR_LOCAL_HINT} ${HOMEBREW_HINT}
+)
+
+find_package_handle_standard_args(Sparkle DEFAULT_MSG SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)
+mark_as_advanced(SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)