add build step

This commit is contained in:
2026-09-05 12:49:01 -05:00
parent 0c7783309c
commit f366201a87
4 changed files with 10 additions and 2 deletions
+7
View File
@@ -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
+3 -2
View File
@@ -12,7 +12,8 @@ GRN = '\001\x1b[0;32m\002'
BLU = '\001\x1b[0;34m\002' BLU = '\001\x1b[0;34m\002'
GRY = '\001\x1b[0;37m\002' GRY = '\001\x1b[0;37m\002'
def main(args): def main():
args = parse_args()
RCON_ADDRESS = None RCON_ADDRESS = None
if args.host: if args.host:
RCON_ADDRESS = args.host RCON_ADDRESS = args.host
@@ -63,5 +64,5 @@ def main(args):
if __name__ == '__main__': if __name__ == '__main__':
main(parse_args()) main()
View File
View File