Skip to content

Conversation

@maphew
Copy link

@maphew maphew commented Dec 26, 2025

Summary

Adds a Homebrew formula that supports both macOS and Linux.

Details

  • macOS: Uses zip releases (arm64/x64)
  • Linux: Uses AppImage releases (arm64/amd64)
  • Includes caveats for FUSE requirement on Linux

Note on homebrew-core

This formula uses pre-built binaries because SourceGit requires .NET 10, which is not yet available in Homebrew. Once Homebrew adds .NET 10 support, this could be refactored to build from source and submitted to homebrew-core.

Usage

Users can install via a tap:

brew tap sourcegit-scm/sourcegit
brew install sourcegit

- Adds formula that works on macOS (arm64/x64) and Linux (arm64/amd64)
- macOS uses zip releases, Linux uses AppImage releases
- Includes caveats for FUSE requirement on Linux
- Note: Uses pre-built binaries since .NET 10 is not yet in Homebrew

Amp-Thread-ID: https://ampcode.com/threads/T-019b5ca0-fdad-74ed-ab9a-90a572726a73
Co-authored-by: Amp <amp@ampcode.com>
@maphew maphew marked this pull request as draft December 26, 2025 22:04
@maphew
Copy link
Author

maphew commented Dec 26, 2025

Written by Ampcode via Batrachian-Toad.

Tested on Bluefin-dx linux (atomic fedora 42)

❯ brew tap-new maphew/sourcegit
...

❯ cp ~/dev/sourcegit/homebrew-formula/sourcegit.rb \
  /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/maphew/homebrew-sourcegit/Formula/

❯ brew install maphew/sourcegit/sourcegit
==> Auto-updating Homebrew...
Warning: No remote 'origin' in /var/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/maphew/homebrew-sourcegit, skipping update!
==> Fetching downloads for: sourcegit
✔︎ Formula sourcegit (2025.40)                                                                                  Verified     24.2MB/ 24.2MB
==> Installing sourcegit from maphew/sourcegit
==> Caveats
SourceGit is installed as an AppImage.
You may need FUSE to run it: https://github.com/AppImage/AppImageKit/wiki/FUSE

On Fedora/Bluefin: sudo dnf install fuse fuse-libs
Or run with --appimage-extract-and-run flag.
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/sourcegit/2025.40: 4 files, 24.2MB, built in 1 second
==> Running `brew cleanup sourcegit`...


❯ which sourcegit
/home/linuxbrew/.linuxbrew/bin/sourcegit

❯ sourcegit

Sourcegit ran just fine, no problem opening a local repo. So fuse advisory above probably not needed.

Uninstall and cleanup:

brew uninstall sourcegit
brew untap maphew/sourcegit

@maphew maphew marked this pull request as ready for review December 26, 2025 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant