No description
  • Standard ML 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-22 20:50:47 -05:00
Vendor vendor: add AIClubMntr 0.8.0 agent 2026-11-22 20:48:33 -05:00
Versions Publish AI Club Toolkit 2.3.15 installer 2026-11-03 20:15:28 -05:00
.gitignore downloads: add installer ignore rules 2026-11-03 21:28:37 -05:00
README.md docs: pin the manifest URL contract 2026-11-03 23:15:31 -05:00
toolkit-update.json release: publish Toolkit 2.5.8 2026-11-22 20:50:47 -05:00
toolkit-update.json.sig release: publish Toolkit 2.5.8 2026-11-22 20:50:47 -05:00

AI Club Toolkit Downloads

Public download and update manifest for the AI Club Toolkit.

This repository is intentionally separate from the private Toolkit source. It contains the small JSON manifest used by Scripts\Check-ToolkitUpdates.ps1, the current AIClubMntr agent build, and legacy installer archives. Release installers are published as Forgejo release assets instead of new Git blobs.

Update manifest - embedded in every release:

https://git.wholeworldcoding.com/NHAI-L/Toolkit-Download/raw/branch/main/toolkit-update.json

Release page for the current and past installers:

https://git.wholeworldcoding.com/NHAI-L/Toolkit-Download/releases

Each release asset has a versioned, immutable URL:

https://git.wholeworldcoding.com/NHAI-L/Toolkit-Download/releases/download/v<version>/AI-Club-Toolkit-Setup-<version>.exe

The manifest's installerUrl is an absolute URL to the release asset. Because the URL contains the version, an old manifest can never download a newer binary with a stale hash. Forgejo does not provide a releases/latest/download route; always use the versioned release URL.

The manifest URL itself is a compatibility contract. Installed clients from 2.3.4 onward store this URL in toolkit.json and read it on every update check. Do not move or rename it for a release; publish the new manifest content at the same address. If it must move, keep a redirect or a compatibility manifest at the old address.

Layout

toolkit-update.json                       update manifest
README.md                                 this file
Vendor/
  AIClubMntr-0.1.6.exe                    monitoring agent referenced by the manifest
Versions/
  AI-Club-Toolkit-Setup-2.3.4.exe         archived release (legacy Git storage)
  ...
  AI-Club-Toolkit-Setup-2.3.13.exe        rollback archive
  AI-Club-Toolkit-Setup-2.3.15.exe        last release stored in Git
File Purpose
Vendor/AIClubMntr-<version>.exe Immutable AIClubMntr agent build referenced by the manifest monitor block
toolkit-update.json Manifest read by the Toolkit update checker
Versions/AI-Club-Toolkit-Setup-<version>.exe Historical installer archives kept from before the release-asset workflow

Installers from 2.3.16 onward live in the Forgejo release assets. The old Versions/ files and the former root AI-Club-Toolkit-Setup.exe remain in Git history, but the root constant-name copy is no longer maintained.

New users should download the version named by the current manifest, not a historical Versions/ file. Keep the archives for stale cached manifests and rollback; do not delete them while older clients may still be updating.

Publishing a release

  1. Build the installer from the private source repository:

    & "$env:LOCALAPPDATA\Programs\Inno Setup 7\ISCC.exe" "AI Club Toolkit.iss"
    

    The build embeds this repository's manifest URL by default.

  2. Compute the hash:

    (Get-FileHash .\Output\AI-Club-Toolkit-Setup.exe -Algorithm SHA256).Hash.ToLowerInvariant()
    
  3. Create a Forgejo release and upload the installer as a versioned asset:

    # Requires a Forgejo API token with repository write access.
    $version = '2.3.16'
    $repo = 'https://git.wholeworldcoding.com/api/v1/repos/NHAI-L/Toolkit-Download'
    $release = Invoke-RestMethod -Method Post -Uri "$repo/releases" `
        -Headers @{ Authorization = "token <TOKEN>" } -ContentType 'application/json' `
        -Body (@{ tag_name = "v$version"; name = "AI Club Toolkit $version"; draft = $false; prerelease = $false } | ConvertTo-Json)
    Invoke-RestMethod -Method Post -Uri "$repo/releases/$($release.id)/assets?name=AI-Club-Toolkit-Setup-$version.exe" `
        -Headers @{ Authorization = "token <TOKEN>" } `
        -Form @{ attachment = Get-Item .\Output\AI-Club-Toolkit-Setup.exe }
    

    Asset upload requires PowerShell 7; Windows PowerShell 5.1 does not support Invoke-RestMethod -Form.

  4. If the bundled AIClubMntr agent changed, publish that exact build too. Agent builds stay in Git because they are small:

    New-Item -ItemType Directory .\Vendor -Force | Out-Null
    Copy-Item .\Vendor\AIClubMntr.exe .\Vendor\AIClubMntr-0.1.6.exe
    
  5. Update toolkit-update.json last:

    {
      "toolkitVersion": "2.3.16",
      "installerUrl": "https://git.wholeworldcoding.com/NHAI-L/Toolkit-Download/releases/download/v2.3.16/AI-Club-Toolkit-Setup-2.3.16.exe",
      "installerSha256": "<64-character lowercase SHA-256>",
      "notes": "Short summary of what changed.",
      "monitor": {
        "version": "0.1.6",
        "url": "Vendor/AIClubMntr-0.1.6.exe",
        "sha256": "<64-character lowercase SHA-256>"
      }
    }
    
  6. Commit and push only the small files (manifest, README, agent):

    git add toolkit-update.json README.md Vendor
    git commit -m "Release Toolkit 2.3.16"
    git push origin main
    

    Do not add the installer to Git. The repository .gitignore blocks root and Versions/ installers; Versions/ files already tracked from older releases stay in history for rollback.

  7. Verify the published files:

    # From the private Toolkit source:
    .\tools\verify-publish.ps1 -ExpectedVersion 2.3.16 -ExpectedSha256 <hash>
    

    Forgejo serves raw files with Cache-Control: private, max-age=300. If a client checks immediately after a release, allow up to five minutes for the new manifest to appear.

Replacing a bad release asset

Replace an asset only when the uploaded file is known to be wrong and the corrected build must keep the same version. If clients may already have downloaded the bad file, publish a new version instead. Browser caches, the previous manifest, and copies already saved by clients can keep serving the bad bytes, and a same-version replacement can leave those clients with a hash failure until they refresh the manifest.

  1. Stop new downloads first. Point toolkit-update.json back to the previous installer, or remove the release from the manifest, and push that manifest before touching the asset. Record the bad asset's SHA-256 and size in the incident notes.

  2. Find the release and asset IDs:

    $repo = 'https://git.wholeworldcoding.com/api/v1/repos/NHAI-L/Toolkit-Download'
    $headers = @{ Authorization = 'token <TOKEN>' }
    $release = Invoke-RestMethod -Uri "$repo/releases/tags/v2.3.16" -Headers $headers
    $assets = Invoke-RestMethod -Uri "$repo/releases/$($release.id)/assets" -Headers $headers
    $assets | Select-Object id, name, size, browser_download_url
    
  3. Delete the bad asset:

    Invoke-RestMethod -Method Delete `
        -Uri "$repo/releases/$($release.id)/assets/<asset-id>" -Headers $headers
    
  4. Upload the corrected installer under the same versioned filename. Do not change the filename; the manifest URL is versioned and clients resolve the asset by that name:

    Invoke-RestMethod -Method Post `
        -Uri "$repo/releases/$($release.id)/assets?name=AI-Club-Toolkit-Setup-2.3.16.exe" `
        -Headers $headers `
        -Form @{ attachment = Get-Item .\Output\AI-Club-Toolkit-Setup.exe }
    
  5. Recompute the SHA-256 after the upload and update both toolkit-update.json and the release notes. The manifest hash, the published checksum, and the uploaded file must match exactly. To patch the release notes through the API:

    $release = Invoke-RestMethod -Uri "$repo/releases/$($release.id)" -Headers $headers
    $body = $release.body -replace '<old-sha256>', '<new-sha256>'
    Invoke-RestMethod -Method Patch -Uri "$repo/releases/$($release.id)" `
        -Headers $headers -ContentType 'application/json' `
        -Body (@{ body = $body } | ConvertTo-Json)
    
  6. Re-run the publish verifier from the private Toolkit source with the new hash. Include the prior-version check when the archive is available:

    # From the private Toolkit source:
    .\tools\verify-publish.ps1 `
        -ExpectedVersion 2.3.16 `
        -ExpectedSha256 <new-64-character-lowercase-hash> `
        -BaseUrl https://git.wholeworldcoding.com/NHAI-L/Toolkit-Download/raw/branch/main/ `
        -Unchanged 2.3.15=9f8fa30cfdfaf19648774b1e7b77411e9755ab998d0dd530b05b76f20439e409
    
  7. Tell users who checked during the bad window to run Check for updates again after the raw-manifest cache expires (up to five minutes). If a client already installed the bad build, publish a higher version; the checker never reinstalls the same version over an installed copy.

Updating an installed Toolkit

The installed copy reads the manifest URL stored in its toolkit.json. The checker downloads the installer named in the manifest, verifies its SHA-256 and Windows MZ header, and only then launches it. The optional monitor block keeps the shared Vendor\AIClubMntr.exe agent current between Toolkit releases: it is checked at most once every 12 hours, verified by SHA-256, and replaced without stopping the running agent. Agent 0.1.6 renames the login task to AIClubMntrAgent and removes a detected legacy SensnoAgent task.

Setup This User also registers a per-account logon task for the account that can write to the shared Toolkit folder. Two minutes after sign-in it checks this manifest and installs a newer release silently when one is available. Read-only student accounts skip the task; only the Toolkit owner account updates the shared copy.

The installer is unsigned unless the source build is signed, so Windows SmartScreen may warn. The SHA-256 check protects against a truncated or corrupted download; it does not replace code signing. Protect write access to this repository as release access.