Skip to content

Commit

Permalink
Change source to Script Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
godly-devotion committed Oct 27, 2021
1 parent 34d278c commit b9a2792
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 41 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ macOS app to set battery charge limit for Intel MacBooks

This app modifies a parameter called `BCLM` (presumably "Battery Charge Level Max") in the SMC which limits the charge of the battery to a set value. It also modifies a parameter called `BFCL` ("Battery Final Charge Level") which controls the MagSafe LED indicator light to display the correct status.

The source code can be viewed by opening `src/Charge Limiter.app` in Apple's Script Editor. It is written in Javascript Application Scripting (or JXA).
The source code can be viewed by opening `src/Charge Limiter.scptd` in Apple's Script Editor. It is written in Javascript Application Scripting (or JXA).

The companion `smcutil` binary (located under `src/Charge Limiter.app/Contents/Resources`) was copied from [this repository](https://github.com/sicreative/BatteryStatusShow/blob/master/BatteryStatusShow/smcutil). The source code for `smcutil` is also available there.
The companion `smcutil` binary (located under `src/Charge Limiter.scptd/Contents/Resources`) was copied from [this repository](https://github.com/sicreative/BatteryStatusShow/blob/master/BatteryStatusShow/smcutil). The source code for `smcutil` is also available there.

## Releases

Expand Down
Binary file removed src/Charge Limiter.app/Contents/MacOS/applet
Binary file not shown.
1 change: 0 additions & 1 deletion src/Charge Limiter.app/Contents/PkgInfo

This file was deleted.

Binary file not shown.
Binary file removed src/Charge Limiter.app/Contents/Resources/applet.rsrc
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>applet</string>
<key>CFBundleIconFile</key>
<string>applet</string>
<key>CFBundleIdentifier</key>
<string>com.godly-devotion.charge-limiter</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Charge Limiter</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4</string>
<key>CFBundleSignature</key>
<string>aplt</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
<data>
gV0hmyTWZkNkR8Xx++YxWr0WG04=
</data>
<key>Resources/applet.icns</key>
<data>
sINd6lbiqHD5dL8c6u79cFvVXhw=
</data>
<key>Resources/applet.rsrc</key>
<data>
HDKLdsqT9cm9wBeKQeF1Gb+1mM0=
</data>
<key>Resources/description.rtfd/TXT.rtf</key>
<data>
ZNlmbZciELBioKphPqoFPT5NHno=
Expand All @@ -38,28 +30,6 @@
Dz8FcQRNpmlfMv72eOGSCw0o7vOVaT/Cq4vHA3r1F0U=
</data>
</dict>
<key>Resources/applet.icns</key>
<dict>
<key>hash</key>
<data>
sINd6lbiqHD5dL8c6u79cFvVXhw=
</data>
<key>hash2</key>
<data>
J7weZ6vlnv9r32tS5HFcyuPXl2StdDnfepLxAixlryk=
</data>
</dict>
<key>Resources/applet.rsrc</key>
<dict>
<key>hash</key>
<data>
HDKLdsqT9cm9wBeKQeF1Gb+1mM0=
</data>
<key>hash2</key>
<data>
IcqPVwqEqhY0fdEVQfrLWfo32zLa23RQNuHv679nw60=
</data>
</dict>
<key>Resources/description.rtfd/TXT.rtf</key>
<dict>
<key>hash</key>
Expand Down
Empty file.

0 comments on commit b9a2792

Please sign in to comment.