Skip to content

Commit 2017ce3

Browse files
JusterZhuclaude
andcommitted
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Directory.Build.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ImplicitUsings>enable</ImplicitUsings>
4+
<Nullable>enable</Nullable>
5+
<LangVersion>latest</LangVersion>
6+
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
7+
</PropertyGroup>
8+
</Project>

cmd.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

global.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sdk": {
3+
"version": "10.0.201",
4+
"rollForward": "latestMajor",
5+
"allowPrerelease": true
6+
}
7+
}

src/Bowl/BowlSample/.idea/.idea.BowlSample/.idea/.gitignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/Bowl/BowlSample/.idea/.idea.BowlSample/.idea/encodings.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/Bowl/BowlSample/.idea/.idea.BowlSample/.idea/indexLayout.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/Bowl/BowlSample/.idea/.idea.BowlSample/.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/Bowl/BowlSample/BowlSample.csproj

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/Bowl/BowlSample/BowlSample.sln

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/Bowl/BowlSample/Program.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)