Fix rpm postinst

This commit is contained in:
realaltffour 2020-04-28 09:54:48 +03:00
parent f2b5aac1a9
commit 91dea3622b
No known key found for this signature in database
GPG Key ID: 7115CD2AC9A76A56
3 changed files with 7 additions and 5 deletions

View File

@ -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)

View File

@ -1,3 +0,0 @@
#!/bin/sh
echo 'fixmydl' >> ~/.profile

4
scripts/postinst Executable file
View File

@ -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!'