From cc117cf27d280843ee724c1cd59003bedb2823b0 Mon Sep 17 00:00:00 2001 From: Bobby Date: Sun, 6 Nov 2022 02:03:32 -0500 Subject: chore: added support for building project using pyinstaller --- PKGLIST | 1 + setup.py | 6 ++++++ 2 files changed, 7 insertions(+) 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) +@click.command(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() -- cgit v1.2.3