@@ -134,6 +134,8 @@ func compileGoBridge(ctx context.Context, buildDir, binaryPath, bridgeType strin
134134 repo := fmt .Sprintf ("https://github.com/mautrix/%s.git" , bridgeType )
135135 if bridgeType == "imessagego" {
136136 repo = "https://github.com/beeper/imessage.git"
137+ } else if bridgeType == "instagram" {
138+ repo = "https://github.com/mautrix/meta.git"
137139 }
138140 log .Printf ("Cloning [cyan]%s[reset] to [cyan]%s[reset]" , repo , buildDir )
139141 err = makeCmd (ctx , buildDirParent , "git" , "clone" , repo , buildDir ).Run ()
@@ -156,6 +158,9 @@ func compileGoBridge(ctx context.Context, buildDir, binaryPath, bridgeType strin
156158 }
157159 }
158160 buildScript := "./build.sh"
161+ if bridgeType == "instagram" {
162+ buildScript = "./build-ig.sh"
163+ }
159164 log .Printf ("Compiling bridge with %s" , buildScript )
160165 err = makeCmd (ctx , buildDir , buildScript ).Run ()
161166 if err != nil {
@@ -331,7 +336,7 @@ func runBridge(ctx *cli.Context) error {
331336 } else if compile && overrideBridgeCmd == "" {
332337 buildDir := filepath .Join (dataDir , "compile" , binaryName )
333338 bridgeCmd = filepath .Join (buildDir , binaryName )
334- err = compileGoBridge (ctx .Context , buildDir , bridgeCmd , ciBridgeType , ctx .Bool ("no-update" ))
339+ err = compileGoBridge (ctx .Context , buildDir , bridgeCmd , cfg . BridgeType , ctx .Bool ("no-update" ))
335340 if err != nil {
336341 return fmt .Errorf ("failed to compile bridge: %w" , err )
337342 }
0 commit comments