Skip to content

Commit e8662a2

Browse files
committed
beta-2026.01.07-1
1 parent daeb0e3 commit e8662a2

7 files changed

Lines changed: 37 additions & 21 deletions

File tree

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
static/config.js
1+
static/config.js
2+
dist/**
3+
build/**
4+
build.py
5+
SimControl.spec

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SimControl is a web controller that transforms your device into a button interface for simulators. You can configure 35 buttons with colors, labels, and interaction rules, then control your games from your mobile/tablet via a browser.
44

5-
[![Version](https://img.shields.io/badge/version-beta--2026.01.04--2-blue)](https://github.com/liveweeeb/SimControl)
5+
[![Version](https://img.shields.io/badge/version-beta--2026.01.07--1-blue)](https://github.com/liveweeeb/SimControl)
66
[![Python](https://img.shields.io/badge/python-3.8+-green)](https://python.org)
77

88

@@ -14,10 +14,9 @@ SimControl is a web controller that transforms your device into a button interfa
1414
## 📦 Installation
1515
Python and windows required
1616

17-
1. Go to [SimControl Releases](https://github.com/liveweeeb13/SimControl/releases/tag/ALL-1)
17+
1. Go to [SimControl Releases](https://github.com/liveweeeb13/SimControl/releases)
1818
2. Download the latest release
19-
3. Run `UPDATE.exe` to install SimControl
20-
4. Launch the application (with the ``start.bat``)
19+
3. Run `SimControl.exe` to install SimControl
2120

2221
[Any problem, come talk to us ](https://github.com/liveweeeb13/SimControl?tab=readme-ov-file#-support)
2322

@@ -77,7 +76,7 @@ const rules = {
7776
| Operating System | Version | Support Status | Keyboard Control | Minimum version required |
7877
|------------------|---------|----------------|------------------|-------|
7978
| Windows | 10/11 | ✅ Fully Supported | ✅ Full Support | beta-2026.01.03-1 |
80-
| Debian | 11+ | ✅ Fully Supported | ✅ Full Support | beta-2026.01.06-1 |
79+
| Debian | 11+ | ✅ Fully Supported | ✅ Full Support | beta-2026.01.07-1 |
8180
| Other ⚠️ Not tested |
8281

8382

app.py

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222

2323
app = Flask(__name__)
2424
app.config['SECRET_KEY'] = 'jugfhuigfyhghfyghfygfgfgff4gf545g5g5h7548ù74ù'
25-
socketio = SocketIO(app, cors_allowed_origins="*")
25+
26+
# Fix for PyInstaller compatibility
27+
try:
28+
socketio = SocketIO(app, cors_allowed_origins="*", async_mode='threading')
29+
except:
30+
socketio = SocketIO(app, cors_allowed_origins="*", logger=False, engineio_logger=False)
2631

2732
# Initialize keyboard controller if available
2833
if Controller:
@@ -33,23 +38,27 @@
3338

3439
def check_version():
3540
try:
36-
with open('version.txt', 'r') as f:
37-
current_version = f.read().strip()
41+
# Try to read from file first (development mode)
42+
if os.path.exists('version.txt'):
43+
with open('version.txt', 'r') as f:
44+
current_version = f.read().strip()
45+
else:
46+
# Fallback to embedded version (executable mode)
47+
current_version = "beta-2026.01.04-2"
3848

3949
response = requests.get('https://raw.githubusercontent.com/liveweeeb13/SimControl/refs/heads/main/version.txt')
4050
latest_version = response.text.strip()
4151

4252
if current_version != latest_version:
43-
print(f"⚠️ MISE À JOUR DISPONIBLE !")
44-
print(f"Version installée: {current_version}")
45-
print(f"Dernière version: {latest_version}")
46-
print(f"Lancez UPDATE.exe pour mettre à jour")
53+
print(f"⚠️ UPDATE AVAILABLE!")
54+
print(f"Current version: {current_version}")
55+
print(f"Latest version: {latest_version}")
4756
return current_version, latest_version, True
4857
else:
49-
print(f"✅ Version à jour: {current_version}")
58+
print(f"✅ Updated version: {current_version}")
5059
return current_version, latest_version, False
5160
except:
52-
return "unknown", "unknown", False
61+
return "beta-2026.01.04-2", "unknown", False
5362

5463
current_ver, latest_ver, needs_update = check_version()
5564

@@ -181,4 +190,8 @@ def handle_keyup(data):
181190
print(f"❌ Erreur keyup: {e}")
182191

183192
if __name__ == '__main__':
184-
socketio.run(app, host='0.0.0.0', port=3001, debug=True)
193+
try:
194+
socketio.run(app, host='0.0.0.0', port=3001, debug=False)
195+
except Exception as e:
196+
print(f"Error starting server: {e}")
197+
input("Press Enter to exit...")

icon.ico

35.7 KB
Binary file not shown.

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
flask==2.3.3
2-
flask-socketio==5.3.6
1+
Flask==2.3.3
2+
Flask-SocketIO==5.3.6
33
pynput==1.7.6
44
requests==2.31.0
5-
keyboard==0.13.5
5+
pyinstaller==6.3.0
6+
eventlet==0.33.3

templates/menu.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ <h3>⚠️ Update Available</h3>
5757
<p><strong>Installed Version:</strong> <code>{{ current_version }}</code></p>
5858
<p><strong>Latest Version:</strong> <code>{{ latest_version }}</code></p>
5959
<p>A new version of SimControl is available!</p>
60-
<p>Run <code>UPDATE.exe</code> in the main directory to update.</p>
6160
</div>
6261
<div class="update-buttons">
6362
<button onclick="closeModal('updateModal')" class="update-btn-later">Later</button>

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
beta-2026.01.06-1
1+
beta-2026.01.07-1

0 commit comments

Comments
 (0)