Skip to content

Commit

Permalink
fixup! feat(ci): create win32 installer
Browse files Browse the repository at this point in the history
  • Loading branch information
therealbobo committed Nov 2, 2023
1 parent b1ceee2 commit da7a2f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable_build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ jobs:
- name: Build project
run: |
cmake --build build
cmake --build build --target package
- name: Run unit Tests
run: |
Expand Down
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ if (NOT MINIMAL_BUILD)
endif()

# Installation
install(FILES falco.yaml DESTINATION "${FALCO_ETC_DIR}" COMPONENT "${FALCO_COMPONENT_NAME}")
if(WIN32)
install(FILES falco.yaml DESTINATION etc/falco/ COMPONENT "${FALCO_COMPONENT_NAME}")
else()
install(FILES falco.yaml DESTINATION "${FALCO_ETC_DIR}" COMPONENT "${FALCO_COMPONENT_NAME}")
endif()

if(NOT MINIMAL_BUILD)
# Coverage
Expand Down
6 changes: 5 additions & 1 deletion cmake/modules/rules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ set(FALCOSECURITY_RULES_LOCAL_PATH "${PROJECT_BINARY_DIR}/falcosecurity-rules-lo
file(WRITE "${FALCOSECURITY_RULES_LOCAL_PATH}" "# Your custom rules!\n")

if(NOT DEFINED FALCO_ETC_DIR)
set(FALCO_ETC_DIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/falco")
if(WIN32)
set(FALCO_ETC_DIR "etc/falco")
else()
set(FALCO_ETC_DIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/falco")
endif()
endif()

if(NOT DEFINED FALCO_RULES_DEST_FILENAME)
Expand Down

0 comments on commit da7a2f1

Please sign in to comment.