Skip to content

Commit 9bc21e1

Browse files
committed
lower installer size
1 parent 9c416ba commit 9bc21e1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/switchcraft/gui_modern/views/intune_view.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def on_tab_change(e):
111111
def _build_packager_tab(self):
112112
self.log_view = ft.ListView(expand=True, spacing=5, auto_scroll=True)
113113

114-
self.setup_field = ft.TextField(label=i18n.get("lbl_setup_file") or "Setup File (.exe/.msi)", expand=True)
114+
self.setup_field = ft.TextField(label=i18n.get("lbl_setup_file") or "Setup File (.exe/.msi/Script)", expand=True)
115115
self.source_field = ft.TextField(label=i18n.get("lbl_source_folder") or "Source Folder", expand=True)
116116
self.output_field = ft.TextField(label=i18n.get("lbl_output_folder") or "Output Folder", expand=True)
117117
self.quiet_check = ft.Checkbox(label=i18n.get("lbl_quiet_mode") or "Quiet Mode (No UI)", value=True)
@@ -122,10 +122,9 @@ def pick_setup_file(e):
122122
if path:
123123
self.setup_field.value = path
124124
parent = os.path.dirname(path)
125-
if not self.source_field.value:
126-
self.source_field.value = parent
127-
if not self.output_field.value:
128-
self.output_field.value = parent
125+
# Always update source and output folders to match setup file location
126+
self.source_field.value = parent
127+
self.output_field.value = parent
129128
self.update()
130129

131130
def pick_folder(e, field):

switchcraft.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ a = Analysis(
9797
hookspath=[],
9898
hooksconfig={},
9999
runtime_hooks=[],
100-
excludes=['flet.testing'],
100+
excludes=['flet.testing', 'numpy', 'scipy', 'skimage', 'pandas', 'matplotlib'],
101101
win_no_prefer_redirects=False,
102102
win_private_assemblies=False,
103103
cipher=block_cipher,

0 commit comments

Comments
 (0)