updated makefile install and uninstall for linux
authorGeorgios Atheridis <georgios@atheridis.org>
Sun, 15 Jan 2023 06:22:49 +0000 (06:22 +0000)
committerGeorgios Atheridis <georgios@atheridis.org>
Sun, 15 Jan 2023 06:22:49 +0000 (06:22 +0000)
Makefile
appicon.png [new file with mode: 0644]
lol-announcer.desktop [new file with mode: 0644]

index f7f61bc6275dd5bd5e681450c5ee7e9e15fe77d2..fed7a3c320545d43fad339bc1d83ff21a502484c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,13 @@
 build:
-       pyinstaller cli.py --name "lol-announcer" --add-binary announcer/sounds:announcer/sounds
+       pyinstaller cli.py --name "lol-announcer" --add-binary announcer/sounds:announcer/sounds --onefile --noconsole
 
 clean:
        rm -rf lol-announcer.spec build/ dist/
+
+install:
+       install -m755 -D dist/lol-announcer /usr/local/bin/
+       install -m644 -D appicon.png /usr/local/share/icons/lol-announcer.png
+       install -m644 -D lol-announcer.desktop /usr/local/share/applications/
+
+uninstall:
+       rm /usr/local/bin/lol-announcer /usr/local/share/icons/lol-announcer.png /usr/local/share/applications/lol-announcer.desktop
diff --git a/appicon.png b/appicon.png
new file mode 100644 (file)
index 0000000..debaf14
Binary files /dev/null and b/appicon.png differ
diff --git a/lol-announcer.desktop b/lol-announcer.desktop
new file mode 100644 (file)
index 0000000..dccba94
--- /dev/null
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=0.1
+Type=Application
+Terminal=false
+Exec=/usr/local/bin/lol-announcer
+Name=LoL Announcer
+Icon=lol-announcer