-
Notifications
You must be signed in to change notification settings - Fork 140
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
Error installing battery limiter: Command failed: ./applet /bin/sh: ./applet: Bad CPU type in executable #16
Comments
Same with brew install battery. However the CLI works kinda (I suspect because it compiles from source right?) However, it's not working very well. Typing "battery status" gives: |
This tool is only for M1 macs, I suspect you are on an Intel one :) |
No, I am on an M1 Macbook Air. |
I get the same errors when Installing through |
@merlinmah how would that path cause a CPU error? |
It's not a cpu error, its a path error. Github search reveals all the hardcoded It's best to rely on |
@Tokarak thanks for pointing that out. I think I fixed that path issue just now. Can you confirm it was fixed? |
looks like it fixed it for me. however the brew package and dmg still need a to include it. I had to clone the repo and run |
yeah the brew formulae need updating. |
@phewitt that is weird because the brew |
hi, I am having this same error (installed through dmg on release page) and the command line commands do not work, so I am unable to use 'battery uninstall'. How could I uninstall the tool? thanks |
@K-J-E you can manually delete the files |
I just pushed a update that should fix a few issues, could you try to run |
Could you try the following things to help me debug: Debug trail 1: installing CLI only Instead of installing through brew, can you install through these CLI instructions and show me your terminal output? Debug trail 2: running the app locally Can you try: git clone git@github.com:actuallymentor/battery.git
cd battery/app
npm i
npm start And show me what happens? |
I think my issue is the same in this issue report. If not, I can open a new one. I tried just right now to install the app by using the battery-1.0.7-arm64.dmg file downloaded from the releases page. My Mac is: After enter the password for the "Updates" I get these error messages in this order: The battery icon is in the menu bar, but nothing happens when I click on it. |
I get the same error messages and behavior on my MacBook Air M2. |
I believe we found the issue in #48! Can someone (@jxnding?) with this issue please install this v1.0.8 pre-release and let me known if that solves the issue? |
It doesn't work, even with the 1.08 version |
I am also experiencing the same error: "error installing battery limited: undefined” after installing through brew. Im currently on the latest release (v1.2.1). The CLI installation does successfully install the application, but the commands “battery maintain 80” and “battery charging off” do not seem to show the expected visual effect on the battery icon. Also running on a M1 mac |
After installing, on first-time launch, I get 2 errors:
Error installing battery limiter: Command failed: ./applet
/bin/sh: ./applet: Bad CPU type in executable
Battery limiter error: Command failed: PATH=$PATH:/usr/local/bin/battery battery status
/bin/bash: battery: command not found
I'm on Ventura 13.0 beta, installed the dmg battery-1.0.3-arm64.dmg
The text was updated successfully, but these errors were encountered: