Skip to content

Commit 95eaa9d

Browse files
committed
Update
1 parent 440eebb commit 95eaa9d

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

main.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pystray import MenuItem as item
33
from PIL import Image, ImageTk
44
import ctypes
5+
import os
56
import sys
67
import win32gui, win32con
78
import win32com.client

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
flask
22
flask_socketio
33
Flask-Minify
4+
gevent
45
python-vlc==3.0.18121
56
pygame==2.1.3.dev8
67
win10toast

setup.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
build_options = {'packages': [], 'excludes': ["cx_Freeze"], "zip_include_packages": "*", "zip_exclude_packages": "_sounddevice_data"}
33

44
import sys, os, json, shutil
5+
import time
6+
start_time = time.time()
57
sys.setrecursionlimit(10000)
68
base = 'Win32GUI' if sys.platform=='win32' else None
79
#base = 'console' if sys.platform=='win32' else None
@@ -24,7 +26,7 @@
2426
executables = executables)
2527

2628

27-
exclude_folders = ['!buttons', '.git', '.vscode', '__pycache__', 'build', 'webdeck', '%.html%WebDeck']
29+
exclude_folders = ['!buttons', '.git', '.vscode', '__pycache__', 'build', 'webdeck', '%.html%WebDeck', 'testmic']
2830

2931
script_dir = os.path.dirname(os.path.abspath(__file__))
3032
build_dir = os.path.join(script_dir, 'build')
@@ -43,4 +45,8 @@
4345
print(f'copying {item_path} -> {target_dir}')
4446

4547

46-
print('build done!')
48+
end_time = time.time()
49+
elapsed_time = end_time - start_time
50+
minutes = int(elapsed_time // 60)
51+
seconds = int(elapsed_time % 60)
52+
print(f'build done! {minutes}m{seconds}s')

templates/index.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
<div class="setting-category settings">
344344
<h1 class="config-title">Settings</h1>
345345

346-
{% if is_exe == False %}
346+
{% if is_exe == True %}
347347
<div class="setting windows-startup">
348348
<p>Start on Windows startup</p>
349349
<label for="windows-startup" class="switch">

0 commit comments

Comments
 (0)