added simple makefile. added build option.
authorGeorgios Atheridis <georgios@atheridis.org>
Sun, 15 Jan 2023 04:16:19 +0000 (04:16 +0000)
committerGeorgios Atheridis <georgios@atheridis.org>
Sun, 15 Jan 2023 04:16:19 +0000 (04:16 +0000)
Makefile [new file with mode: 0644]
announcer/constants.py
cli.py [new file with mode: 0644]
requirements.txt
setup.py

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..f7f61bc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+build:
+       pyinstaller cli.py --name "lol-announcer" --add-binary announcer/sounds:announcer/sounds
+
+clean:
+       rm -rf lol-announcer.spec build/ dist/
index 75e93734a54816745cbdbf715e728c3d7cf9a328..ced52e56d790e3c473db55460cdaa3295e9b7954 100644 (file)
@@ -36,8 +36,8 @@ SOUNDS_DIR_GLOBAL = os.path.join(os.path.dirname(__file__), "sounds/")
 
 SOUND_PACKS = dict()
 
-for dir in os.listdir(os.path.join(os.path.dirname(__file__), "sounds/")):
-    SOUND_PACKS[dir] = os.path.join(os.path.dirname(__file__), "sounds/", dir)
+for dir in os.listdir(SOUNDS_DIR_GLOBAL):
+    SOUND_PACKS[dir] = os.path.join(SOUNDS_DIR_GLOBAL, dir)
 
 for dir in os.listdir(SOUNDS_DIR_LOCAL):
     SOUND_PACKS[dir] = os.path.join(SOUNDS_DIR_LOCAL, dir)
diff --git a/cli.py b/cli.py
new file mode 100644 (file)
index 0000000..1c45a13
--- /dev/null
+++ b/cli.py
@@ -0,0 +1,4 @@
+from announcer.main import main
+
+if __name__ == "__main__":
+    main()
index 919780dadcf51fe00bc782ed16bb8d2ccbd6c666..bd699b5bc6da72dfbb4d31e62fa03d49d43c30bb 100644 (file)
@@ -1,8 +1,10 @@
-announcer==0.0.1
+altgraph==0.17.3
 audioplayer==0.6
 certifi==2022.12.7
 charset-normalizer==3.0.1
 idna==3.4
+pyinstaller==5.7.0
+pyinstaller-hooks-contrib==2022.15
 PyQt5==5.15.7
 PyQt5-Qt5==5.15.2
 PyQt5-sip==12.11.0
index 5c9a5bfcacf6293b2559f99cd56b35b65891838c..a8b696abdc4aa975c5dded875727533c2f3eff13 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
 
 setup(
     name="announcer",
-    version="0.0.1",
+    version="0.1.0",
     packages=["announcer"],
     entry_points={
         "console_scripts": [