|
9 | 9 | from typing import Optional, cast |
10 | 10 |
|
11 | 11 | import flet.version |
| 12 | +import flet_cli.utils.processes as processes |
12 | 13 | import yaml |
13 | 14 | from flet.utils import cleanup_path, copy_tree, is_windows, slugify |
14 | 15 | from flet.utils.platform_utils import get_bool_env_var |
15 | 16 | from flet.version import update_version |
16 | | -from packaging import version |
17 | | -from rich.console import Console, Group |
18 | | -from rich.live import Live |
19 | | -from rich.panel import Panel |
20 | | -from rich.progress import Progress |
21 | | -from rich.style import Style |
22 | | -from rich.table import Column, Table |
23 | | -from rich.theme import Theme |
24 | | - |
25 | | -import flet_cli.utils.processes as processes |
26 | 17 | from flet_cli.commands.base import BaseCommand |
27 | 18 | from flet_cli.utils.hash_stamp import HashStamp |
28 | 19 | from flet_cli.utils.merge import merge_dict |
|
31 | 22 | get_project_dependencies, |
32 | 23 | ) |
33 | 24 | from flet_cli.utils.pyproject_toml import load_pyproject_toml |
| 25 | +from packaging import version |
| 26 | +from rich.console import Console, Group |
| 27 | +from rich.live import Live |
| 28 | +from rich.panel import Panel |
| 29 | +from rich.progress import Progress |
| 30 | +from rich.style import Style |
| 31 | +from rich.table import Column, Table |
| 32 | +from rich.theme import Theme |
34 | 33 |
|
35 | 34 | PYODIDE_ROOT_URL = "https://cdn.jsdelivr.net/pyodide/v0.27.2/full" |
36 | 35 | DEFAULT_TEMPLATE_URL = "gh:flet-dev/flet-build-template" |
@@ -1064,7 +1063,7 @@ def setup_template_data(self): |
1064 | 1063 | or ios_export_method_opts.get("team_id") |
1065 | 1064 | ) |
1066 | 1065 |
|
1067 | | - if not ios_provisioning_profile: |
| 1066 | + if self.options.target_platform in ["ipa"] and not ios_provisioning_profile: |
1068 | 1067 | console.print( |
1069 | 1068 | Panel( |
1070 | 1069 | "This build will generate an .xcarchive (Xcode Archive). To produce an .ipa (iOS App Package), please specify a Provisioning Profile.", |
@@ -1131,9 +1130,7 @@ def setup_template_data(self): |
1131 | 1130 | "target_arch": ( |
1132 | 1131 | target_arch |
1133 | 1132 | if isinstance(target_arch, list) |
1134 | | - else [target_arch] |
1135 | | - if isinstance(target_arch, str) |
1136 | | - else [] |
| 1133 | + else [target_arch] if isinstance(target_arch, str) else [] |
1137 | 1134 | ), |
1138 | 1135 | "info_plist": info_plist, |
1139 | 1136 | "macos_entitlements": macos_entitlements, |
|
0 commit comments