Convenient launchers to start, pause and resume Älyverrko CLI
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 10 Jun 2025 20:11:53 +0000 (23:11 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 10 Jun 2025 20:11:53 +0000 (23:11 +0300)
install

diff --git a/install b/install
index 188e05b..a79e51d 100755 (executable)
--- a/install
+++ b/install
@@ -19,20 +19,8 @@ install_to_opt() {
 
 # Function to install the desktop launcher
 install_desktop_entry() {
-    local desktop_entry_path="/usr/share/applications/alyverkko-cli.desktop"
-
-    cat <<EOF | sudo tee "$desktop_entry_path" > /dev/null
-[Desktop Entry]
-Type=Application
-Terminal=true
-Name=Älyverkko CLI
-Comment=Runner for artificial neural network service
-Icon=/opt/alyverkko-cli/logo.png
-Exec=/opt/alyverkko-cli/alyverkko-cli mail
-Categories=Development;
-EOF
-
-    sudo chmod 644 "$desktop_entry_path"
+    sudo cp launchers/alyverkko-cli*.desktop /usr/share/applications/
+    sudo chmod 644 /usr/share/applications/alyverkko-cli*.desktop
 }
 
 # Function to install systemd service