Skip to content

feat(simulate): ClientGeneratorService for single-file code generation #31#34

Merged
JusterZhu merged 1 commit into
mainfrom
feat/simulate-generator
May 20, 2026
Merged

feat(simulate): ClientGeneratorService for single-file code generation #31#34
JusterZhu merged 1 commit into
mainfrom
feat/simulate-generator

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Part of #31 - Sub-Issue #3

Generates single-file C# scripts that run via dotnet-run without project files:

  • client.cs: uses GeneralUpdate.ClientCore (#r nuget:), polls server, downloads updates, launches upgrade
  • upgrade.cs: uses GeneralUpdate.Core, reads ProcessInfo env var, applies patch via Pipeline
  • Templates use Replace/string.Format for version, URL, keys, paths

No .csproj needed - just dotnet run client.cs

- Generates client.cs and upgrade.cs using #r nuget: inline references
- Client uses GeneralUpdate.ClientCore to poll for updates
- Upgrade uses GeneralUpdate.Core to apply patches
- Templates replace placeholders (version, URL, keys, paths)
- Added ServerPort to SimulateConfigModel
Copilot AI review requested due to automatic review settings May 20, 2026 15:00
@JusterZhu JusterZhu merged commit 6d7a1d8 into main May 20, 2026
1 check failed
@JusterZhu JusterZhu deleted the feat/simulate-generator branch May 20, 2026 15:01
@JusterZhu JusterZhu review requested due to automatic review settings May 20, 2026 15:24
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