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)