From 8b8aadd911d2873e540989292605202a8eeb4b8b Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 22 Aug 2024 23:31:52 +0200 Subject: [PATCH] Introduced --debug option for build. --- src/loaih/script.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/loaih/script.py b/src/loaih/script.py index 2133a2c..2bcc386 100644 --- a/src/loaih/script.py +++ b/src/loaih/script.py @@ -59,8 +59,9 @@ def getversion(query, jsonout, default_to_current): @click.option('--updatable', '-u', is_flag=True, default=False, help="Create an updatable AppImage (compatible with zsync2). Default: not updatable") @click.option('--download-path', '-d', default='./downloads', type=str, help="Path to the download folder. Default: ./downloads") @click.option('--repo-path', '-r', default='.', type=str, help="Path to the final storage of the AppImage. Default: current directory") +@click.option('--debug', 'debug', is_flag=True, default=False, help="Activate debug options.") @click.argument('query') -def build(arch, language, offline, portable, updatable, download_path, repo_path, check, checksums, sign, keep, query): +def build(arch, language, offline, portable, updatable, download_path, repo_path, check, checksums, sign, keep, query, debug): """Builds an Appimage with the provided options.""" # Multiple query support @@ -110,7 +111,8 @@ def build(arch, language, offline, portable, updatable, download_path, repo_path appbuild.checksums() appbuild.publish() - del appbuild + if not debug: + del appbuild if not keep: shutil.rmtree(downloadpath)