diff --git a/ClashRoyaleBuildABot.spec b/ClashRoyaleBuildABot.spec new file mode 100644 index 0000000..2cf3dc9 --- /dev/null +++ b/ClashRoyaleBuildABot.spec @@ -0,0 +1,47 @@ +a = Analysis( + ['main.py'], + binaries=[], + datas=[ + ('clashroyalebuildabot', 'clashroyalebuildabot'), + ('clashroyalebuildabot/images/cards', 'clashroyalebuildabot/images/cards'), + ('clashroyalebuildabot/images/screen', 'clashroyalebuildabot/images/screen'), + ('clashroyalebuildabot/debug/labels', 'clashroyalebuildabot/debug/labels'), + ('clashroyalebuildabot/debug/screenshots', 'clashroyalebuildabot/debug/screenshots'), + ('clashroyalebuildabot/emulator/platform-tools', 'clashroyalebuildabot/emulator/platform-tools'), + ('clashroyalebuildabot/gui', 'clashroyalebuildabot/gui'), + ('clashroyalebuildabot/models', 'clashroyalebuildabot/models'), + ('clashroyalebuildabot/namespaces', 'clashroyalebuildabot/namespaces'), + ('clashroyalebuildabot/utils', 'clashroyalebuildabot/utils') + ], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) + +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='ClashRoyaleBot', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=['clashroyalebuildabot\\images\\icon.ico'], +) diff --git a/clashroyalebuildabot/gui/layout_setup.py b/clashroyalebuildabot/gui/layout_setup.py index 51664d2..d4cef9b 100644 --- a/clashroyalebuildabot/gui/layout_setup.py +++ b/clashroyalebuildabot/gui/layout_setup.py @@ -1,3 +1,5 @@ +import os + from PyQt6.QtCore import Qt from PyQt6.QtGui import QFont from PyQt6.QtGui import QPixmap @@ -17,6 +19,7 @@ from PyQt6.QtWidgets import QVBoxLayout from PyQt6.QtWidgets import QWidget +from clashroyalebuildabot.constants import IMAGES_DIR from clashroyalebuildabot.gui.gameplay_widget import ImageStreamWindow from clashroyalebuildabot.gui.utils import save_config @@ -29,7 +32,8 @@ def setup_top_bar(main_window): logo_text_layout = QHBoxLayout() logo_label = QLabel() - logo_pixmap = QPixmap("logo.png").scaled( + + logo_pixmap = QPixmap(os.path.join(IMAGES_DIR, "logo.png")).scaled( 120, 120, Qt.AspectRatioMode.KeepAspectRatio, diff --git a/clashroyalebuildabot/images/icon.ico b/clashroyalebuildabot/images/icon.ico new file mode 100644 index 0000000..533794a Binary files /dev/null and b/clashroyalebuildabot/images/icon.ico differ diff --git a/logo.png b/clashroyalebuildabot/images/logo.png similarity index 100% rename from logo.png rename to clashroyalebuildabot/images/logo.png