File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,25 +140,10 @@ if(NOT BINARY_LINK_TYPE IN_LIST BINARY_LINK_TYPE_OPTIONS)
140140 message (FATAL_ERROR "BINARY_LINK_TYPE must be one of ${BINARY_LINK_TYPE_OPTIONS} " )
141141endif ()
142142
143- set (PACKAGE_MANAGERS
144- AM APK APPIMAGE
145- BREW
146- CARDS CHOCO
147- DPKG
148- EMERGE EOPKG
149- FLATPAK
150- GUIX
151- HPKG
152- KISS
153- LINGLONG LPKG LPKGBUILD
154- MACPORTS MOSS MPORT
155- NIX
156- OPKG
157- PACMAN PACSTALL PALUDIS PISI PKG PKGSRC PKGTOOL
158- RPM
159- SCOOP SNAP SOAR SORCERY
160- WINGET
161- XBPS)
143+ file (READ "${CMAKE_CURRENT_SOURCE_DIR } /src/modules/packages/option.h" PACKAGE_MANAGERS )
144+ string (REGEX MATCHALL "FF_PACKAGES_FLAG_[A-Z]+_BIT" PACKAGE_MANAGERS "${PACKAGE_MANAGERS} " )
145+ string (REGEX REPLACE "FF_PACKAGES_FLAG_([A-Z]+)_BIT" "\\ 1" PACKAGE_MANAGERS "${PACKAGE_MANAGERS} " )
146+ list (SORT PACKAGE_MANAGERS)
162147foreach (package_manager ${PACKAGE_MANAGERS} )
163148 if (package_manager STREQUAL "WINGET" )
164149 option (PACKAGES_DISABLE_${package_manager} "Disable ${package_manager} package manager detection by default" ON )
@@ -333,7 +318,7 @@ if(Python_FOUND)
333318 endif ()
334319else ()
335320 message (WARNING "Python3 is not found, 'help.json' will not be minified" )
336- file (READ "doc/help.json" DATATEXT_JSON_HELP )
321+ file (READ "${ CMAKE_CURRENT_SOURCE_DIR } / doc/help.json" DATATEXT_JSON_HELP )
337322endif ()
338323
339324if (ENABLE_EMBEDDED_PCIIDS AND NOT EXISTS "${PROJECT_BINARY_DIR } /fastfetch_pciids.c.inc" )
You can’t perform that action at this time.
0 commit comments