MattEland.HopeLab.Common 0.1.24

There is a newer version of this package available.
See the version list below for details.
dotnet add package MattEland.HopeLab.Common --version 0.1.24
                    
NuGet\Install-Package MattEland.HopeLab.Common -Version 0.1.24
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MattEland.HopeLab.Common" Version="0.1.24" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MattEland.HopeLab.Common" Version="0.1.24" />
                    
Directory.Packages.props
<PackageReference Include="MattEland.HopeLab.Common" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MattEland.HopeLab.Common --version 0.1.24
                    
#r "nuget: MattEland.HopeLab.Common, 0.1.24"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MattEland.HopeLab.Common@0.1.24
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MattEland.HopeLab.Common&version=0.1.24
                    
Install as a Cake Addin
#tool nuget:?package=MattEland.HopeLab.Common&version=0.1.24
                    
Install as a Cake Tool

MattEland.HopeLab.Shared

Shared .NET libraries and release tooling for the HopeLab desktop apps (OneRing, Hymnal), so every app installs, releases and updates the same way.

Package (nuget.org) What it is
MattEland.HopeLab.Common Result<T> and Unit, a clock abstraction (IClock), atomic file writes, an app's settings file (SettingsFile, one JSON object merged key by key), and parsing a typed server address (ServerAddress)
MattEland.HopeLab.Git The git CLI wrapper: porcelain v2 status, worktrees, merge preview, commit graph layout, fetch/pull/rebase, per-repo write lock
MattEland.HopeLab.Updates Updates from GitHub releases: latest.json, version checks, GitHub tokens for private repos, verified downloads, in-place file swap with rollback, Debian-package installs (AppUpdater, AppUpdateService)
MattEland.HopeLab.Updates.ReactiveUI UpdatesViewModel: the check timer, banner, tray text, Settings status and token handling every app shows the same way
MattEland.HopeLab.Themes The shared themes for Avalonia: one resource dictionary per theme (Lab.* keys), ThemeCatalog, the faces they use, and the same themes as CSS under css/ for web clients. Generated from tokens/
MattEland.HopeLab.Avalonia The UI the Avalonia apps share: ThemeService (applies a shared theme, tints Fluent, takes an app's own themes and keys), the base LabStyles, ViewModelBase and a registration-based ViewLocator, notices (NoticeList, NoticeHost), and a Settings page with a theme section that apps add their own sections to. No Avalonia.Desktop, so it runs on Android
MattEland.HopeLab.Avalonia.Connect The connect flow for apps that talk to a server: start-up check of the saved address, a connect screen with the app's presets, a hand-over to the app's own sign-in, and an offline screen with Try again. The app supplies an IServerOpener
MattEland.HopeLab.Themes.Tokens The theme token model: the contract, theme files, contrast and ΔE maths, and the CSS and Avalonia generators

All target .NET 10. Common, Git, Updates and both theme packages are NativeAOT-compatible. Versions are 0.1.<commits on main>: every merge to main publishes.

Release tooling What it is
.github/workflows/app-release.yml A reusable workflow: version, self-contained Windows and Linux builds, zip, tar.gz, per-user setup.exe, .deb, latest.json, draft → check → publish, then an install-and-update smoke test on fresh runners
installers/install.ps1, installers/install.sh Install or update any HopeLab app for the current user, from its releases (private repositories too)
installers/windows/app.iss The Inno Setup template for the per-user setup.exe
installers/linux/build-deb.sh Builds the .deb (/opt/<id>, /usr/bin links, menu entry)
installers/hopelab-app.schema.json What an app's hopelab-app.json holds

Installing an app

From each app's latest release: the setup.exe (Windows, no admin) or .deb (Debian, Ubuntu, Pop!_OS), or one command:

# Windows: %LOCALAPPDATA%\Programs\<App>, Start menu, PATH if the app has commands
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/QuantumHope/MattEland.HopeLab.Shared/main/installers/install.ps1))) -Repo QuantumHope/OneRing
# Linux, no sudo: ~/.local/share/<id>/app, commands in ~/.local/bin, an app-menu entry
curl -fsSL https://raw.githubusercontent.com/QuantumHope/MattEland.HopeLab.Shared/main/installers/install.sh | bash -s -- --repo QuantumHope/OneRing

The scripts are public; an app's releases may not be. For a private repository they use, in order, <APP>_GITHUB_TOKEN / GH_TOKEN / GITHUB_TOKEN, the token the app saved on this machine, the GitHub CLI's sign-in, and then ask (hidden input). A token that was asked for, or came from the environment, is saved in the app's data folder (github-token, user-only) so the app can update itself. A fine-grained token with read-only Contents access to the one repository is enough. Running a script again updates in place; -Uninstall / --uninstall removes the app and keeps its data.

How it was installed Where How it updates
setup.exe, install.ps1, zip %LOCALAPPDATA%\Programs\<App> in place, silently (files moved aside and replaced; Apps & features follows)
install.sh, tar.gz ~/.local/share/<id>/app in place, silently
.deb /opt/<id> the app downloads the next .deb and installs it with apt-get: pkexec (a password dialog) from the app, sudo from a terminal

The install folder never moves, so anything that holds a path into it (Claude Code hooks, a login entry, shortcuts) keeps working across updates. Only a copy built by the release workflow (it has release.json) updates itself.

Adopting it in an app

  1. Describe the app in hopelab-app.json at its root (schema, and OneRing's and Hymnal's as examples): name, id, the desktop project and executable, icons, a Windows setup AppId (a new GUID, never changed), and the install settings (commands on PATH, the data folder, processes to stop, an update command).
  2. Release from CI: after the app's own tests, call the shared workflow (see the top of app-release.yml). The version is <major>.<minor> from the app's Directory.Build.props plus the commit count.
  3. Update from the app: reference MattEland.HopeLab.Updates.ReactiveUI, create an AppUpdater with the app's AppUpdateOptions (repository, data folder, executable, token variable, setup AppId, and a StopServices hook if it runs anything beside itself), wrap it in AppUpdateService, and give that to an UpdatesViewModel. Bind a banner and a Settings card to it in the app's own theme, and on RestartRequested start the new executable and exit.
  4. Share the UI (Avalonia apps): add <FluentTheme /> then <lab:LabStyles /> to App.axaml, make one ThemeService for the application and Apply the saved preference at start-up, and add new ViewLocator().UseSharedViews() (plus .UseConnectViews()) to DataTemplates, registering the app's own views on the same locator. An app with a server implements IServerOpener<TSession> and IServerAddressStore and puts a ConnectFlow<TSession> behind its window; its presets (server addresses) come from its own config, never from here.

Building

dotnet build MattEland.HopeLab.Shared.slnx
dotnet test MattEland.HopeLab.Shared.slnx
dotnet pack MattEland.HopeLab.Shared.slnx -c Release -o artifacts

To try a change in an app before it's published, pack with a higher version into a folder and add that folder as a package source in the app (a nuget.config you don't commit), or temporarily swap the PackageReference for a ProjectReference into a checkout of this repository.

Publishing

Every push to main that passes CI packs 0.1.<commits on main> and pushes it to nuget.org with Trusted Publishing: no API key is stored anywhere. The publish job gets a GitHub OIDC token, NuGet/login trades it for an API key that lasts an hour, and nuget.org accepts it because of a Trusted Publishing policy on the owning account (nuget.org → your profile → Trusted Publishing):

Field Value
Repository Owner QuantumHope
Repository MattEland.HopeLab.Shared
Workflow File ci.yml
Environment (empty)

The job logs in as the nuget.org profile MattEland; a repository variable NUGET_USER overrides it. To publish again by hand (after setting the policy up, say), run the CI workflow on main from the Actions tab; versions that already exist are skipped.

Licence

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on MattEland.HopeLab.Common:

Package Downloads
MattEland.HopeLab.Updates

Updates for apps released on GitHub: latest.json manifests, version checks, private-repository tokens, verified downloads, in-place file swaps with rollback, and Debian-package installs.

MattEland.HopeLab.Git

A wrapper over the git CLI for the HopeLab apps: porcelain v2 status, worktree list/add/remove, merge preview, commit graph layout, fetch/pull/rebase, and a per-repository write lock.

MattEland.HopeLab.Avalonia

The UI pieces the HopeLab Avalonia apps share: applying a shared theme (with an app's own themes and keys beside it), the base Lab styles, a view model base and view locator, notices, and a Settings page that apps add their own sections to. No Avalonia.Desktop, so it works on Android too.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.58 131 12/1/2026
0.3.54 120 12/1/2026
0.3.49 137 11/30/2026
0.2.45 167 11/30/2026
0.2.42 157 11/29/2026
0.2.32 156 11/29/2026
0.1.24 160 11/29/2026
0.1.15 172 11/22/2026
0.1.14 156 11/21/2026
0.1.13 144 11/21/2026
0.1.12 204 11/21/2026
0.1.11 272 11/20/2026
0.1.10 243 11/17/2026