diff --git a/BiogasControllerApp.spec b/BiogasControllerApp.spec index 0ce1623..d177d06 100644 --- a/BiogasControllerApp.spec +++ b/BiogasControllerApp.spec @@ -1,5 +1,6 @@ # -*- mode: python ; coding: utf-8 -*- from kivy_deps import sdl2, glew +from kivymd import hooks_path as kivymd_hooks_path block_cipher = None @@ -10,7 +11,7 @@ a = Analysis( binaries=[], datas=[], hiddenimports=[], - hookspath=[], + hookspath=[kivymd_hooks_path], hooksconfig={}, runtime_hooks=[], excludes=[], diff --git a/biogascontrollerapp.py b/biogascontrollerapp.py index df9e6e4..46b4a10 100644 --- a/biogascontrollerapp.py +++ b/biogascontrollerapp.py @@ -28,7 +28,7 @@ print( ━━━━━━━━━━━┏━┛┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┃┃━━┃┃━━ ━━━━━━━━━━━┗━━┛━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┗┛━━┗┛━━ - Version 3.2.1 + Version 3.2.2 => Initializing.... """ @@ -36,6 +36,9 @@ print( # Load the config file import time +import sys + +from kivy.resources import resource_add_path from util.config import read_config, set_verbosity, str_to_bool verbose = str_to_bool(read_config("Dev", "verbose", "False", type_to_validate="bool")) @@ -186,7 +189,7 @@ class BiogasControllerApp(MDApp): print("\n", "-" * 20, "\n") self.icon = "./BiogasControllerAppLogo.png" - self.title = "BiogasControllerApp-V3.2.1" + self.title = "BiogasControllerApp-V3.2.2" self.screen_manager.add_widget(HomeScreen(com, name="home")) self.screen_manager.add_widget(MainScreen(com, name="main")) self.screen_manager.add_widget(ProgramScreen(com, name="program")) @@ -205,10 +208,12 @@ if __name__ == "__main__": # Start the application try: + if hasattr(sys, '_MEIPASS'): + resource_add_path(os.path.join(sys._MEIPASS)) BiogasControllerApp().run() except Exception as e: print("Failed to run BiogasControllerApp!") if verbose: print(e) - time.sleep(5) + input("Press enter to continue.") print("\n => Exiting!") diff --git a/changelog b/changelog index c06be17..9102514 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,7 @@ ***CHANGELOG*** +V3.2.2 +- Fix issues with Windows distributable: kivymd build + V3.2.1 - Fix issue with Windows distributable: kivymd not found diff --git a/gui/home/home.kv b/gui/home/home.kv index 084125e..0109928 100644 --- a/gui/home/home.kv +++ b/gui/home/home.kv @@ -40,7 +40,7 @@ on_release: root.quit() MDLabel: - text: "You are running version V3.2.1" + text: "You are running version V3.2.2" font_size: 13 pos_hint: {"y": -0.45, "x":0} halign: 'center'