diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c90cc18 --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +all: + true + +build: + cargo fetch + cargo build --release + +install_no_build: + mkdir -p $(DESTDIR)/usr/bin/ + cp -vf target/release/fedora-kernel-manager $(DESTDIR)/usr/bin/ + chmod 755 $(DESTDIR)/usr/bin/fedora-kernel-manager + mkdir -p $(DESTDIR)/usr/lib/fedora-kernel-manager/ + cp -rvf data/scripts $(DESTDIR)/usr/lib/fedora-kernel-manager/ + chmod 755 $(DESTDIR)/usr/lib/fedora-kernel-manager/scripts/*.sh + cp -vf data/kernel_branches.json $(DESTDIR)/usr/lib/fedora-kernel-manager/ + cp -vf data/scx_scheds.json $(DESTDIR)/usr/lib/fedora-kernel-manager/ + mkdir -p $(DESTDIR)/usr/share/applications + mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps + cp -vf data/com.github.cosmicfusion.fedora-kernel-manager.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/ + cp -vf data/com.github.cosmicfusion.fedora-kernel-manager.desktop $(DESTDIR)/usr/share/applications/ + +install: + mkdir -p $(DESTDIR)/usr/bin/ + cargo fetch + cargo build --release + cp -vf target/release/fedora-kernel-manager $(DESTDIR)/usr/bin/ + chmod 755 $(DESTDIR)/usr/bin/fedora-kernel-manager + mkdir -p $(DESTDIR)/usr/lib/fedora-kernel-manager/ + cp -rvf data/scripts $(DESTDIR)/usr/lib/fedora-kernel-manager/ + chmod 755 $(DESTDIR)/usr/lib/fedora-kernel-manager/scripts/*.sh + cp -vf data/kernel_branches.json $(DESTDIR)/usr/lib/fedora-kernel-manager/ + cp -vf data/scx_scheds.json $(DESTDIR)/usr/lib/fedora-kernel-manager/ + mkdir -p $(DESTDIR)/usr/share/applications + mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps + cp -vf data/com.github.cosmicfusion.fedora-kernel-manager.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/ + cp -vf data/com.github.cosmicfusion.fedora-kernel-manager.desktop $(DESTDIR)/usr/share/applications/ diff --git a/data/com.github.cosmicfusion.fedora-kernel-manager.desktop b/data/com.github.cosmicfusion.fedora-kernel-manager.desktop new file mode 100644 index 0000000..d5e332f --- /dev/null +++ b/data/com.github.cosmicfusion.fedora-kernel-manager.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Fedora Kernel Manager +Exec=fedora-kernel-manager +Icon=com.github.cosmicfusion.fedora-kernel-manager +Terminal=false +Type=Application +Encoding=UTF-8 +Categories=Application;System;Settings;XFCE;X-XFCE-SettingsDialog;X-XFCE-SystemSettings; +StartupNotify=true \ No newline at end of file diff --git a/data/com.github.cosmicfusion.fedora-kernel-manager.svg b/data/com.github.cosmicfusion.fedora-kernel-manager.svg new file mode 100644 index 0000000..065ce05 --- /dev/null +++ b/data/com.github.cosmicfusion.fedora-kernel-manager.svg @@ -0,0 +1,5 @@ + + + + +