optimizations

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2024-06-23 00:54:09 +03:00 committed by GitHub
parent d12ff72c98
commit 474e578319
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 13 deletions

View File

@ -22,3 +22,10 @@ rust-i18n = "3.0.1"
[build-dependencies] [build-dependencies]
glib-build-tools = "0.19.0" glib-build-tools = "0.19.0"
[profile.release]
opt-level = 'z' # Optimize for size
lto = true # Enable link-time optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
panic = 'abort' # Abort on panic
strip = true # Strip symbols from binary*

View File

@ -3,7 +3,7 @@
Name: fedora-kernel-manager Name: fedora-kernel-manager
Version: %{pkg_release} Version: %{pkg_release}
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2 License: GPLv2
Group: System Environment/Libraries Group: System Environment/Libraries
Summary: A Libadwaita rust based application for managing and installing kernels. Summary: A Libadwaita rust based application for managing and installing kernels.
@ -37,18 +37,6 @@ Recommends: sched-ext-scx
%description %description
A Libadwaita rust based application for managing and installing kernels. A Libadwaita rust based application for managing and installing kernels.
%package cachyos-config
Summary: Config files to enable coprs/bieszczaders/kernel-cachyos in fedora-kernel-manager
Requires: fedora-kernel-manager
%description cachyos-config
Config files to enable coprs/bieszczaders/kernel-cachyos in fedora-kernel-manager
%files cachyos-config
%{_prefix}/lib/fedora-kernel-manager/kernel_branches/kernel-cachyos.json
%{_datadir}/polkit-1/actions/fkm.kernel.cachyos.init.policy
%{_datadir}/polkit-1/rules.d/99-fkm.kernel.cachyos.init.rules
%prep %prep
%autosetup -p1 -n fedora-kernel-manager %autosetup -p1 -n fedora-kernel-manager
@ -62,3 +50,16 @@ DESTDIR=%{buildroot} make install
%{_datadir}/icons/hicolor/scalable/apps/*.svg %{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/polkit-1/actions/fkm.change.scx.policy %{_datadir}/polkit-1/actions/fkm.change.scx.policy
%{_datadir}/polkit-1/actions/fkm.modify.package.policy %{_datadir}/polkit-1/actions/fkm.modify.package.policy
%exclude %{_prefix}/lib/fedora-kernel-manager/kernel_branches/kernel-cachyos.json
%package cachyos-config
Summary: Config files to enable coprs/bieszczaders/kernel-cachyos in fedora-kernel-manager
Requires: fedora-kernel-manager
%description cachyos-config
Config files to enable coprs/bieszczaders/kernel-cachyos in fedora-kernel-manager
%files cachyos-config
%{_prefix}/lib/fedora-kernel-manager/kernel_branches/kernel-cachyos.json
%{_datadir}/polkit-1/actions/fkm.kernel.cachyos.init.policy
%{_datadir}/polkit-1/rules.d/99-fkm.kernel.cachyos.init.rules