Skip to content

Commit

Permalink
feat: update CMake configuration and README for package naming conven…
Browse files Browse the repository at this point in the history
…tions on Windows, macOS, and Linux
  • Loading branch information
MasterLaplace committed Nov 17, 2024
1 parent 207a854 commit c4c2a95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ if (WIN32)
set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/docs/Images/icon.ico")
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/docs/Images/icon.ico")
set(CPACK_NSIS_EXECUTABLES_DIRECTORY "bin")
set(CPACK_PACKAGE_FILE_NAME "flakkari-win64")
elseif (APPLE)
set(CPACK_GENERATOR "DragNDrop")
set(CPACK_DMG_FORMAT "UDBZ")
Expand All @@ -234,6 +235,7 @@ elseif (APPLE)
set(CPACK_DMG_DS_STORE_SETUP_SCRIPT_EXECUTABLE ON)
set(CPACK_DMG_DS_STORE_SETUP_SCRIPT_NAME "DS_Store.sh")
set(CPACK_DMG_DS_STORE_SETUP_SCRIPT_DESTINATION ".background")
set(CPACK_PACKAGE_FILE_NAME "flakkari-macos")
else()
set(CPACK_GENERATOR "DEB;RPM")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Flakkari Team")
Expand All @@ -244,6 +246,7 @@ else()
set(CPACK_RPM_PACKAGE_GROUP "Development/Tools")
set(CPACK_RPM_PACKAGE_REQUIRES "nlohmann-json >= 3.9.1, doxygen >= 1.8.17, graphviz >= 2.40.1")
set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
set(CPACK_PACKAGE_FILE_NAME "flakkari-linux")
endif()

# Signing the package
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@
  :  
<img
src="https://img.shields.io/badge/Linux-blue?style=for-the-badge"
alt="Linux"
href="https://github.com/MasterLaplace/Flakkari/releases/latest"
alt="Linux deb"
href="https://github.com/MasterLaplace/Flakkari/releases/download/latest/flakkari-linux.deb"
> &#xa0; | &#xa0;
<img
src="https://img.shields.io/badge/Windows-blue?style=for-the-badge"
alt="Windows"
href="https://github.com/MasterLaplace/Flakkari/releases/download/latest/flakkari-win64.exe"
> &#xa0; | &#xa0;
<img
src="https://img.shields.io/badge/MacOS-blue?style=for-the-badge"
alt="MacOS"
href="https://github.com/MasterLaplace/Flakkari/releases/download/latest/flakkari-macos.pkg"
>
</h3>
</p>
Expand Down Expand Up @@ -98,16 +100,16 @@ other build commands:

# Install the package
# For windows systems
(build)$> flakkari-<version>-win64.exe
(build)$> flakkari-win64.exe

# For macos systems
(build)$> sudo installer -pkg flakkari-<version>-Darwin.pkg -target /
(build)$> sudo installer -pkg flakkari-macos.pkg -target /

# For redhat based systems
(build)$> sudo rpm -i flakkari-<version>-Linux.rpm
(build)$> sudo rpm -i flakkari-linux.rpm

# For debian based systems
(build)$> sudo dpkg -i flakkari-<version>-Linux.deb
(build)$> sudo dpkg -i flakkari-linux.deb
```

<div id='docker'/>
Expand Down

0 comments on commit c4c2a95

Please sign in to comment.