aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-06 02:03:32 -0500
committerBobby <[email protected]>2022-11-06 02:03:32 -0500
commitcc117cf27d280843ee724c1cd59003bedb2823b0 (patch)
tree20e13391da008f094496952d40a3294ac7a08698
parentd05e429615dc1951ff75d38fd21925464b18eaaa (diff)
downloadtexty-cc117cf27d280843ee724c1cd59003bedb2823b0.tar.xz
texty-cc117cf27d280843ee724c1cd59003bedb2823b0.zip
chore: added support for building project using pyinstaller
-rw-r--r--PKGLIST1
-rw-r--r--setup.py6
2 files changed, 7 insertions, 0 deletions
diff --git a/PKGLIST b/PKGLIST
index 63bf37e..40c5585 100644
--- a/PKGLIST
+++ b/PKGLIST
@@ -4,3 +4,4 @@ click
inquirer
pyyaml
tk
+pyinstaller
diff --git a/setup.py b/setup.py
index f38fba6..9c33209 100644
--- a/setup.py
+++ b/setup.py
@@ -183,6 +183,12 @@ def sort():
cli.add_command(sort)
[email protected](help="Build the project.")
+def build():
+ logger.info("Building the project...")
+ os.system("pyinstaller --onefile --windowed --name Texty src/texty.py")
+
+cli.add_command(build)
if __name__ == "__main__":
cli()