parent
076ceccdfc
commit
a0165a015f
|
@ -19,15 +19,12 @@ if(NOT CPACK_PACKAGE_VERSION)
|
||||||
set(CPACK_PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
|
set(CPACK_PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
|
||||||
endif()
|
endif()
|
||||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
|
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
|
||||||
if(QT_DEFAULT_MAJOR_VERSION MATCHES "5")
|
|
||||||
STRING(APPEND CPACK_PACKAGE_FILE_NAME "-Qt5")
|
|
||||||
endif()
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||||
set(CPACK_PACKAGE_VENDOR "Yahoo")
|
set(CPACK_PACKAGE_VENDOR "Yahoo")
|
||||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "ashirt")
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY "ashirt")
|
||||||
set(CPACK_NSIS_DISPLAY_NAME ${CMAKE_PACKAGE_NAME})
|
set(CPACK_NSIS_DISPLAY_NAME ${CMAKE_PACKAGE_NAME})
|
||||||
set(CPACK_NSIS_COMPRESSOR lzma)
|
set(CPACK_NSIS_COMPRESSOR lzma)
|
||||||
set(CPACK_NSIS_MUI_ICON "${PROJECT_SOURCE_DIR}/deploy/ashirt.ico")
|
set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/ashirt.ico")
|
||||||
set(CPACK_NSIS_INSTALLED_ICON_NAME ashirt.exe)
|
set(CPACK_NSIS_INSTALLED_ICON_NAME ashirt.exe)
|
||||||
set(CPACK_NSIS_MENU_LINKS "ashirt.exe" "ashirt")
|
set(CPACK_NSIS_MENU_LINKS "ashirt.exe" "ashirt")
|
||||||
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
|
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
|
||||||
|
@ -41,10 +38,11 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||||
set(CPACK_GENERATOR "NSIS")
|
set(CPACK_GENERATOR "NSIS")
|
||||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
# Write our cert identifier to a file generate_ds_store.applescript can read
|
# Write our cert identifier to a file generate_ds_store.applescript can read
|
||||||
file(WRITE ${PROJECT_SOURCE_DIR}/deploy/NOTARIZE_AS ${NOTARIZE_AS})
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/deploy/NOTARIZE_AS ${NOTARIZE_AS})
|
||||||
set(CPACK_PACKAGE_ICON "${PROJECT_SOURCE_DIR}/deploy/dmg_icon.icns")
|
configure_file(generate_ds_store.applescript.in ${CMAKE_CURRENT_BINARY_DIR}/generate_ds_store.applescript @ONLY)
|
||||||
set(CPACK_DMG_BACKGROUND_IMAGE "${PROJECT_SOURCE_DIR}/deploy/dmg_background.png")
|
set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/dmg_icon.icns")
|
||||||
set(CPACK_DMG_DS_STORE_SETUP_SCRIPT "${PROJECT_SOURCE_DIR}/deploy/generate_ds_store.applescript")
|
set(CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_CURRENT_SOURCE_DIR}/dmg_background.png")
|
||||||
|
set(CPACK_DMG_DS_STORE_SETUP_SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/generate_ds_store.applescript")
|
||||||
set(CPACK_DMG_VOLUME_NAME "ashirt")
|
set(CPACK_DMG_VOLUME_NAME "ashirt")
|
||||||
set(CPACK_GENERATOR "DragNDrop")
|
set(CPACK_GENERATOR "DragNDrop")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -43,7 +43,7 @@ on run argv
|
||||||
set position of item "README.MD" to { 250, 0 }
|
set position of item "README.MD" to { 250, 0 }
|
||||||
set position of item "Applications" to { 500, 225 }
|
set position of item "Applications" to { 500, 225 }
|
||||||
try
|
try
|
||||||
do shell script "codesign -v -f --timestamp --options runtime --sign \"$(cat deploy/NOTARIZE_AS)\" /Volumes/" & image_name & "/ashirt.app/Contents/MacOS/ashirt"
|
do shell script "codesign -v -f --timestamp --options runtime --sign \"$(cat @CMAKE_CURRENT_BINARY_DIR@/NOTARIZE_AS)\" /Volumes/" & image_name & "/ashirt.app/Contents/MacOS/ashirt"
|
||||||
end try
|
end try
|
||||||
end tell
|
end tell
|
||||||
delay 5
|
delay 5
|
Loading…
Reference in New Issue