prasmussen / chrome-cli

Control Google Chrome from the command line
MIT License
2.61k stars 89 forks source link

Chromium CLI #31

Closed dardo82 closed 3 years ago

dardo82 commented 9 years ago

I'm trying to build chrome-cli on Mac OSX 10.8.5 as i would to make a version for Chromium as there is one for Chrome Canary but i'm getting some errors. If i do brew unpack chrome-cli; cd chrome-cli-1.5.0; xcodebuild i get errors about no visible interface for SBElementArray that declares the selector firstObject.

prasmussen commented 9 years ago

I can't help you with the build error, but to control chromium you need to replace com.google.Chrome with org.chromium.Chromium in App.m. I've added a link to a prebuilt chromium-cli in the README.

dardo82 commented 9 years ago

Good, it works! :-D That was quick, thanks... ^_^ How can we now update the homebrew formula? ;-)

dardo82 commented 9 years ago

OK, OS X 10.9 SDK is needed to build this and i was missing it, restoring it from Time Machine fixed this.

dardo82 commented 9 years ago

I have made a pull request for the updated homebrew formula here: https://github.com/Homebrew/homebrew/pull/42731

dardo82 commented 9 years ago

I have made another pull request as the the previous one had problems: https://github.com/Homebrew/homebrew/pull/42849

prasmussen commented 9 years ago

Thanks :)

dardo82 commented 9 years ago

:+1:

CanRau commented 4 years ago

@prasmussen How about a way to define that in the main cli itself? so it could work with all derivatives like Brave having just aliases. Or is that not possible? 🤔

haakonstorm commented 3 years ago

+1 for way to define this via arg flags :-)

Screenshot of iTerm2 (17-10-2020, 22-15-59)
prasmussen commented 3 years ago

The latest version lets you override the bundle identifier, check the readme for more details.