Skip to content

Commit 72baa6c

Browse files
authored
Merge pull request #712 from fastfetch-cli/dev
Release v2.8.0
2 parents 736d531 + 34b023a commit 72baa6c

Some content is hidden

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

53 files changed

+1258
-505
lines changed

.github/workflows/ci.yml

Lines changed: 151 additions & 57 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# 2.8.0
2+
3+
Changes:
4+
* The linux binaries are now built with glibc 2.35, which means they no longer support Debian 11 and Ubuntu 20.04. Users using these distros may download the artifacts `fastfetch-linux-old` from GitHub Actions.
5+
6+
Features:
7+
* Rewrite GPU module, drop libpci dependency (GPU, Linux)
8+
* Detect marketing name of Apple Silicon CPUs for asahi linux (CPU, Linux)
9+
* Add new module `Camera`, which prints the name and resolution of connected cameras
10+
11+
Bugfixes:
12+
* Fix compatibility with packages installed by flatpak (Terminal, Linux)
13+
* Don't show an empty battery if no battery is detected (macOS, Battery)
14+
* Don't show `not connected` if no power adapter is found (macOS / Linux, PowerAdapter)
15+
* Make format of battery status be consistent with other platforms (Linux, Battery)
16+
17+
Logo:
18+
* Print Asahi logo in asahi linux (Logo, Linux)
19+
* Add Asahi2, z/OS, Tatra, PikaOS
20+
121
# 2.7.1
222

323
Features:

CMakeLists.txt

Lines changed: 9 additions & 7 deletions
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.7.1
4+
VERSION 2.8.0
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
@@ -42,7 +42,6 @@ include(CheckIncludeFile)
4242

4343
include(CMakeDependentOption)
4444

45-
cmake_dependent_option(ENABLE_LIBPCI "Enable libpci" ON "LINUX OR BSD" OFF)
4645
cmake_dependent_option(ENABLE_VULKAN "Enable vulkan" ON "LINUX OR APPLE OR BSD OR WIN32 OR ANDROID" OFF)
4746
cmake_dependent_option(ENABLE_WAYLAND "Enable wayland-client" ON "LINUX OR BSD" OFF)
4847
cmake_dependent_option(ENABLE_XCB_RANDR "Enable xcb-randr" ON "LINUX OR BSD" OFF)
@@ -70,7 +69,6 @@ cmake_dependent_option(ENABLE_PULSE "Enable pulse" ON "LINUX" OFF)
7069
cmake_dependent_option(ENABLE_DDCUTIL "Enable ddcutil" ON "LINUX" OFF)
7170
cmake_dependent_option(ENABLE_DIRECTX_HEADERS "Enable DirectX headers for WSL" ON "LINUX" OFF)
7271
cmake_dependent_option(ENABLE_THREADS "Enable multithreading" ON "Threads_FOUND" OFF)
73-
cmake_dependent_option(ENABLE_PCI_MEMORY "Enable detecting GPU memory size with libpci" OFF "LINUX OR BSD" OFF)
7472

7573
option(ENABLE_SYSTEM_YYJSON "Use system provided (instead of fastfetch embedded) yyjson library" OFF)
7674
option(ENABLE_ASAN "Build fastfetch with ASAN (address sanitizer)" OFF)
@@ -310,6 +308,7 @@ set(LIBFASTFETCH_SRC
310308
src/modules/board/board.c
311309
src/modules/brightness/brightness.c
312310
src/modules/break/break.c
311+
src/modules/camera/camera.c
313312
src/modules/chassis/chassis.c
314313
src/modules/colors/colors.c
315314
src/modules/cpu/cpu.c
@@ -434,6 +433,7 @@ if(LINUX)
434433
src/detection/wm/wm_nosupport.c
435434
src/detection/de/de_linux.c
436435
src/detection/wmtheme/wmtheme_linux.c
436+
src/detection/camera/camera_linux.c
437437
src/util/platform/FFPlatform_unix.c
438438
)
439439
elseif(ANDROID)
@@ -487,6 +487,7 @@ elseif(ANDROID)
487487
src/detection/wm/wm_nosupport.c
488488
src/detection/de/de_nosupport.c
489489
src/detection/wmtheme/wmtheme_nosupport.c
490+
src/detection/camera/camera_android.c
490491
src/util/platform/FFPlatform_unix.c
491492
)
492493
elseif(BSD)
@@ -549,6 +550,7 @@ elseif(BSD)
549550
src/detection/wm/wm_nosupport.c
550551
src/detection/de/de_linux.c
551552
src/detection/wmtheme/wmtheme_linux.c
553+
src/detection/camera/camera_linux.c
552554
src/util/platform/FFPlatform_unix.c
553555
)
554556
elseif(APPLE)
@@ -604,6 +606,7 @@ elseif(APPLE)
604606
src/detection/wm/wm_apple.c
605607
src/detection/de/de_nosupport.c
606608
src/detection/wmtheme/wmtheme_apple.m
609+
src/detection/camera/camera_apple.m
607610
src/util/apple/cf_helpers.c
608611
src/util/apple/osascript.m
609612
src/util/platform/FFPlatform_unix.c
@@ -659,6 +662,7 @@ elseif(WIN32)
659662
src/detection/wm/wm_windows.cpp
660663
src/detection/de/de_nosupport.c
661664
src/detection/wmtheme/wmtheme_windows.c
665+
src/detection/camera/camera_windows.cpp
662666
src/util/windows/getline.c
663667
src/util/windows/com.cpp
664668
src/util/windows/registry.c
@@ -792,10 +796,6 @@ function(ff_lib_enable VARNAME PKGCONFIG_NAMES CMAKE_NAME)
792796
endforeach()
793797
endfunction()
794798

795-
ff_lib_enable(LIBPCI
796-
"libpci"
797-
"Pci"
798-
)
799799
ff_lib_enable(VULKAN
800800
"vulkan"
801801
"Vulkan"
@@ -918,9 +918,11 @@ if(LINUX)
918918
)
919919
elseif(APPLE)
920920
target_link_libraries(libfastfetch
921+
PRIVATE "-framework AVFoundation"
921922
PRIVATE "-framework Cocoa"
922923
PRIVATE "-framework CoreFoundation"
923924
PRIVATE "-framework CoreAudio"
925+
PRIVATE "-framework CoreMedia"
924926
PRIVATE "-framework CoreVideo"
925927
PRIVATE "-framework CoreWLAN"
926928
PRIVATE "-framework IOBluetooth"

debian/changelog

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
fastfetch (2.7.1ubuntu2) jammy; urgency=medium
2+
3+
* Ignore .git
4+
5+
-- Carter Li <[email protected]> Wed, 07 Feb 2024 14:23:23 +0800
6+
7+
fastfetch (2.7.1ubuntu1) jammy; urgency=medium
8+
9+
* Update build scripts
10+
11+
-- Carter Li <[email protected]> Wed, 07 Feb 2024 13:53:37 +0800
12+
13+
fastfetch (2.7.1) jammy; urgency=medium
14+
15+
* Initial release.
16+
17+
-- Carter Li <[email protected]> Tue, 06 Feb 2024 15:01:11 +0800
18+

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

debian/control

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Source: fastfetch
2+
Section: universe/utils
3+
Priority: optional
4+
Maintainer: Carter Li <[email protected]>
5+
Build-Depends: libvulkan-dev, libwayland-dev, libxrandr-dev, libxcb-randr0-dev, libdconf-dev, libdbus-1-dev, libmagickcore-dev, libxfconf-0-dev, libsqlite3-dev, librpm-dev, libegl-dev, libglx-dev, libosmesa6-dev, ocl-icd-opencl-dev, libnm-dev, libpulse-dev, libdrm-dev, libddcutil-dev, libchafa-dev, directx-headers-dev, pkgconf, cmake (>= 3.12), debhelper (>= 11.2), dh-cmake, dh-cmake-compat (= 1), dh-sequence-cmake, dh-sequence-ctest, ninja-build
6+
Standards-Version: 4.0.0
7+
Homepage: https://github.com/fastfetch-cli/fastfetch
8+
9+
Package: fastfetch
10+
Architecture: any
11+
Depends: ${shlibs:Depends}, ${misc:Depends}
12+
Description: Fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way.
13+
It is written mainly in C, with performance and customizability in mind.

debian/copyright

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: fastfetch
3+
Source: https://github.com/fastfetch-cli/fastfetch
4+
5+
Files: *
6+
Copyright: 2024 fastfetch-cli
7+
License: Expat
8+
9+
Files: src/3rdparty/yyjson/*
10+
Copyright: 2020 YaoYuan
11+
License: Expat

debian/files

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fastfetch_2.7.1ubuntu2_source.buildinfo universe/utils optional

debian/publish.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
debuild -S -i -I
4+
dput ppa:zhangsongcui3371/fastfetch ~/fastfetch_*.changes

debian/rules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/make -f
2+
3+
%:
4+
dh $@ --buildsystem=cmake+ninja
5+
6+
override_dh_ctest_configure:
7+
dh_ctest_configure -- -DSET_TWEAK=OFF -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo

0 commit comments

Comments
 (0)