mirror of
https://github.com/radareorg/iaito.git
synced 2026-04-21 10:48:11 +02:00
Run macos packaging in GHA. (#2529)
* Enable running of macOS packaging in GHA, most of the work done in dedbabde564ed688961cdc06828e39d6ca030e78 * Cleanup breakpad handling * Have single version of main executable in folder expected by macOS and most tools instead of executable+symlink+shell script * Handle Breakpad library lookup in more CMake way using FindBreakpad just like it's done on other platforms and packages * Refactor error handling in some of the shell scripts to use `set -e` instead of `|| exit 1` for each command. * Fix DMG background setup
This commit is contained in:
20
dist/MacOSBundlePython.cmake.in
vendored
Normal file
20
dist/MacOSBundlePython.cmake.in
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
set(EMBED_PYTHON_SH "@EMBED_PYTHON_SH@")
|
||||
set(PYTHON_FRAMEWORK_DIR "@PYTHON_FRAMEWORK_DIR@")
|
||||
set(PYSIDE_PREFIX "@PYSIDE_PREFIX@")
|
||||
|
||||
get_filename_component(BUNDLE_PATH "${CMAKE_INSTALL_PREFIX}/../.." ABSOLUTE)
|
||||
|
||||
set(ENV{PKG_CONFIG_PATH} "${PYSIDE_PREFIX}/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}")
|
||||
|
||||
# TODO: instead of calling a shellscript, implement the whole thing in cmake
|
||||
execute_process(COMMAND
|
||||
"${EMBED_PYTHON_SH}"
|
||||
"${PYTHON_FRAMEWORK_DIR}"
|
||||
"${BUNDLE_PATH}"
|
||||
"${BUNDLE_PATH}/Contents/MacOS/Cutter"
|
||||
RESULT_VARIABLE SCRIPT_RESULT)
|
||||
if(SCRIPT_RESULT)
|
||||
message(FATAL_ERROR "Failed to bundle python")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user