flcdrg.AU
1.0.16
dotnet tool install --global flcdrg.AU --version 1.0.16
dotnet new tool-manifest
dotnet tool install --local flcdrg.AU --version 1.0.16
#tool dotnet:?package=flcdrg.AU&version=1.0.16
nuke :add-package flcdrg.AU --version 1.0.16
flcdrg.AU
Chocolatey package automatic updates using .NET.
This is an alternative to the Chocolatey-AU PowerShell module's Update-AUPackages.ps1 function for coordinating package updates across multiple packages. It still makes use of the Chocolatey-AU module for calling the update.ps1 scripts.
Overview
flcdrg.AU is a .NET global tool for automating Chocolatey package updates. It scans a repository of Chocolatey package definitions, executes their update.ps1 scripts, and manages the package update lifecycle. This tool is particularly useful for maintaining multiple Chocolatey packages in a single repository.
Features
- Automated Package Updates: Scans directories for
update.ps1scripts and executes them to check for package updates - PowerShell Integration: Leverages PowerShell SDK to execute update scripts seamlessly
- GitHub Actions Support: Built-in integration with GitHub Actions Core for CI/CD workflows
- Package Management: Automatically handles package building, testing, and publishing to Chocolatey
- Summary Reports: Generates detailed summary reports of update operations
Using .NET 10 SDK
With .NET 10 SDK, you can execute the tool using the new dnx command:
dnx flcdrg.au
Installation as .NET global tool
Install as a .NET global tool:
dotnet tool install -g flcdrg.au
And run:
audotnet
Configuration
The tool can be configured using environment variables:
api_key: Chocolatey API key for publishing packagesPACKAGES_REPO: Path to the directory containing Chocolatey package definitions (default:c:\dev\git\au-packages)VT_APIKEY: VirusTotal CLI API Key
How It Works
- The tool scans the specified repository path for subdirectories containing
update.ps1files - For each package directory:
- Executes the
update.ps1script to check for new versions - Skips directories that already contain
.nupkgfiles - Builds and optionally publishes updated packages
- Executes the
- Generates a summary report of all operations
Requirements
- .NET 10.0 SDK or later
- PowerShell 7.5+ (embedded via SDK)
- Chocolatey package definitions with
update.ps1scripts
GitHub Actions Integration
The tool includes built-in support for GitHub Actions workflows, making it easy to automate package updates in CI/CD pipelines.
Example usage
See the https://github.com/flcdrg/au-packages/ repository for an example of the tool being used. In particular the CI workflow.
| Product | Versions 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. |
This package has no dependencies.