Skip to content

Commit

Permalink
Fix building new iMessage bridge locally
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 11, 2024
1 parent 7cfb3de commit 6e34d54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/bbctl/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ func compileGoBridge(ctx context.Context, buildDir, binaryPath, bridgeType strin

if _, err = os.Stat(buildDir); err != nil && errors.Is(err, fs.ErrNotExist) {
repo := fmt.Sprintf("https://github.com/mautrix/%s.git", bridgeType)
if bridgeType == "imessagego" {
repo = "https://github.com/beeper/imessage.git"
}
log.Printf("Cloning [cyan]%s[reset] to [cyan]%s[reset]", repo, buildDir)
err = makeCmd(ctx, buildDirParent, "git", "clone", repo, buildDir).Run()
if err != nil {
Expand Down

0 comments on commit 6e34d54

Please sign in to comment.