diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b499b63..7a60b0c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,7 +59,6 @@ jobs: cmake --build build cmake --install build - chmod a+x installer/packages/${INSTALLER_PACKAGE_NAME}/data/bin/udev-rule-writer.sh - name: Cleanup directories run: | rm -rf installer/packages/${INSTALLER_PACKAGE_NAME}/data/lib diff --git a/CMakeLists.txt b/CMakeLists.txt index b28d849..48f61d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) -set(LINUX_UDEV_RULE_WRITER_NAME "udev-rule-writer.sh") +set(LINUX_UDEV_RULE_WRITER_NAME "udev-rule-writer") set(MACOSX_BUNDLE_COPYRIGHT "Debayan Sutradhar") set(MACOSX_BUNDLE_GUI_IDENTIFIER io.github.rnayabed.rangoli) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5bd13b7..03be0ba 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -124,7 +124,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux") "${CMAKE_CURRENT_SOURCE_DIR}/${LINUX_UDEV_RULE_WRITER_NAME}" "${CMAKE_CURRENT_BINARY_DIR}") - install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/${LINUX_UDEV_RULE_WRITER_NAME}" + install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/${LINUX_UDEV_RULE_WRITER_NAME}" DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() diff --git a/src/udev-rule-writer.sh b/src/udev-rule-writer similarity index 100% rename from src/udev-rule-writer.sh rename to src/udev-rule-writer