From 9c6c4a264d4b01a11f7f175da890d7dcd5dffdd8 Mon Sep 17 00:00:00 2001
From: dante ruiz <dante@highfidelity.io>
Date: Tue, 23 Jul 2019 13:52:16 -0700
Subject: [PATCH] inital work

---
 launchers/darwin/CMakeLists.txt     | 6 +++++-
 launchers/darwin/src/updater/main.m | 4 ++++
 2 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 launchers/darwin/src/updater/main.m

diff --git a/launchers/darwin/CMakeLists.txt b/launchers/darwin/CMakeLists.txt
index 177a7722e5..6114c656d2 100644
--- a/launchers/darwin/CMakeLists.txt
+++ b/launchers/darwin/CMakeLists.txt
@@ -47,6 +47,9 @@ set(src_files
   nib/ProcessScreen.xib
   nib/DisplayNameScreen.xib)
 
+set(updater_src_files
+  src/updater/main.m)
+
 set(APP_NAME "HQ Launcher")
 
 set(CMAKE_C_FLAGS "-x objective-c")
@@ -72,6 +75,7 @@ endfunction()
   set_packaging_parameters()
 
 add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${src_files})
+add_executable("updater" ${updater_src_files})
 set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${APP_NAME}
   MACOSX_BUNDLE_BUNDLE_NAME ${APP_NAME})
 set_from_env(LAUNCHER_HMAC_SECRET LAUNCHER_HMAC_SECRET "")
@@ -103,7 +107,7 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
   ${CMAKE_SOURCE_DIR}/images "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${APP_NAME}.app/Contents/Resources/")
 
 install(
-  TARGETS HQLauncher
+  TARGETS HQLauncher updater
   BUNDLE DESTINATION "."
   COMPONENT applications
 )
diff --git a/launchers/darwin/src/updater/main.m b/launchers/darwin/src/updater/main.m
new file mode 100644
index 0000000000..cef16f1530
--- /dev/null
+++ b/launchers/darwin/src/updater/main.m
@@ -0,0 +1,4 @@
+int main(int argc, const char* argv[])
+{
+    NSLog(@"Hello World");
+}