add makefile

This commit is contained in:
Ward from fusion-voyager-3 2024-06-20 01:47:22 +03:00
parent 7c3dbff13e
commit e9621e2ec4
3 changed files with 50 additions and 0 deletions

36
Makefile Normal file
View File

@ -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/

View File

@ -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

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="512px" height="512px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
<g><path style="opacity:0.999" fill="#fefefe" d="M 240.5,-0.5 C 250.167,-0.5 259.833,-0.5 269.5,-0.5C 301.871,7.70042 322.704,28.0338 332,60.5C 336.176,74.8879 338.842,89.5545 340,104.5C 340.919,120.156 341.586,135.822 342,151.5C 344.778,162.507 349.112,172.84 355,182.5C 367.043,196.208 378.71,210.208 390,224.5C 415.843,263.853 428.343,307.186 427.5,354.5C 432.103,358.373 434.603,363.373 435,369.5C 434.584,378.494 434.251,387.494 434,396.5C 440.902,402.034 448.068,407.201 455.5,412C 466.72,420.662 470.554,431.829 467,445.5C 464.879,449.288 462.046,452.455 458.5,455C 446.054,460.891 433.387,466.224 420.5,471C 412.382,475.451 405.882,481.617 401,489.5C 390.06,500.964 376.893,508.297 361.5,511.5C 354.833,511.5 348.167,511.5 341.5,511.5C 331.309,508.312 324.309,501.645 320.5,491.5C 296.174,490.334 271.84,490.167 247.5,491C 225.589,492.802 205.589,499.636 187.5,511.5C 182.5,511.5 177.5,511.5 172.5,511.5C 164.542,509.675 156.542,507.508 148.5,505C 138.098,499.801 127.431,495.134 116.5,491C 99.8949,490.533 83.5615,488.199 67.5,484C 58.6556,481.664 51.1556,477.164 45,470.5C 42.9027,466.779 41.7361,462.779 41.5,458.5C 43.475,450.792 44.475,442.958 44.5,435C 43.938,425.293 42.938,415.626 41.5,406C 41.3633,395.606 46.03,388.273 55.5,384C 65.924,380.227 76.5907,377.394 87.5,375.5C 88.1969,361.101 94.3636,349.767 106,341.5C 117.462,287.774 136.795,237.107 164,189.5C 172.584,171.079 177.917,151.746 180,131.5C 179.457,103.429 182.457,75.7622 189,48.5C 195.759,20.901 212.925,4.5677 240.5,-0.5 Z M 220.5,123.5 C 224.919,114.276 224.252,105.443 218.5,97C 213.271,94.3786 208.771,95.2119 205,99.5C 201.509,107.469 201.676,115.302 205.5,123C 202.564,122.107 200.064,120.274 198,117.5C 191.912,105.268 190.912,92.6015 195,79.5C 202.31,62.7276 212.976,60.0609 227,71.5C 235.24,86.6707 235.574,102.004 228,117.5C 225.894,120.118 223.394,122.118 220.5,123.5 Z M 284.5,123.5 C 288.919,114.276 288.252,105.443 282.5,97C 277.271,94.3786 272.771,95.2119 269,99.5C 265.509,107.469 265.676,115.302 269.5,123C 266.564,122.107 264.064,120.274 262,117.5C 255.912,105.268 254.912,92.6015 259,79.5C 266.31,62.7276 276.976,60.0609 291,71.5C 299.24,86.6707 299.574,102.004 292,117.5C 289.894,120.118 287.394,122.118 284.5,123.5 Z M 238.5,128.5 C 256.134,128.819 271.468,134.819 284.5,146.5C 269.157,158.673 251.824,166.173 232.5,169C 221.075,164.624 211.408,157.79 203.5,148.5C 213.259,138.455 224.926,131.788 238.5,128.5 Z M 293.5,166.5 C 325.467,226.037 340.967,289.703 340,357.5C 328.725,376.595 322.725,397.262 322,419.5C 308.559,431.97 292.726,439.803 274.5,443C 249.769,448.315 225.103,448.482 200.5,443.5C 194.784,433.231 187.117,424.731 177.5,418C 167.003,408.167 158.836,396.667 153,383.5C 148.253,368.276 140.42,354.943 129.5,343.5C 141.198,292.574 159.698,244.24 185,198.5C 188.667,189.833 192.333,181.167 196,172.5C 206.625,182.812 219.291,189.146 234,191.5C 255.479,186.837 275.312,178.504 293.5,166.5 Z M 114.5,362.5 C 118.183,366.025 121.35,370.025 124,374.5C 130.687,392.216 139.687,408.549 151,423.5C 158.733,431.903 167.066,439.57 176,446.5C 184.42,457.432 187.754,469.765 186,483.5C 184.789,488.71 181.623,490.544 176.5,489C 170.565,487.891 164.731,486.391 159,484.5C 146.891,479.196 134.724,474.029 122.5,469C 106.697,468.586 91.0299,466.92 75.5,464C 71.7367,463.08 68.2367,461.58 65,459.5C 68.3952,442.726 68.2286,425.893 64.5,409C 64.8333,407.5 65.1667,406 65.5,404.5C 74.6317,401.306 83.9651,398.806 93.5,397C 101.333,394.5 106.5,389.333 109,381.5C 110.372,375.006 112.206,368.673 114.5,362.5 Z M 348.5,394.5 C 356.851,403.498 367.184,407.165 379.5,405.5C 391.243,406.608 401.743,403.608 411,396.5C 411.673,401.519 413.34,406.186 416,410.5C 425.806,419.293 435.973,427.46 446.5,435C 443.527,437.491 440.194,439.491 436.5,441C 423.45,444.526 411.45,450.192 400.5,458C 392.446,466.054 384.446,474.054 376.5,482C 367.292,487.802 357.292,490.136 346.5,489C 344.998,488.417 343.665,487.584 342.5,486.5C 341.58,483.566 340.913,480.566 340.5,477.5C 342.727,449.787 345.394,422.121 348.5,394.5 Z"/></g>
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB