Initial commit to Gitea

This commit is contained in:
2026-07-07 13:56:09 +02:00
parent 0dd018bbc6
commit 631559f134
13 changed files with 4417 additions and 1915 deletions
+2 -22
View File
@@ -19,33 +19,13 @@ else:
print('requestHandler already fixed')
"
# 3. Fix mini_app.py - collecting_gui passthrough + openSettings
python3 -c "
with open('$BASE/mini_app.py') as f:
c = f.read()
# Fix collecting_gui=False -> collecting_gui
if 'site_mod.load(collecting_gui=False)' in c:
c = c.replace('site_mod.load(collecting_gui=False)', 'site_mod.load(collecting_gui=collecting_gui)')
print('Fixed collecting_gui passthrough')
else:
print('collecting_gui already fixed')
# Add openSettings to _MockAddon
if 'def openSettings' not in c:
c = c.replace(' def getAddonInfo(self, key):',
' def openSettings(self, *args, **kwargs):\n pass\n\n def getAddonInfo(self, key):')
print('Added openSettings')
with open('$BASE/mini_app.py', 'w') as f:
f.write(c)
"
# 3. mini_app.py wurde am 6.7.2026 gelöscht — app.py ist der aktive Server
# 4. Kill old server, start new
fuser -k 8765/tcp 2>/dev/null
sleep 1
cd "$BASE"
python3 mini_app.py > /tmp/server.log 2>&1 &
python3 app.py > /tmp/server.log 2>&1 &
SERVER_PID=$!
sleep 3