Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion sdk/python/packages/flet/src/flet/cli/commands/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ def add_arguments(self, parser: argparse.ArgumentParser) -> None:
dest="bundle_id",
help="bundle identifier (macOS)",
)
parser.add_argument(
"--debug-console",
dest="debug_console",
help="Show python console (Ensure correct DEBUG level)",
)

def handle(self, options: argparse.Namespace) -> None:
# delete "build" directory
Expand All @@ -118,7 +123,9 @@ def handle(self, options: argparse.Namespace) -> None:
import PyInstaller.__main__
from flet.__pyinstaller.utils import copy_flet_bin

pyi_args = [options.script, "--noconsole", "--noconfirm"]
pyi_args = [options.script, "--noconfirm"]
if not options.debug_console:
pyi_args.extend(["--noconsole"])
if options.icon:
pyi_args.extend(["--icon", options.icon])
if options.name:
Expand Down