Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Here is how you build bitbar (includes recent build with vertical text align fix) #513

Closed
cedivad opened this issue Jun 29, 2019 · 29 comments

Comments

@cedivad
Copy link

cedivad commented Jun 29, 2019

I was excited about this project until I saw the text was vertically misaligned, then couldn't believe a fix has been published since forever but wasn't released because of politics or something.

So here is how you can build this project yourself, approximative guide. Will save you 30 minutes of your time. I myself had no clue so it took that long.

  1. Fetch either the updated repository or the one with a fix you care about, say the one in Fix title text alignment #496. You need to use --recursive and git clone (my first mistake)
    git clone --recursive https://github.com/guillaumewuip/bitbar.git (this is not the official repository)!
  2. Replace the Makefile with what's suggested in this other pr: Make building simpler #503
  3. Do the same for App/BitBar.xcodeproj/project.pbxproj
  4. Open the project in xcode, compile it
  5. Go back to the root directory and run make
  6. The compiled file will be in App/build/Release/BitBar.app, move that to /Applications and you are done

Now if you really trust me for some reason or another you can fetch the binary directly from here - please note that while I have no malicious intention and I kinda trust the code I downloaded I might have been fooled.

https://github.com/cedivad/bitbar-binary

Cheers
Davide

@gingerbeardman
Copy link
Collaborator

gingerbeardman commented Jun 29, 2019

wasn't released because of politics or something.

the reason is time and effort and red tape

@mpicard
Copy link
Collaborator

mpicard commented Jul 8, 2019

Can we revive this project? I'd be interested in helping

@gingerbeardman
Copy link
Collaborator

Contact @matryer here or on twitter

@matryer
Copy link
Owner

matryer commented Jul 8, 2019

I no longer maintain BitBar because of time constraints on my end, and a big change in professional focus. There was a rewrite into Swift going on but it never got finished, and this shifts focus back onto the Obj-C code.

I am also a fan of minimalist apps, so there are lots of things I say "no" to in BitBar. But not fixes like vertical text alignment etc. We do want those.

I am more than happy for new maintainers to help out. @mpicard Are you interested?

@mpicard
Copy link
Collaborator

mpicard commented Jul 10, 2019

Yea I'm also not interested in "adding" too much features just the bug fixes and quality of life stuff (like the text align thing) so if you want help let me know I can help get those PRs merged and maybe get CI back up and running

@stefanocrosta
Copy link

nice to see activity again! It's a nifty little project that, I agree, does not require a lot of new feature but yes a little love :-)

Thanks in any case!!!

@sohocoke
Copy link

sohocoke commented Jul 11, 2019 via email

@eldemcan
Copy link

I couldn't make my plugin read from env variable. It would be awesome to see that feature in BitBar.

@gingerbeardman
Copy link
Collaborator

@eldemcan please start a new issue about this and I can help you with it

@xixixao
Copy link

xixixao commented Aug 4, 2019

@cedivad One thing that seems off is that your binary is 13.2MB while the binary in this repo is only 4.2MB. Maybe some debug options were left in during the compilation?

@cedivad
Copy link
Author

cedivad commented Aug 4, 2019

@xixixao yeah, most likely. The biggest problem I have with my binary is the popup that displays on screen from one of the dependencies every couple of days bothering me with a "your app is unsigned" message. I just hit ok, it's fine by me.

@gingerbeardman
Copy link
Collaborator

There eversion I built (release version through Xcode Archive command) is 3.1MB — I also just click the "unsigned" warning every so often. But it works well

@inbalboa
Copy link

The repo https://github.com/guillaumewuip/bitbar is unavailable.

@fenhl
Copy link
Contributor

fenhl commented Oct 21, 2019

If @matryer no longer has the time to maintain this project, perhaps the necessary permissions to publish releases should be transferred to someone else?

@luckman212
Copy link

luckman212 commented Oct 21, 2019

rashidkpc/bitbar is a fork that I used to build on newer versions of Xcode. Last time I built was back in May 2019 but I just tested it again and it still compiles and runs using Xcode11 + Catalina.

@matryer
Copy link
Owner

matryer commented Oct 21, 2019 via email

@XanderLeaDaren
Copy link

The repo https://github.com/guillaumewuip/bitbar is unavailable.

The binary here is working: https://github.com/cedivad/bitbar-binary

@inbalboa
Copy link

inbalboa commented Oct 22, 2019

The binary here is working: cedivad/bitbar-binary

Why should I trust cedivad (nothing personal)? What was the problem to put the source code with the binary?

@cedivad
Copy link
Author

cedivad commented Oct 22, 2019

I didn't bother with the source code because I spent my time writing a detailed step by step tutorial on how to replicate my same result using someone else's.

The original source code got pulled, so I'm between a rock and hard place at the moment. What I can absolutely guarantee is that I didn't do anything malicious with it, but I understand if you didn't want to trust me. I myself have been using it for a few months now and I didn't have my credit card details stolen just yet.

*edit, I had commented from my work account.

@inbalboa
Copy link

Fork of https://github.com/matryer/bitbar with patches #496 and #503 works. Thank you for the instruction!
Can't believe I can see the BitBar without an alignment problem.

@cixtor
Copy link

cixtor commented Oct 23, 2019

So much work just to realign text one pixel 🙄

@tjluoma
Copy link

tjluoma commented Sep 19, 2020

So, just to make sure I’m summarizing things correctly:

  • this project is effectively abandoned, and there’s no one else to take it over
  • the various forks that may (or may not) be available aren’t signed, so macOS is going to complain about them on a regular basis
  • and now the source code is no longer available?

@gingerbeardman
Copy link
Collaborator

gingerbeardman commented Sep 20, 2020

@tjluoma

the source code is no longer available?

Not sure why you think that? Here is the source: https://github.com/matryer/bitbar/tree/master/App

@rockyzhang24
Copy link

Actually, we don't need to open it using Xcode and compile it. We can just run make directly. I will write down the complete step below:

  1. Clone this repo: git clone https://github.com/matryer/bitbar.git
  2. Replace the Makefile with https://github.com/rashidkpc/bitbar/blob/fix/build/Makefile
  3. Replace App/BitBar.xcodeproj/project.pbxproj with https://github.com/rashidkpc/bitbar/blob/fix/build/App/BitBar.xcodeproj/project.pbxproj
  4. Run make in the root directory. The compiled file BitBar.app will be generated under bitbar/App/build/Release/.
  5. Move that BitBar.app to the Applications directory.

Done!

@tjluoma
Copy link

tjluoma commented Nov 17, 2020

But macOS will complain about that version not being signed, right?

@rockyzhang24
Copy link

It's running perfectly so far on my machine and I don't see any errors.

@gingerbeardman
Copy link
Collaborator

The error appears when Sparkle auto-update happens.

Backdate the SULastCheckTime in com.matryer.BitBar.plist to force it to do an update check where you'll see the error.

You may want to do a personal build that disables the Sparkle update mechanism.

@rockyzhang24
Copy link

rockyzhang24 commented Nov 17, 2020

@gingerbeardman Thanks. If I don't use the auto-update feature and don't run "Check for Update", and instead when I want to update it I git fetch and re-build it, I won't be affected by the error you mentioned, right?
BTW, yesterday I tried to install bitbar from homebrew and the "Check for Update" brought an error either.

@gingerbeardman
Copy link
Collaborator

Correct.

I'm not aware of any way to switch of SUEnableAutomaticChecks without rebuilding, any changes to the plist are overwritten on every launch.

@matryer matryer closed this as completed Mar 8, 2021
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

No branches or pull requests