diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aba69e5 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +build: + python -m zipapp src -m "main:main" -o rcon-client.pyz -p "/usr/bin/env python3" + +clean: + rm -rf __pycache__ + rm -f *.pyz + diff --git a/main.py b/src/main.py similarity index 98% rename from main.py rename to src/main.py index 942c549..c0016cd 100644 --- a/main.py +++ b/src/main.py @@ -12,7 +12,8 @@ GRN = '\001\x1b[0;32m\002' BLU = '\001\x1b[0;34m\002' GRY = '\001\x1b[0;37m\002' -def main(args): +def main(): + args = parse_args() RCON_ADDRESS = None if args.host: RCON_ADDRESS = args.host @@ -63,5 +64,5 @@ def main(args): if __name__ == '__main__': - main(parse_args()) + main() diff --git a/rcon.py b/src/rcon.py similarity index 100% rename from rcon.py rename to src/rcon.py diff --git a/utils.py b/src/utils.py similarity index 100% rename from utils.py rename to src/utils.py