From 907005d3fccb827af7afa9c09bd744e7d26fd709 Mon Sep 17 00:00:00 2001 From: crizzitello <98421672+crizzitello@users.noreply.github.com> Date: Mon, 2 May 2022 13:29:15 -0400 Subject: [PATCH] Skip Dock on macOS (#155) Co-authored-by: Chris Rizzitello --- deploy/ashirt.plist.in | 37 +++++++++++++++++++++++++++++++++++++ src/CMakeLists.txt | 1 + 2 files changed, 38 insertions(+) create mode 100644 deploy/ashirt.plist.in diff --git a/deploy/ashirt.plist.in b/deploy/ashirt.plist.in new file mode 100644 index 0000000..6222c1c --- /dev/null +++ b/deploy/ashirt.plist.in @@ -0,0 +1,37 @@ + + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + CFBundleGetInfoString + ${MACOSX_BUNDLE_INFO_STRING} + CFBundleIconFile + ${MACOSX_BUNDLE_ICON_FILE} + CFBundleIdentifier + ${MACOSX_BUNDLE_GUI_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLongVersionString + ${MACOSX_BUNDLE_LONG_VERSION_STRING} + CFBundleName + ${MACOSX_BUNDLE_BUNDLE_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + ${MACOSX_BUNDLE_SHORT_VERSION_STRING} + CFBundleSignature + ???? + CFBundleVersion + ${MACOSX_BUNDLE_BUNDLE_VERSION} + CSResourcesFileMapped + + NSHumanReadableCopyright + ${MACOSX_BUNDLE_COPYRIGHT} + LSUIElement + 1 + + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0004134..df064d3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -42,6 +42,7 @@ endif() #WIN32 Its a "GUI" app on win32 add_executable(ashirt MACOSX_BUNDLE WIN32 ${ASHIRT_SOURCES} ${ASHIRT_PLATFORM_EX_SRC}) set_target_properties(ashirt PROPERTIES + MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/deploy/ashirt.plist.in MACOSX_BUNDLE_GUI_IDENTIFIER "com.theparanoids.ashirt" MACOSX_BUNDLE_BUNDLE_NAME "ashirt" MACOSX_BUNDLE_ICON_FILE ashirt.icns