1 Commits
Author SHA1 Message Date
oxpoe e0090fc1c3 feat: suite uji mencetak pesan hasil + GAMEMAX_DEBUG menyalin log ke stdout
docs: bagian Updates (pemeriksaan & pembaruan satu klik dari GitHub Releases)
versi 1.2.2
2026-10-13 07:53:51 +07:00
2 changed files with 20 additions and 3 deletions

No files matched your search

+15
View File
@@ -105,6 +105,7 @@ temperature source (Tctl vs Tccd).
- **Plug and play**: the service waits for the device, streams while present and keeps - **Plug and play**: the service waits for the device, streams while present and keeps
waiting through unplug/replug; a udev rule grants access to the logged-in user waiting through unplug/replug; a udev rule grants access to the logged-in user
- **Single instance**: launching the app again just raises the running window - **Single instance**: launching the app again just raises the running window
- **Self-update from GitHub Releases** (check + one-click update)
- **Donate / GitHub buttons** in the app (window and tray menu) - **Donate / GitHub buttons** in the app (window and tray menu)
- **AppImage build** script (`packaging/build_appimage.sh`, PySide6 bundled) - **AppImage build** script (`packaging/build_appimage.sh`, PySide6 bundled)
@@ -208,6 +209,20 @@ docs/ reverse-engineering.md — full analysis (Indonesian)
assets/ previews and icon assets/ previews and icon
``` ```
## Updates
The app keeps itself current from GitHub Releases:
- On start (when running from an AppImage) and from the **Periksa pembaruan** button or the
tray menu, it asks the GitHub API for the latest release and compares it with its version.
- When a newer release exists, a **Perbarui ke vX.Y.Z** button appears. One click downloads
the release asset, replaces the running AppImage atomically, refreshes the sender from the
new bundle and restarts the service. Restart the app to use the new version.
- Nothing is downloaded without that click, and no other files are touched.
If the check fails (offline, proxy), the message appears in the app log. `GAMEMAX_DEBUG=1`
also mirrors the log to stdout for headless runs.
## Support ## Support
If this project is useful to you: If this project is useful to you:
+5 -3
View File
@@ -30,7 +30,7 @@ from PySide6.QtWidgets import (
) )
from PySide6.QtNetwork import QLocalServer, QLocalSocket from PySide6.QtNetwork import QLocalServer, QLocalSocket
APP_VERSION = "1.2.1" APP_VERSION = "1.2.2"
REPO = "oxpoe/Gamemax-linux-apps" REPO = "oxpoe/Gamemax-linux-apps"
RELEASES_API = f"https://api.github.com/repos/{REPO}/releases/latest" RELEASES_API = f"https://api.github.com/repos/{REPO}/releases/latest"
UPDATE_ASSET = "GAMEMAX-LCD-x86_64.AppImage" UPDATE_ASSET = "GAMEMAX-LCD-x86_64.AppImage"
@@ -685,6 +685,8 @@ class Window(QWidget):
def log(self, text): def log(self, text):
self.logview.appendPlainText(text) self.logview.appendPlainText(text)
if os.environ.get("GAMEMAX_DEBUG"):
print(text, flush=True)
def warn_once(self, text): def warn_once(self, text):
if getattr(self, "_warned", None) != text: if getattr(self, "_warned", None) != text:
@@ -896,8 +898,8 @@ def _main():
("periksa pembaruan", w.do_check_update)) ("periksa pembaruan", w.do_check_update))
for name, fn in steps: for name, fn in steps:
try: try:
fn() out = fn()
print(f"[ OK ] {name}") print(f"[ OK ] {name}" + (f" — {out}" if isinstance(out, str) and out else ""))
except Exception as exc: # noqa: BLE001 except Exception as exc: # noqa: BLE001
print(f"[GAGAL] {name}: {exc}") print(f"[GAGAL] {name}: {exc}")
# jalur asinkron yang dipakai tombol: centang layar kosong + simpan # jalur asinkron yang dipakai tombol: centang layar kosong + simpan