Optimized Dockerfile and github workflow

This commit is contained in:
2025-07-16 09:38:19 +02:00
parent 241c5c6da8
commit 2d276cfa5e
9 changed files with 257 additions and 29 deletions

19
main.py
View File

@@ -18,7 +18,24 @@ except ImportError:
def __getattr__(self, name): return ''
Fore = Back = Style = Dummy()
from cli.sounds import Sound # ensure Sound imported
_IN_DOCKER = os.path.exists('/.dockerenv')
if _IN_DOCKER:
class Quiet:
@staticmethod
def play_start_sound(): pass
@staticmethod
def play_cymais_intro_sound(): pass
@staticmethod
def play_finished_successfully_sound(): pass
@staticmethod
def play_finished_failed_sound(): pass
@staticmethod
def play_warning_sound(): pass
Sound = Quiet
else:
from utils.sounds import Sound
def color_text(text, color):