Skip to content

fix(installer): support trimmed publishing and widen the GUI - #5

Merged
hzqst merged 1 commit into
mainfrom
fix/installer-trimming-window-width
Oct 5, 2026
Merged

hzqst merged 1 commit into
mainfrom
fix/installer-trimming-window-width

Conversation

@hzqst

@hzqst hzqst commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Enable trimmed CLI publishing with single-file compression disabled, and widen the GUI from 800 to 960 logical pixels to give the folder buttons more room.

Trimming disables reflection-based JSON serialization, which previously made -describe-target fail at runtime. Write the same three JSON fields with Utf8JsonWriter so target queries continue to work in the trimmed executable. Update standalone CI and the documented aggregate publish commands; the standalone GUI profile already enables trimming.

Validation:

  • Reproduced the target-query failure before the fix, both in the published trimmed CLI and with reflection-based JSON serialization disabled in the regression run.
  • All 33 file-system regression cases pass with reflection-based JSON serialization disabled after the fix.
  • Published trimmed CLI passes help, target query, and install/uninstall checks against isolated game fixtures, including shortcut creation.
  • Aggregate-style trimmed GUI publishes and starts with a responsive window.
  • git diff --check passes.

Local size comparison (MiB; each 7z contains only its EXE, using identical default 7z settings):

Artifact Previous settings New settings
GUI EXE 119.46 38.36
GUI 7z 32.49 10.65
CLI EXE 33.58 11.84
CLI 7z 27.17 3.77

Draft pending validation: local builds used SDK 9.0.318 targeting .NET 8; CI SDK 8 and the standalone NativeAOT publishing path have not been validated locally. GUI trimming still emits ReactiveUI, theme-library, and COM warnings. Full GUI interactions and the widened button layout require manual checking before release. Aggregate CI settings and its submodule pointer are updated in a companion MetaHookSv PR.

@hzqst
hzqst marked this pull request as ready for review October 5, 2026 15:44
@hzqst
hzqst merged commit 4211c97 into main Oct 5, 2026
@hzqst
hzqst deleted the fix/installer-trimming-window-width branch October 7, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant