lrb-updates

Static-file host for LRB Barcode To Xero auto-updates. Served via GitHub Pages on the custom domain scanner.lostriverbutchers.com.au.

The running app polls the URLs below and prompts the user to install when a newer version is published.

What gets served

https://scanner.lostriverbutchers.com.au/software/currentVersion.txt
https://scanner.lostriverbutchers.com.au/software/LRB-BarcodeToXero-Setup-<version>.exe

currentVersion.txt is a single line with the latest version (e.g. 1.0.3). An optional # comment after the version is allowed.

One-time setup

  1. Create a public repo on GitHub named lrb-updates and push this folder to it (git remote add origin …, git push -u origin main). The repo must be public — GitHub Pages on free plans requires it.
  2. Enable Pages: repo Settings → Pages → Source: Deploy from a branch → branch main, folder / (root).
  3. Verify the CNAME picks up: under Settings → Pages, Custom domain should show scanner.lostriverbutchers.com.au (driven by the CNAME file in this repo).
  4. Add DNS: at your DNS provider, create a CNAME record for scanner.lostriverbutchers.com.au pointing at <your-github-username>.github.io.
  5. Wait a few minutes for DNS + Let’s Encrypt provisioning, then tick Enforce HTTPS in the Pages settings.
  6. Confirm https://scanner.lostriverbutchers.com.au/software/currentVersion.txt returns the version.

Cutting a release

From the main LRB-BarcodeToXero repo (sibling directory):

  1. Bump MyAppVersion in installer\LRB-BarcodeToXero.iss and AssemblyVersion/AssemblyFileVersion in Properties\AssemblyInfo.cs to the same value.
  2. Build → Configuration: Release → Build in Visual Studio.
  3. Open installer\LRB-BarcodeToXero.iss in Inno Setup → Compile.
  4. Run installer\publish-update.ps1 -Push from a PowerShell terminal at the project root. That script copies the new Setup-<ver>.exe into ..\lrb-updates\software\, updates currentVersion.txt, then commits and pushes this repo. GitHub Pages serves the new files within ~1 minute.

Existing installs detect the new version on next launch (or via tray menu Check for Updates) and offer an in-place upgrade.