Skip to content

Commit 8a01d84

Browse files
committed
windows build fixes, finally works!
1 parent 8a0915c commit 8a01d84

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

socketjoy.spec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ from pathlib import Path
44
import platform
55
from PyInstaller.utils.hooks import collect_submodules
66

7+
DEBUG = False
78

89
APP = 'socketjoy'
910
block_cipher = None
@@ -59,7 +60,7 @@ if platform.system() == 'Linux':
5960
[],
6061
exclude_binaries=True,
6162
name=APP,
62-
debug=False,
63+
debug=DEBUG,
6364
bootloader_ignore_signals=False,
6465
strip=False,
6566
upx=True,
@@ -97,7 +98,7 @@ else:
9798
[f'{APP}/app.py'],
9899
pathex=[Path.cwd()],
99100
binaries=windows_data,
100-
datas=[],
101+
datas=static_files,
101102
hiddenimports=hidden_imports,
102103
hookspath=[],
103104
runtime_hooks=[],
@@ -120,7 +121,7 @@ else:
120121
a.datas,
121122
[],
122123
name=APP,
123-
debug=False,
124+
debug=DEBUG,
124125
bootloader_ignore_signals=False,
125126
strip=False,
126127
upx=True,

socketjoy/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ bidict==0.21.2
22
dnspython==1.16.0
33
evdev==1.3.0; platform_system != "Windows"
44
eventlet==0.30.0
5-
greenlet==0.4.17; platform_system != "Windows"
5+
greenlet==1.0.0
66
python-engineio==4.0.0
77
python-socketio==5.0.4
88
qrcode==6.1

socketjoy/static/js/socketjoy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (isLocal) {
3030
}, 10000);
3131

3232

33-
sock.emit("fetchstuff");
33+
sock.emit("fetch_lobby");
3434
sock.on("qrcode", (data) => {
3535
document.getElementById("qrcode").innerHTML = data.qr
3636
});

0 commit comments

Comments
 (0)