Skip to content

Commit

Permalink
audio reqs for win
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Land committed Jun 3, 2020
1 parent 4db29f7 commit dc22aa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions katrain/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# first, logging level lower
import os
os.environ["KCFG_KIVY_LOG_LEVEL"] = os.environ.get("KCFG_KIVY_LOG_LEVEL", "warning")
os.environ['KIVY_AUDIO'] = "sdl2" # force working audio

# next, icon
from katrain.core.utils import find_package_resource # isort:skip
Expand Down
5 changes: 3 additions & 2 deletions spec/KaTrain.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- mode: python ; coding: utf-8 -*-
from kivy_deps import sdl2, glew
from kivy_deps import sdl2, glew, gstreamer
from kivymd import hooks_path as kivymd_hooks_path

block_cipher = None
Expand All @@ -14,6 +14,7 @@ a = Analysis(
datas=[
("..\\katrain\\gui.kv", "katrain"),
("..\\katrain\\popups.kv", "katrain"),
("..\\katrain\\beep.wav", "katrain"),
("..\\katrain\\config.json", "katrain"),
("..\\katrain\\KataGo", "katrain\\KataGo"),
("..\\katrain\img", "katrain\\img"),
Expand Down Expand Up @@ -85,7 +86,7 @@ for console, name in console_names.items():
strip=False,
upx=True,
name=name,
console=False,
console=console,
icon="C:\\icon.ico",
)

0 comments on commit dc22aa8

Please sign in to comment.