Commit 2017ce3
feat: unified sample hub — consolidate all samples into a single interactive CLI
Consolidate all 9 individual sample projects into a single Hub console
application with an interactive menu. Each sample demonstrates a different
GeneralUpdate component API end-to-end.
**New:**
- src/Hub/ — unified sample launcher with interactive menu
- src/Hub/Samples/ — all 9 samples as ISample implementations
- src/Hub/AppConfig.cs — JSON configuration model
- src/Hub/appsettings.json — server & product configuration
- src/Run.cmd / src/Run.ps1 — one-click launcher scripts
- src/gen_packages.ps1 — test package generator
- src/content_client/ — test data for Differential sample
- src/content_upgrade/ — test data for Upgrade packages
- src/content/ — intermediate version test data
- Directory.Build.props — shared build properties
- global.json — .NET 10 SDK pinning
**Samples & their GeneralUpdate API usage:**
1. CompleteUpdate — GeneralUpdateBootstrap (AppType.Client)
2. SilentUpdate — GeneralUpdateBootstrap (AppType.Client, silent)
3. OSS — GeneralUpdateBootstrap (AppType.OssClient)
4. Differential — DiffPipelineBuilder + BsdiffDiffer
5. Push — UpgradeHubService (SignalR push client)
6. Bowl — BowlContext (process monitor/dump)
7. Extension — GeneralExtensionHost (plugin system)
8. Drivelution — GeneralDrivelution (driver management)
9. Compress — CompressProvider (zip compress/decompress)
**Removed:** old individual sample projects (Bowl, Client, Compress,
Diff, Drivelution, Extension, OSS, Push, Upgrade) — all consolidated
under src/Hub/.
**Fixed:**
- Removed unnecessary PackageReferences already provided by ASP.NET Core
- Added OperatingSystem.IsWindows() guard in DrivelutionSample (CA1416)
- Cleaned up unused GuLibsPath property in Directory.Build.props
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9ab58eb commit 2017ce3
120 files changed
Lines changed: 2150 additions & 2065 deletions
File tree
- src
- Bowl/BowlSample
- .idea/.idea.BowlSample/.idea
- Client
- .idea/.idea.ClientSample/.idea
- Compress/CompressSample
- .idea/.idea.CompressSample/.idea
- Diff
- .idea/.idea.DiffSample/.idea
- Drivelution/DrivelutionSample
- Extension/ExtensionSample
- Hub
- Samples
- libs
- Applications
- Linux
- Windows
- OSS
- .idea/.idea.OSSSample/.idea
- OSSClientSample
- .idea/.idea.OSSClientSample/.idea
- OSSUpgradeSample
- .idea/.idea.OSSUpgradeSample/.idea
- Push
- .idea/.idea.PushSample/.idea
- Server/wwwroot/packages
- Upgrade
- .idea/.idea.UpgradeSample/.idea
- inspectionProfiles
- .vs/UpgradeSample/v17
- content_client
- v1.0.0.0
- config
- v2.0.0.0
- config
- dotnet10_scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 0 additions & 8 deletions
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments