From 22b234bbb8af5475dad5a48de0af6533795a4b15 Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Tue, 20 Jun 2023 12:44:46 +0200 Subject: [PATCH] udev-rule-writer: Drop extension, make executable The udev-rule-writer is not a shell script, drop .sh extension Change the install rule to install it as executable, not data. --- .github/workflows/release.yml | 1 - CMakeLists.txt | 2 +- src/CMakeLists.txt | 2 +- src/{udev-rule-writer.sh => udev-rule-writer} | 0 4 files changed, 2 insertions(+), 3 deletions(-) rename src/{udev-rule-writer.sh => udev-rule-writer} (100%) 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