enhance build script and logging: add destination option to build command, log output to uploader.log, and improve artifact handling

This commit is contained in:
Ross
2025-11-24 11:34:43 +00:00
parent a8c48c12f9
commit eb061992a3
4 changed files with 65 additions and 25 deletions
+3
View File
@@ -71,6 +71,7 @@ DELETE_FILES_ON_UPLOAD = True
DEBUG = False
logging.getLogger('niceGUI').setLevel(logging.INFO)
logger.add("uploader.log", rotation="10 MB")
if DEBUG:
BASE_SITE_URL = "http://localhost:8000"
@@ -542,6 +543,7 @@ def login() -> Optional[RedirectResponse]:
return None
@logger.catch
@ui.page("/")
def main_page():
async def watch_for_shutdown():
@@ -683,6 +685,7 @@ def main_page():
ui.button("About", on_click=about_dialog.open).props("outline color=white")
@logger.catch
def launch_app(
work_dir: Path = typer.Option(WORK_DIR, help="Working directory"),
nng: bool = typer.Option(True, help="Use nng"),