add build step
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
@@ -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()
|
||||||
|
|
||||||
Reference in New Issue
Block a user