Archived
- Replace SLF4J/logback with custom BarnLogger across all source files - BarnLogger is disabled by default for CLI commands, enabled for service - Fixes #30: debug logs no longer break JSON/XML CLI output - Add SpotBugs exclusions for BarnLogger false positives - Update docs: remove .deb and AUR references (no longer applicable) - Update docs: add Windows setup.exe installation instructions - Update docs: clarify auto-update only works with Homebrew Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.6 KiB
2.6 KiB
Updating Barn
This document describes how to keep Barn updated on different platforms.
Overview
| Platform | Update Method | Automatic |
|---|---|---|
| macOS (Homebrew) | brew upgrade barn |
Yes |
| macOS (manual) | Download from GitHub Releases | No |
| Windows | Download setup installer from GitHub Releases | No |
| Linux | Download binary from GitHub Releases | No |
macOS (Homebrew)
If you installed Barn via Homebrew, updates are handled automatically:
# Check for updates
brew outdated barn
# Update Barn
brew upgrade barn
# Restart the service after updating
brew services restart barn
Homebrew will automatically fetch the latest version from the Homebrew tap when you run brew upgrade.
macOS (Manual Installation)
If you installed Barn manually (not via Homebrew):
- Download the latest binary from GitHub Releases
- Stop the service:
barn service stop - Replace the binary:
chmod +x barn-macos-arm64 sudo mv barn-macos-arm64 /usr/local/bin/barn - Verify:
barn --version - Start the service:
barn service start
Windows
To update Barn on Windows:
- Download the latest
setup-barn-vX.X.X-windows-x64.exefrom GitHub Releases - Run the installer - it will automatically:
- Stop the Barn service
- Update the binary
- Restart the service
Alternatively, for silent updates:
# Download the installer
Invoke-WebRequest -Uri "https://github.com/samson-media/barn/releases/latest/download/setup-barn-vX.X.X-windows-x64.exe" -OutFile "setup-barn.exe"
# Run silent installation
.\setup-barn.exe /S
Linux
To update Barn on Linux:
- Download the latest binary from GitHub Releases
- Stop the service:
sudo systemctl stop barn - Replace the binary:
chmod +x barn-linux-x64 sudo mv barn-linux-x64 /usr/local/bin/barn - Verify:
barn --version - Start the service:
sudo systemctl start barn
Checking Your Current Version
barn --version
Release Notifications
To be notified of new releases, watch the GitHub repository:
- Go to https://github.com/samson-media/barn
- Click "Watch" → "Custom" → Select "Releases"
Next Steps
- Releasing - How versions are published
- Distribution - Installation methods by platform