Skip to content

Commit 852e619

Browse files
committed
remake using pyqt and improve the ui
1 parent f564fea commit 852e619

3 files changed

Lines changed: 767 additions & 266 deletions

File tree

build.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,8 @@
1919
for root, dirs, files in os.walk(GAMES_DIR):
2020
for file in files:
2121
file_path = os.path.join(root, file)
22-
# Archive name should be relative to keep structure
23-
# We want them at root of zip so: 3800340.lua
22+
# Archive name should be relative - flatten to root of zip
2423
zipf.write(file_path, os.path.basename(file_path))
25-
# Note: The original code expected LUA_FILES_DIR to contain the files.
26-
# We are flattening it here or keeping structure?
27-
# Original structure: All Games Files/3800340.lua
28-
# If we flatten, extraction is simpler. Let's flatten.
2924

3025
print("Starting build process...")
3126

@@ -35,10 +30,16 @@
3530
'--onefile',
3631
'--noconsole',
3732
'--clean',
38-
'--collect-all=ttkbootstrap', # Important for themes
39-
'--add-data=games_data.zip;.', # Bundle the zip, not the folder
40-
'--add-data=logo.ico;.', # Bundle icon for runtime use
41-
'--icon=logo.ico' # Set EXE file icon
33+
# PyQt6 collection
34+
'--collect-all=PyQt6',
35+
'--hidden-import=PyQt6.QtCore',
36+
'--hidden-import=PyQt6.QtGui',
37+
'--hidden-import=PyQt6.QtWidgets',
38+
# Bundle data files
39+
'--add-data=games_data.zip;.',
40+
'--add-data=logo.ico;.',
41+
# Set EXE file icon
42+
'--icon=logo.ico'
4243
])
4344

4445
print("Build complete. Executable is in 'dist' folder.")

0 commit comments

Comments
 (0)