Commit Graph
68 Commits
Author SHA1 Message Date
N0VAN0M4LY be772c0cea fix(launcher): keep copy maintenance progress across tab switches 2026-12-02 20:24:30 +08:00
N0VAN0M4LY fa7f68b942 feat(launcher): use two-column About layout and add Discord link 2026-12-02 20:06:51 +08:00
N0VAN0M4LY fb7d07f4f9 feat(launcher): add About log export shortcut and runtime logging toggle
Launcher release / release (push) Waiting to run
Add a quick ZIP log export button to the About page (also bundling the latest embedded browser -browser.log while excluding player saves) and add a runtime logging toggle under Settings -> Diagnostics that controls launcher file logs, local server traffic logs, and wto_ws.log via log=0 in wto_ws.cfg. Update the v0.1.2 release note accordingly.
2026-12-02 17:41:49 +08:00
N0VAN0M4LY 2d5e268083 chore(launcher): bump version to 0.1.2 and add release note
Bump @wto/launcher to 0.1.2 in apps/launcher/package.json and package-lock.json, and add the bilingual release note in .github/release-notes/v0.1.2.md.
2026-12-02 17:23:13 +08:00
N0VAN0M4LY 66bbdf7192 fix(launcher): prevent false maintenance_location errors and log details
Exclude stray top-level wtoffline folders when scanning stock sources, block selecting a data folder that equals or contains the client folder during installation (with inline Step 3 feedback), avoid false maintenance_location blocks when an existing installation placed dataPath at an ancestor of copyPath while still protecting nested data folders and data entries, and log the specific reason and paths on every maintenance_location failure.
2026-12-02 17:10:58 +08:00
N0VAN0M4LY bf2ce539e7 feat(launcher): use version-independent rules for space-saving copies
Replace the single-version 2.61.0.43 SHA-256 hardlink manifest with declarative read-only asset rules in packages/patcher/tuning/hardlink-resources.jsonc (content/ and content.hq/ .dxp.bin and .grp archives with no minimum size cutoff). Space-saving installs and conversions now work across minor updates, and updating a space-saving client from a same-volume source preserves or creates hard links instead of detaching them into full copies.
2026-12-02 17:04:36 +08:00
N0VAN0M4LY de9ba52b85 fix(isolation): skip package validation and block official launcher spawns
Add -skip_pkg_validation to the shared offline launch arguments so aces.exe
skips the startup content/warthunder.blk file-size check, and add the
isolation/never-launch-official-launcher exe patch to NOP the os_shell_execute
call in the official launcher spawner while preserving its exit logging and
ExitProcess(1).
2026-12-02 10:18:54 +08:00
N0VAN0M4LY 82ec1c47ff feat(launcher): support signed in-place updates for portable builds 2026-12-02 09:37:05 +08:00
N0VAN0M4LY e284ea7ed6 chore(launcher): bump version to 0.1.1 and add release note
Bump @wto/launcher to 0.1.1 in apps/launcher/package.json and package-lock.json, and add the bilingual release note in .github/release-notes/v0.1.1.md.

Checked: root and launcher typechecks pass.
2026-12-02 09:21:35 +08:00
N0VAN0M4LY c55ec4ed57 fix(launcher): detect stale stock backups and distinguish missing backups on launch
Read the live executable version in inspectGameFolder instead of masking externally updated folders behind an older wtoffline/stock backup, and atomically refresh stale or unreadable backups during install, external stock import, and relocation. Log exact copy/stock/recorded versions on launch mismatches and report a dedicated launch_stock_missing error when wtoffline/stock/win64/aces.exe is missing or unreadable.

Checked: root typecheck, launcher typecheck, zh-CN/en locale key parity (616/616), and launcher electron-vite build.
2026-12-02 09:06:28 +08:00
N0VAN0M4LY 1c6f5c9fc4 feat(launcher): verify launch files and log post-exit diagnostics
Check that win64/aces.exe, wto_ws.dll, and wto_ws.cfg exist and are readable immediately before spawning the game, surfacing a dedicated error when security software removes them. On unexpected non-zero exits, log a compact read-only snapshot of hook file presence, wto_ws.log tail lines, and newly created .game_logs entries.

Checked: root typecheck, launcher typecheck, and zh-CN/en locale key parity.
2026-12-02 07:18:27 +08:00
N0VAN0M4LY cab73f92f9 feat(launcher): include client logs in diagnostics and format exit codes
Export the active client's wto_ws.log, latest .clog (bounded to 16 MiB), and a client-logs/summary.json metadata snapshot in diagnostics ZIPs without touching player saves. Log build completion, game launch arguments, PID, runtime duration, and hex-annotated Windows NTSTATUS/HRESULT exit codes in the launcher log and status bar.

Checked: root typecheck, launcher typecheck, launcher electron-vite build, and exit code formatter runtime check.
2026-12-02 07:15:37 +08:00
N0VAN0M4LY 152be6af0e feat(launcher): add configurable update mirror
Let a saved HTTPS repository serve as the fallback for launcher and adaptation pack releases. Retry downloads for the selected version and validate against the project signing key. Verified type checks, the launcher build, and a simulated primary outage.
2026-12-01 20:04:29 +08:00
N0VAN0M4LY bd7450d9a1 fix(release): support prerelease adaptation packs
Adaptation pack / release (push) Waiting to run
Include published prereleases in adaptation pack checks. Publish signed adaptation packs as prereleases and let manual workflow runs stage a draft for release notes.
2026-12-01 18:36:17 +08:00
N0VAN0M4LY b4af034756 fix(hud): show damage notices for the controlled vehicle
Keep the affected unit on the native barrel and breech notification paths. Filter only the local-host notices, using the stock current-control lookup.
2026-12-01 13:50:05 +08:00
N0VAN0M4LY 7c2e2250c3 style(i18n): remove redundant Gaijin network disclaimer from pack check hint 2026-12-01 05:25:59 +08:00
N0VAN0M4LY f182e205e3 feat(launcher): merge add-client entry and choose setup mode in wizard step 1 2026-12-01 04:39:48 +08:00
N0VAN0M4LY a0515c4ed3 feat(launcher): detect missing client folders and support relocating while keeping saves 2026-11-30 21:32:17 +08:00
N0VAN0M4LY 2820d40d87 feat(launcher): create dedicated WTOffline subfolder and default versioned client name 2026-11-30 21:13:33 +08:00
N0VAN0M4LY bfedc3d27e feat(launcher): prompt for stock source when adding patched client without backup 2026-11-30 20:59:38 +08:00
N0VAN0M4LY 53e4fe54ba style(launcher): base app and installer icons on wordmark logo 2026-11-30 20:33:39 +08:00
N0VAN0M4LY f6aaeb2ad3 refactor(i18n): replace copy terminology with client in launcher locales 2026-11-30 19:42:26 +08:00
N0VAN0M4LY c65308c477 feat(launcher): add WTOffline logo application and installer icons 2026-11-30 19:38:32 +08:00
N0VAN0M4LY cae69a6446 feat(launcher): support registering existing offline clients without copying 2026-11-30 19:32:24 +08:00
N0VAN0M4LY 7cb1011f0d feat(saves): localize battle and preset names, merge overview form and guard cache writes 2026-11-30 19:26:13 +08:00
N0VAN0M4LY e6e75d92c6 fix(saves): keep imported presets intact, cap crews to preset units and drop used-unit scan 2026-11-30 19:21:47 +08:00
N0VAN0M4LY ebb2937a38 feat(launcher): add wordmark logo, ellipsis tooltips, auto-dismiss errors and online wording
Replace the title bar text mark with the white WTOffline wordmark SVG, add a window-level floating tooltip for truncated ellipsis text, auto-dismiss and manually close global error banners, and replace retail wording with online edition terminology across both locales and isolation patch titles.
2026-11-30 16:53:04 +08:00
N0VAN0M4LY db84971823 feat(saves): add one-click online data discovery and cache cleanup
Add user-initiated read-only discovery of local online client settings, copy selected files into the offline copy's staging directory before preview/import, clear the offline client's local cache for the imported account, and refresh save summaries after import.
2026-11-30 16:51:52 +08:00
N0VAN0M4LY f39d7b05c1 fix(patch-pack): write bundled manifest and prefer newer bundled patches
Generate manifest.json for bundled patches during installer builds and ignore previously downloaded adaptation packs that are older than or equal to the bundled patch set.
2026-11-30 16:50:46 +08:00
N0VAN0M4LY c087bd886a fix(launcher): disable Steam SDK initialization
Use the game's non-Steam startup option in the shared fixed arguments. Validate the arguments in the installed development handoff.

Statically verified on the .37 and .43 clients. The guarded game run remains part of acceptance.
2026-11-30 15:23:18 +08:00
N0VAN0M4LY 31f4fedafe fix(updates): scan release channels across pages
Share a bounded release scan across channels and compare tag versions across pages. Report uncertainty when the scan hits its limit without confirming a newer release.

Verified with local release responses covering cross-page versions, truncation, and missing feeds.
2026-11-30 15:23:18 +08:00
N0VAN0M4LY 5a78b1fdf8 fix(copies): honor confirmed Steam locations
Bind confirmation to the selected copy and data paths throughout installation, launch, and maintenance. Validate redirected runtime data paths and recheck original files before refreshing an in-place backup.

Verified by type checking and build. The acceptance checklist covers directory links and Steam confirmation.
2026-11-30 15:23:17 +08:00
N0VAN0M4LY 84158f719d fix(launcher): report game exits separately
Keep successful process creation separate from exit status. Report the exit code and game log directory when the process exits abnormally.

Verified by type checking and launcher build. The guarded game exit remains part of acceptance.
2026-11-30 15:23:15 +08:00
N0VAN0M4LY b3a30c0fd9 fix(launcher): enable standard game launch
Remove the development gate from the launcher and keep the guarded development handoff available.

Verified by type checking, Windows packaging, and opening the packaged launcher with a temporary profile.
2026-11-30 15:23:15 +08:00
N0VAN0M4LY 746b74c564 feat(updates): verify and install launcher releases
Check the versioned release channel, verify the signed manifest and installer digest, and open the installer only after confirmation.

Verified type checks, the Windows package, and an upgrade handoff from a local release fixture, including tampering and interrupted downloads.
2026-11-30 11:12:44 +08:00
N0VAN0M4LY a0beedd898 feat(agreement): show and record the WTOffline terms
Require explicit acceptance in the existing game dialog and retain the accepted version in the local account profile.

Verified full Quirrel compilation for .37 and .43, a temporary .43 build, and the launcher checks.
2026-11-30 10:44:42 +08:00
N0VAN0M4LY 1e3843b7e9 feat(decals): import a decal cache for each copy
Store the chosen cache in the copy data directory and use it for future builds. Restore the placeholder index when the copy has no available cache.

Verified type checks, the launcher build, a temporary .43 build, and the import and replacement flow from the Windows package.
2026-11-30 09:59:14 +08:00
N0VAN0M4LY 10839f050f feat(installer): package the Windows launcher and runtime
Ship the Electron workers, local server sources, native library, and bundled patch set in the Windows installer.

Verified type checks, build, and the extracted installer payload with a temporary copy, local save, and server health check.
2026-11-30 09:49:43 +08:00
N0VAN0M4LY c1dea23955 feat(launcher): implement gated standard launch
Build the selected copy for its port, wait for the local server, and manage the game and server lifecycles. Keep standard launch disabled pending isolation verification.

Verified both type checks, the launcher build, and the launch lifecycle against a temporary copy and a stand-in executable.
2026-11-30 09:40:58 +08:00
N0VAN0M4LY 2a97b0d46c feat(copies): add verified space-saving copies
Offer same-volume hard links for sampled 2.61.0.43 resources after checking their content and keeping mutable files independent. Support converting existing copies and detach registered links during version updates.
2026-11-30 05:51:22 +08:00
N0VAN0M4LY a940861295 fix(launcher): keep install requirement labels on one line
Size the home page requirement label column to its longest label so the installation requirements fit on one line in Chinese and English.
2026-11-30 04:56:13 +08:00
N0VAN0M4LY 5d1d7001b8 feat(saves): edit account levels and avatars
Read rank thresholds and available avatar artwork from the selected copy. Persist avatar selections in the player profile and preserve free research points when a level changes.
2026-11-29 18:19:05 +08:00
N0VAN0M4LY d043a8f0f8 feat(accounts)!: require explicit local account registration
Open the local signup page in the game's embedded browser before sign-in. Return the existing login error for unknown accounts or invalid passwords.

BREAKING CHANGE: First-time players must register in the game's signup window or create a save in the launcher before signing in. Existing accounts can sign in with their saved credentials.
2026-11-29 18:00:21 +08:00
N0VAN0M4LY d20b7f4249 feat(saves): edit local save nicknames and premium days
Let the launcher update a save's account nickname and replace or clear its remaining premium time. Reuse registration validation and preserve the existing login and password hash.
2026-11-29 17:41:46 +08:00
N0VAN0M4LY 02e05b07dc docs(patch-pack): reference the public version record implementation 2026-11-29 16:35:46 +08:00
N0VAN0M4LY a8678445c0 fix(launcher): report whether a game version is verified
Patches locate themselves in each game build, so nothing is chosen per
game version: a version without a check record is installed with every
patch tried, and the copy's patch check says which features work. The
pages showed an "adaptation version" and, for an unchecked version, the
nearest checked one as if its patches were used. They now show whether
the version is verified, and say that an unverified one still tries
every patch.
2026-11-29 16:34:54 +08:00
N0VAN0M4LY b984f40087 feat(patch-pack): show adaptation pack updates in the launcher
- IPC patches:active / check / apply / useBundled and the event
  patch-set-changed; installing or reverting is refused while a copy is
  being maintained, since a build reads the patch set as it runs.
- Setting checkPatchPacksOnStart (on by default): the window checks once
  when it opens and stays quiet when the check fails.
- The footer shows an available pack at the right end and leads to the
  About page, which shows the patch set in use, checks on request, and
  downloads and activates a pack only when the player clicks for it;
  a pack that needs a newer offline version, or a failed check, is
  explained there. Supported game versions follow the active set.
- Chinese and English text.
2026-11-29 16:32:13 +08:00
N0VAN0M4LY 893d60854f feat(tuning): configure tuning for each game copy 2026-11-29 16:24:21 +08:00
N0VAN0M4LY 61255f5473 feat(saves): edit research branches in local saves 2026-11-29 16:16:42 +08:00
N0VAN0M4LY f5c5377d44 feat(patch-pack): publish signed adaptation packs and install them locally
An adaptation pack is the patch set (exe, GUI, native definitions and
version records) released on its own, so a new game build can be adapted
without a new offline version. It is a zip with a manifest, signed with
Ed25519, published as a GitHub release tagged patches-<YYYY.MM.DD[.N]>.

- packages/patcher/src/patch-pack: manifest and version numbers, zip
  writing and reading with path and size checks, signatures, a check that
  a patch set reads as a whole; tuning/patch-pack.jsonc holds the
  repository and the limits.
- scripts/generate-patch-signing-key.ts writes the public key for the
  repository and the private key outside it; scripts/build-patch-pack.ts
  packs only committed files and signs with PATCH_SIGNING_KEY.
- .github/workflows/patch-pack.yml packs, signs and publishes on a
  patches-* tag or a manual run.
- Launcher main process: find the newest pack release, download, verify,
  unpack into user data and make it active; resource paths use the
  active pack when it is usable (a repository checkout only with
  WTO_USE_PATCH_PACK=1). The pages that show and start this come later.
2026-11-29 16:08:37 +08:00