mirror of
https://github.com/blw1138/cross-py-builder.git
synced 2025-12-17 08:38:11 +00:00
This works
This commit is contained in:
@@ -15,7 +15,7 @@ import glob
|
||||
import shutil
|
||||
import uuid
|
||||
import platform
|
||||
from zeroconf_server import ZeroconfServer
|
||||
from .zeroconf_server import ZeroconfServer
|
||||
|
||||
APP_NAME = "cross_py_builder"
|
||||
build_agent_version = "0.1.34"
|
||||
@@ -394,8 +394,7 @@ def delete_cache():
|
||||
return jsonify(job_cache()), 200
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
def main():
|
||||
print(f"===== {APP_NAME} Build Agent (v{build_agent_version}) =====")
|
||||
ZeroconfServer.configure("_crosspybuilder._tcp.local.", socket.gethostname(), app_port)
|
||||
try:
|
||||
@@ -405,3 +404,6 @@ if __name__ == "__main__":
|
||||
pass
|
||||
finally:
|
||||
ZeroconfServer.stop()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user