From 91dea3622b544a83bc54ea4a4b566c30312e0ad2 Mon Sep 17 00:00:00 2001 From: realaltffour <56314286+realaltffour@users.noreply.github.com> Date: Tue, 28 Apr 2020 09:54:48 +0300 Subject: [PATCH] Fix rpm postinst --- CMakeLists.txt | 5 +++-- scripts/post-install.sh | 3 --- scripts/postinst | 4 ++++ 3 files changed, 7 insertions(+), 5 deletions(-) delete mode 100755 scripts/post-install.sh create mode 100755 scripts/postinst diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a04da0..a90889c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.15) -project("fixmydownloads" VERSION 0.0.1) +project("fixmydownloads" VERSION 0.8.5 LANGUAGES C) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH}) @@ -25,7 +25,8 @@ set(CPACK_PACKAGE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE") set(CPACK_PACKAGE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") SET(CPACK_GENERATOR "DEB;RPM;TGZ;STGZ;TBZ2;TZ;ZIP") -set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_SOURCE_DIR}/scripts/post-install.sh;") +set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_SOURCE_DIR}/scripts/postinst;") +SET(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_SOURCE_DIR}/scripts/postinst;") include(CPack) diff --git a/scripts/post-install.sh b/scripts/post-install.sh deleted file mode 100755 index 01187a1..0000000 --- a/scripts/post-install.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -echo 'fixmydl' >> ~/.profile diff --git a/scripts/postinst b/scripts/postinst new file mode 100755 index 0000000..6749040 --- /dev/null +++ b/scripts/postinst @@ -0,0 +1,4 @@ +echo 'Hey user!' +echo 'Thanks for installing!' +echo 'Run: echo 'fixmydl' >> ~/.profile' +echo 'So that fixmydownloads starts cleaning when you login!'