Commit Graph
18 Commits
Author SHA1 Message Date
Claude ff7f193580 Merge main (1.3.172 microphone); macOS update fix becomes 1.3.173
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CTvq68YWzbEc9Yj9uKXSsM
2026-10-03 06:47:51 +00:00
Claude 940201e076 macOS app: verify HTTPS with bundled root certificates, show failed update checks (1.3.172)
The app's built-in Python looked for root certificates in the build
machine's Python folder, so every update check failed verification and no
notice appeared. Windows and macOS programs now bundle certifi and add it
(and macOS /etc/ssl/cert.pem) to the default store for the update check,
the language model and live traffic. A failed check now shows its reason
on the start screen and main menu; U checks again. CI runs --tls-self-test
on both programs, on macOS with OpenSSL's default paths pointed nowhere.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CTvq68YWzbEc9Yj9uKXSsM
2026-10-03 06:43:52 +00:00
Claude 44181d86b4 Make the noise-discipline microphone work on uConsole, Windows, macOS and in the browser (1.3.169)
The SDL capture was opened with devicename=None, which pygame 2.6 refuses,
so the microphone never opened. It now opens the default input, names the
cause when it cannot (status message, Options page 2), the macOS app asks
for microphone access and the builds self-test the capture. The crew page
on plain HTTP shows why the browser refuses the microphone and offers the
host's HTTPS page.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B6UodrzZBT8W5pCsacEDpH
2026-10-03 05:43:30 +00:00
Claude 124fd51a8f Add a macOS app built and released like the Windows program
The release workflow (windows.yml) now also builds U-Jagd.app with
PyInstaller (packaging/macos) natively for arm64 (macos-latest) and
x86_64 (macos-15-intel), since pygame and NumPy publish no universal2
wheels, self-tests it (mission + Remote Crew, the bundle swap, and the
zip as the in-game updater unpacks it) and zips it with ditto as
U-Jagd-macOS-<arch>.zip. A single final publish job creates the release
and uploads the Windows exe and both zips, then prunes older releases,
so the builds never race.

The frozen macOS app updates itself: it downloads the zip for its
processor (size and SHA-256 checked), unpacks it safely beside the
bundle (confined paths and links, bounded size, modes 755/644) into
<app>.update, and a detached sh script swaps the bundle after the game
quits (old bundle renamed aside, restored on failure, deleted only once
the new one is in place) and reopens it. Translocated or unwritable
bundles open the release page. ~/.u-jagd is never touched.

Remote Crew on macOS: SIOCGIFADDR is Linux-only, so the LAN address now
comes from the routing table there (and whenever no private interface
address was found).

README (EN/DE) gains a macOS app section with the first-start step;
the quickstart manual chapter mentions the macOS update.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KBWAva5Bhs5KJy75vSJDRT
2026-10-02 23:45:13 +00:00
Claude afcd2f0aea Merge origin/main (in-game update notice) into item3
The Tk starter stays deleted: the frozen game installs updates itself
("windows" mode); src/launcher/entry.py takes over the starter's
UPDATE_EXIT_CODE hand-over (fetch <exe>.new if missing, launch_install).
main.py keeps --multiplayer and passes mode None to start_update_check;
launcher.* catalog keys stay removed next to the new update.* keys.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CdekJguPyu1j8yasw3BYWx
2026-09-30 11:33:05 +00:00
Claude 3652ddf4ca Start straight into the game: --multiplayer flag, no Windows starter window
- main.py: one --multiplayer flag opens the multiplayer lobby after the
  splash, as the main-menu entry does; --remote-crew stays as a hidden
  alias, --solo-crew as a hidden advanced flag (the only way into solo
  mode); --play-sub and --status-file are removed.
- Windows: U-Jagd-Windows.exe runs main.main() directly (a leading --game
  is ignored), removes a stale <exe>.new first, passes the game's exit code
  through and runs update.launch_install on update.UPDATE_EXIT_CODE when a
  downloaded <exe>.new exists. The Tk starter (src/launcher/app.py), its
  GUI self-test, tests and all launcher.* catalog keys are gone; the
  PyInstaller spec excludes tkinter.
- CommanderConsole no longer writes a launcher status file.
- README usage sections, coop docs, manual (EN/DE) and AGENTS.md updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CdekJguPyu1j8yasw3BYWx
2026-09-30 11:27:57 +00:00
Claude 1d789a8812 Hotspot: keep name and password, installer sets it up, two QR steps
The privileged helper now makes the hotspot's SSID and password once and
keeps them root-only in /var/lib/u-jagd/hotspot.json (0700 dir, 0600 file,
atomic temp+fsync+replace, symlinks never followed, strict validation,
regenerated when missing or invalid), so phones that joined once reconnect.
A new "new-password" helper subcommand (same lock, pkexec/polkit path)
renews the password and keeps the name; F9 shows it as the advanced row
"New hotspot password" while multiplayer is off.

install.sh installs the hotspot helper when NetworkManager and wlan0 exist
and sudo works; otherwise it prints a note and finishes the install.

On the hotspot, F9 and the multiplayer lobby show step 1 (Wi-Fi QR, name,
password) and step 2 (page QR, join code) together. Manual, install docs
and EN/DE catalogs updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CdekJguPyu1j8yasw3BYWx
2026-09-30 11:06:47 +00:00
Claude 8193aecdd7 Merge main (1.3.109); release the update notice as 1.3.110
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CEADLRpscFv2uwPMFgJ58V
2026-09-30 10:58:15 +00:00
Claude bc68623936 Merge main (1.3.108); release the update notice as 1.3.109
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CEADLRpscFv2uwPMFgJ58V
2026-09-30 10:33:03 +00:00
Claude 014fd8077f Show new releases on the start screen; install only on Update now (1.3.107)
Updates are no longer installed automatically. The game asks GitHub once at
launch; a newer release appears on the splash and in the main menu with its
changelog entry in the game language, a warning when the save format
changes, and an Update now button (key U). The uConsole launcher updates
only through 'u_jagd_updater.py install' after the game closes and retires
the old background timer; the Windows program downloads and swaps its exe
from inside the game.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CEADLRpscFv2uwPMFgJ58V
2026-09-30 10:30:20 +00:00
Claude 9a56c8bb07 Skip the uConsole update check when offline (1.3.26)
A threaded TCP probe to github.com:443 (or the HTTPS proxy) decides within
2.5 s, even when name resolution hangs; offline, the launcher skips the
whole update check and starts the game at once. git network calls run with
a 60 s timeout, no credential prompt and a low-speed abort.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Usz3QPsVzhkfkA3GrLaH4i
2026-09-28 12:59:36 +00:00
Claude 51aee3a3ec uConsole start window and single-instance start (1.3.19)
The launcher now opens a small start window at once that shows the current
step (checking/downloading/installing the update, starting) and closes when
the game presents its first frame (the game closes the inherited pipe via
src/core/launch_signal.py). The lock file names its holder, so a second
start while U-Jagd is starting or running shows "already running" instead
of opening the game twice, and a start during the background update waits.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Usz3QPsVzhkfkA3GrLaH4i
2026-09-28 11:39:05 +00:00
Claude adf7abe3b8 Merge main (installer 1.3.10); Windows program becomes 1.3.11
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Nnvw4QEQCCWoLWoB9ba6h
2026-09-28 09:39:17 +00:00
Claude e15489118a Merge main (uConsole installer 1.3.9); Windows program becomes 1.3.10
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Nnvw4QEQCCWoLWoB9ba6h
2026-09-28 09:37:57 +00:00
Claude a5f33e547d Installer: update a checkout that predates it (1.3.10)
An existing ~/games/u-jagd older than 1.3.9 has no u_jagd_updater.py, so
install.sh stopped with "can't open file". It now fast-forwards such a
checkout to main first (only on branch main, never over local changes).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Usz3QPsVzhkfkA3GrLaH4i
2026-09-28 09:35:52 +00:00
Claude 1643720df9 Windows program: starter, Remote Crew autostart and self-update (1.3.9)
U-Jagd-Windows.exe (PyInstaller) opens a starter window that launches the
game with Remote Crew already listening on the PC's private LAN address
(crew or solo mode, optionally as the submarine), shows URL, join code and
QR code, and offers newer GitHub releases (size and SHA-256 checked,
self-replacing). The game gains --remote-crew and --status-file, and finds
its LAN address without Linux ioctls through the routing table. A workflow
builds and self-tests the program on windows-latest for every push and PR
and publishes release v<APP_VERSION> on main.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Nnvw4QEQCCWoLWoB9ba6h
2026-09-28 09:28:30 +00:00
Claude c0931c0b98 uConsole installer with automatic updates (1.3.9)
One-command installer (curl ... | sh) for the uConsole: clones or adopts
~/games/u-jagd, creates the venv, a menu entry, a desktop shortcut, the
u-jagd command and a systemd user timer. Every start first updates to the
newest GitHub release (tag vX.Y.Z, same source as the Windows starter),
falls back to origin/main without releases, starts the installed version
offline, and rolls back a version whose main.py --version fails.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Usz3QPsVzhkfkA3GrLaH4i
2026-09-28 09:28:23 +00:00
db9979 3b3753cf4e Initial Release v1.0.0 2026-09-23 12:10:58 +02:00