Skip to content

Commit c34f553

Browse files
committed
Refactor build command to use BaseBuildCommand
Moved shared build logic from build.py to a new build_base.py, introducing BaseBuildCommand for common build functionality. Updated build.py to inherit from BaseBuildCommand instead of BaseFlutterCommand, and adjusted imports accordingly. This improves code organization and reuse for build-related CLI commands.
1 parent 4a443a6 commit c34f553

File tree

4 files changed

+2043
-1910
lines changed

4 files changed

+2043
-1910
lines changed

sdk/python/packages/flet-cli/src/flet_cli/commands/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from rich.live import Live
55
from rich.progress import Progress
66

7-
from flet_cli.commands.flutter_base import BaseFlutterCommand, console
7+
from flet_cli.commands.build_base import BaseBuildCommand, console
88

99

10-
class Command(BaseFlutterCommand):
10+
class Command(BaseBuildCommand):
1111
"""
1212
Build a Flet Python app into a platform-specific executable or
1313
installable bundle. It supports building for desktop (macOS, Linux, Windows), web,

0 commit comments

Comments
 (0)