This repository has been archived on 2026-10-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
barn/docs/auto-update.md
Daniel SamsonandClaude Opus 4.5 d95ac32739 Replace SLF4J with BarnLogger and update documentation
- 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>
2026-01-22 08:04:35 +00:00

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):

  1. Download the latest binary from GitHub Releases
  2. Stop the service: barn service stop
  3. Replace the binary:
    chmod +x barn-macos-arm64
    sudo mv barn-macos-arm64 /usr/local/bin/barn
    
  4. Verify: barn --version
  5. Start the service: barn service start

Windows

To update Barn on Windows:

  1. Download the latest setup-barn-vX.X.X-windows-x64.exe from GitHub Releases
  2. 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:

  1. Download the latest binary from GitHub Releases
  2. Stop the service:
    sudo systemctl stop barn
    
  3. Replace the binary:
    chmod +x barn-linux-x64
    sudo mv barn-linux-x64 /usr/local/bin/barn
    
  4. Verify: barn --version
  5. 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:

  1. Go to https://github.com/samson-media/barn
  2. Click "Watch" → "Custom" → Select "Releases"

Next Steps