Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit 60d2056

Browse files
authored
Add files via upload
1 parent baf6f13 commit 60d2056

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

modules/batch_mode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919

2020
IS_FROZEN = getattr(sys, "frozen", False)
21+
hide_completion_window: bool = False
2122

2223
icon_path_extension: str = os.path.join("resources", "favicon.ico")
2324
icon_path: str | None = os.path.join(Directory.root(), icon_path_extension)
@@ -169,11 +170,13 @@ def run(mod_folder_path: str, root: Optional[ctk.CTk] = None) -> None:
169170

170171

171172
def worker(mods_to_check: list[str], window: ProgressWindow, exception_queue: queue.Queue) -> None:
173+
global hide_completion_window
172174
try:
173175
if not mods_to_check:
174176
logger.info("No compatible mods found!")
175177
window.close()
176178
messagebox.showinfo(ProjectData.NAME, "No compatible mods found!")
179+
hide_completion_window = True
177180
return
178181

179182
latest_version: str = get_latest_version("WindowsPlayer")
@@ -182,6 +185,7 @@ def worker(mods_to_check: list[str], window: ProgressWindow, exception_queue: qu
182185
logger.info("No mod updates found!")
183186
window.close()
184187
messagebox.showinfo(ProjectData.NAME, "No mod updates found!")
188+
hide_completion_window = True
185189
return
186190

187191
mod_updater.update_mods(check, latest_version, Directory.updated_mods())

modules/bloxstrap_mode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717

1818
IS_FROZEN = getattr(sys, "frozen", False)
19+
hide_completion_window: bool = False
1920

2021
icon_path_extension: str = os.path.join("resources", "favicon.ico")
2122
icon_path: str | None = os.path.join(Directory.root(), icon_path_extension)
@@ -158,6 +159,7 @@ def run(root: Optional[ctk.CTk] = None) -> None:
158159

159160

160161
def worker(window: ProgressWindow, exception_queue: queue.Queue) -> None:
162+
global hide_completion_window
161163
try:
162164
localappdata: str | None = os.getenv("LOCALAPPDATA")
163165
if not localappdata:
@@ -168,6 +170,7 @@ def worker(window: ProgressWindow, exception_queue: queue.Queue) -> None:
168170
logger.info("No such file or directory: info.json")
169171
window.close()
170172
messagebox.showinfo(ProjectData.NAME, "Incompatible mod!\nFile not found: info.json")
173+
hide_completion_window = True
171174
return
172175

173176
latest_version: str = get_latest_version("WindowsPlayer")
@@ -176,6 +179,7 @@ def worker(window: ProgressWindow, exception_queue: queue.Queue) -> None:
176179
logger.info("No mod updates found!")
177180
window.close()
178181
messagebox.showinfo(ProjectData.NAME, "No mod updates found!")
182+
hide_completion_window = True
179183
return
180184

181185
mod_updater.update_mods(check, latest_version, os.path.dirname(bloxstrap_mods_folder))

modules/functions/mod_updater/update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def worker(mod_studio_version: str, mods: list, latest_player_version: str, late
131131
)
132132

133133
print("Finishing mod update . . .")
134-
shutil.rmtree(os.path.join(output_dir, mod), ignore_errors=True)
135-
os.makedirs(os.path.join(output_dir, mod), exist_ok=True)
134+
shutil.rmtree(os.path.join(output_dir, os.path.basename(mod)), ignore_errors=True)
135+
os.makedirs(os.path.join(output_dir, os.path.basename(mod)), exist_ok=True)
136136
shutil.copytree(
137137
os.path.join(temp_directory, os.path.basename(mod)),
138138
os.path.join(output_dir, os.path.basename(mod)),

modules/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class ProjectData:
22
NAME: str = "Kliko's modding tool"
3-
VERSION: str = "1.3.2"
3+
VERSION: str = "1.3.3"
44
DESCRIPTION: str = "Roblox mods made easy"
55
AUTHOR: str = "TheKliko"
66

modules/normal_mode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919

2020
IS_FROZEN = getattr(sys, "frozen", False)
21+
hide_completion_window: bool = False
2122

2223
icon_path_extension: str = os.path.join("resources", "favicon.ico")
2324
icon_path: str | None = os.path.join(Directory.root(), icon_path_extension)
@@ -162,11 +163,13 @@ def run(mod_path: str, root: Optional[ctk.CTk] = None) -> None:
162163

163164

164165
def worker(mod_path: str, window: ProgressWindow, exception_queue: queue.Queue) -> None:
166+
global hide_completion_window
165167
try:
166168
if not os.path.isfile(os.path.join(mod_path, "info.json")):
167169
logger.info("No such file or directory: info.json")
168170
window.close()
169171
messagebox.showinfo(ProjectData.NAME, "Incompatible mod!\nFile not found: info.json")
172+
hide_completion_window = True
170173
return
171174

172175
latest_version: str = get_latest_version("WindowsPlayer")
@@ -175,6 +178,7 @@ def worker(mod_path: str, window: ProgressWindow, exception_queue: queue.Queue)
175178
logger.info("No mod updates found!")
176179
window.close()
177180
messagebox.showinfo(ProjectData.NAME, "No mod updates found!")
181+
hide_completion_window = True
178182
return
179183

180184
mod_updater.update_mods(check, latest_version, Directory.updated_mods())

0 commit comments

Comments
 (0)