Skip to content

Commit 33953a0

Browse files
authored
Merge pull request #583 from fastfetch-cli/dev
Release v2.1.1
2 parents e3c69c4 + 98e8e59 commit 33953a0

File tree

192 files changed

+2645
-980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+2645
-980
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ jobs:
4444
run: ctest
4545

4646
- name: run fastfetch
47-
run: ./fastfetch --stat --show-errors --no-buffer --load-config presets/all
47+
run: time ./fastfetch -c presets/ci
48+
49+
- name: run fastfetch --format json
50+
run: time ./fastfetch -c presets/ci --format json
4851

4952
- name: run flashfetch
50-
run: ./flashfetch
53+
run: time ./flashfetch
5154

5255
linux:
5356
name: Linux
@@ -84,6 +87,9 @@ jobs:
8487
- name: run fastfetch
8588
run: time ./fastfetch -c presets/ci
8689

90+
- name: run fastfetch --format json
91+
run: time ./fastfetch -c presets/ci --format json
92+
8793
- name: run flashfetch
8894
run: time ./flashfetch
8995

@@ -136,6 +142,9 @@ jobs:
136142
- name: run fastfetch
137143
run: time ./fastfetch -c presets/ci
138144

145+
- name: run fastfetch --format json
146+
run: time ./fastfetch -c presets/ci --format json
147+
139148
- name: run flashfetch
140149
run: time ./flashfetch
141150

@@ -165,12 +174,13 @@ jobs:
165174
uses: vmactions/freebsd-vm@v0
166175
with:
167176
prepare: |
168-
pkg install -y cmake git pkgconf pciutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 glib dconf dbus sqlite3-tcl xfce4-conf ImageMagick6 ImageMagick7 chafa egl libosmesa opencl ocl-icd pulseaudio
177+
pkg install -y cmake git pkgconf binutils pciutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 glib dconf dbus sqlite3-tcl xfce4-conf ImageMagick6 ImageMagick7 chafa egl libosmesa opencl ocl-icd pulseaudio
169178
run: |
170179
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
171180
cmake --build . --target package
172181
./fastfetch --list-features
173182
time ./fastfetch -c presets/ci
183+
time ./fastfetch -c presets/ci --format json
174184
time ./flashfetch
175185
ldd fastfetch
176186
ctest
@@ -227,6 +237,9 @@ jobs:
227237
- name: run fastfetch
228238
run: time ./fastfetch -c presets/ci
229239

240+
- name: run fastfetch --format json
241+
run: time ./fastfetch -c presets/ci --format json
242+
230243
- name: run flashfetch
231244
run: time ./flashfetch
232245

@@ -291,6 +304,9 @@ jobs:
291304
- name: run fastfetch
292305
run: time ./fastfetch -c presets/ci
293306

307+
- name: run fastfetch --format json
308+
run: time ./fastfetch -c presets/ci --format json
309+
294310
- name: run flashfetch
295311
run: time ./flashfetch
296312

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# 2.1.1
2+
3+
Features:
4+
* Support opkg (Packages, Linux)
5+
* Support GNOME Console terminal version and font detection (Terminal, Linux)
6+
* Add `--cpu-freq-ndigits` to set number of digits for CPU frequency (CPU)
7+
* New module to detect physical disk I/O usage (DiskIO)
8+
* Add `--cpuusage-separate` to display CPU usage per CPU logical core
9+
* Add `--brightness-ddcci-sleep` to set the sleep times (in ms) when sending DDC/CI requests (Brightness, #580)
10+
11+
Bugfixes:
12+
* Fix possible crashes on Windows 7 (Disk, Windows)
13+
* Fix possible crashes caused by uninitialized strings (Users, Windows)
14+
* Improve support of `--help *-format` and several bugs are found and fixed
15+
* Don't incorrectly print `No active sound devices found` when using a non-controllable sound device (Sound, macOS)
16+
* Fix implementation processes counting (Processes, Linux)
17+
* Work around a issue that SSID cannot be detected on macOS Sonoma (Wifi, macOS)
18+
19+
Logo:
20+
* Add Chimera Linux
21+
* Add EndeavourSmall
22+
* Add Xenia
23+
124
# 2.1.0
225

326
This release introduces a new output format: JSON result

CMakeLists.txt

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
22

33
project(fastfetch
4-
VERSION 2.1.0
4+
VERSION 2.1.1
55
LANGUAGES C
66
DESCRIPTION "Fast system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
@@ -222,6 +222,9 @@ fastfetch_load_text(src/data/help_config.txt DATATEXT_HELP_CONFIG)
222222

223223
configure_file(src/fastfetch_config.h.in fastfetch_config.h @ONLY)
224224
configure_file(src/fastfetch_datatext.h.in fastfetch_datatext.h @ONLY)
225+
if(APPLE)
226+
configure_file(src/util/apple/Info.plist.in Info.plist @ONLY)
227+
endif()
225228

226229
####################
227230
# Ascii image data #
@@ -273,6 +276,7 @@ set(LIBFASTFETCH_SRC
273276
src/detection/cpu/cpu.c
274277
src/detection/cpuusage/cpuusage.c
275278
src/detection/disk/disk.c
279+
src/detection/diskio/diskio.c
276280
src/detection/displayserver/displayserver.c
277281
src/detection/font/font.c
278282
src/detection/gpu/gpu.c
@@ -310,6 +314,7 @@ set(LIBFASTFETCH_SRC
310314
src/modules/datetime/datetime.c
311315
src/modules/de/de.c
312316
src/modules/disk/disk.c
317+
src/modules/diskio/diskio.c
313318
src/modules/font/font.c
314319
src/modules/gpu/gpu.c
315320
src/modules/host/host.c
@@ -375,6 +380,7 @@ if(LINUX)
375380
src/detection/cursor/cursor_linux.c
376381
src/detection/bluetooth/bluetooth_linux.c
377382
src/detection/disk/disk_linux.c
383+
src/detection/diskio/diskio_linux.c
378384
src/detection/displayserver/linux/displayserver_linux.c
379385
src/detection/displayserver/linux/wayland.c
380386
src/detection/displayserver/linux/wmde.c
@@ -385,6 +391,7 @@ if(LINUX)
385391
src/detection/gtk_qt/gtk.c
386392
src/detection/host/host_linux.c
387393
src/detection/icons/icons_linux.c
394+
src/detection/libc/libc_linux.c
388395
src/detection/lm/lm_linux.c
389396
src/detection/localip/localip_linux.c
390397
src/detection/gamepad/gamepad_linux.c
@@ -428,11 +435,13 @@ elseif(ANDROID)
428435
src/detection/cursor/cursor_nosupport.c
429436
src/detection/cpuusage/cpuusage_linux.c
430437
src/detection/disk/disk_linux.c
438+
src/detection/diskio/diskio_linux.c
431439
src/detection/displayserver/displayserver_android.c
432440
src/detection/font/font_nosupport.c
433441
src/detection/gpu/gpu_nosupport.c
434442
src/detection/host/host_android.c
435443
src/detection/icons/icons_nosupport.c
444+
src/detection/libc/libc_android.c
436445
src/detection/lm/lm_nosupport.c
437446
src/detection/localip/localip_linux.c
438447
src/detection/gamepad/gamepad_nosupport.c
@@ -477,6 +486,7 @@ elseif(BSD)
477486
src/detection/cpuusage/cpuusage_bsd.c
478487
src/detection/cursor/cursor_linux.c
479488
src/detection/disk/disk_bsd.c
489+
src/detection/diskio/diskio_bsd.c
480490
src/detection/displayserver/linux/displayserver_linux.c
481491
src/detection/displayserver/linux/wayland.c
482492
src/detection/displayserver/linux/wmde.c
@@ -488,6 +498,7 @@ elseif(BSD)
488498
src/detection/host/host_bsd.c
489499
src/detection/lm/lm_linux.c
490500
src/detection/icons/icons_linux.c
501+
src/detection/libc/libc_bsd.c
491502
src/detection/localip/localip_linux.c
492503
src/detection/gamepad/gamepad_bsd.c
493504
src/detection/media/media_linux.c
@@ -531,12 +542,14 @@ elseif(APPLE)
531542
src/detection/cpuusage/cpuusage_apple.c
532543
src/detection/cursor/cursor_apple.m
533544
src/detection/disk/disk_bsd.c
545+
src/detection/diskio/diskio_apple.c
534546
src/detection/displayserver/displayserver_apple.c
535547
src/detection/font/font_apple.m
536548
src/detection/gpu/gpu_apple.c
537549
src/detection/host/host_apple.c
538550
src/detection/lm/lm_nosupport.c
539551
src/detection/icons/icons_nosupport.c
552+
src/detection/libc/libc_apple.c
540553
src/detection/localip/localip_linux.c
541554
src/detection/gamepad/gamepad_apple.c
542555
src/detection/media/media_apple.m
@@ -580,11 +593,13 @@ elseif(WIN32)
580593
src/detection/cpuusage/cpuusage_windows.c
581594
src/detection/cursor/cursor_windows.c
582595
src/detection/disk/disk_windows.c
596+
src/detection/diskio/diskio_windows.c
583597
src/detection/displayserver/displayserver_windows.c
584598
src/detection/font/font_windows.c
585599
src/detection/gpu/gpu_windows.c
586600
src/detection/host/host_windows.c
587601
src/detection/icons/icons_windows.c
602+
src/detection/libc/libc_windows.cpp
588603
src/detection/lm/lm_nosupport.c
589604
src/detection/localip/localip_windows.c
590605
src/detection/gamepad/gamepad_windows.c
@@ -651,6 +666,28 @@ if(yyjson_FOUND)
651666
target_link_libraries(libfastfetch PRIVATE yyjson)
652667
endif()
653668

669+
if(LINUX AND EXISTS "/lib/ld-musl-${CMAKE_HOST_SYSTEM_PROCESSOR}.so.1")
670+
execute_process(COMMAND "/lib/ld-musl-${CMAKE_HOST_SYSTEM_PROCESSOR}.so.1"
671+
ERROR_VARIABLE LD_MUSL_RESULT)
672+
if("${LD_MUSL_RESULT}" MATCHES "Version ([0-9]+\\.[0-9]+\\.[0-9]+)")
673+
target_compile_definitions(libfastfetch PUBLIC FF_MUSL_VERSION="${CMAKE_MATCH_1}")
674+
endif()
675+
endif()
676+
if(APPLE AND EXISTS "/usr/bin/otool")
677+
execute_process(COMMAND /usr/bin/otool -L /usr/bin/otool
678+
OUTPUT_VARIABLE OTOOL_OTOOL_RESULT)
679+
if("${OTOOL_OTOOL_RESULT}" MATCHES "libSystem\\.B\\.dylib \\(.*current version ([0-9]+\\.[0-9]+\\.[0-9]+)\\)")
680+
target_compile_definitions(libfastfetch PUBLIC FF_LIBSYSTEM_VERSION="${CMAKE_MATCH_1}")
681+
endif()
682+
endif()
683+
if(BSD AND EXISTS "/usr/local/bin/objdump")
684+
execute_process(COMMAND /bin/sh -c "/usr/local/bin/objdump -T /lib/libc.so.* | grep 'FBSD_[^ )]*' -o | sort -Vru | head -1"
685+
OUTPUT_VARIABLE OBJDUMP_T_RESULT)
686+
if("${OBJDUMP_T_RESULT}" MATCHES "FBSD_([0-9]+\\.[0-9]+)")
687+
target_compile_definitions(libfastfetch PUBLIC FF_FBSD_VERSION="${CMAKE_MATCH_1}")
688+
endif()
689+
endif()
690+
654691
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE __STDC_WANT_LIB_EXT1__=1)
655692
if(WIN32)
656693
target_compile_definitions(libfastfetch PUBLIC WIN32_LEAN_AND_MEAN=1)
@@ -856,6 +893,7 @@ elseif(BSD)
856893
target_link_libraries(libfastfetch
857894
PRIVATE "m"
858895
PRIVATE "usbhid"
896+
PRIVATE "devstat"
859897
)
860898
elseif(ANDROID)
861899
CHECK_LIBRARY_EXISTS(-l:libandroid-wordexp.a wordexp "" HAVE_LIBANDROID_WORDEXP_STATIC)
@@ -922,6 +960,13 @@ if(WIN32)
922960
target_sources(flashfetch
923961
PRIVATE src/util/windows/version.rc
924962
)
963+
elseif(APPLE)
964+
target_link_options(fastfetch
965+
PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,Info.plist
966+
)
967+
target_link_options(flashfetch
968+
PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,Info.plist
969+
)
925970
endif()
926971

927972
###################

0 commit comments

Comments
 (0)