Skip to content

Commit

Permalink
smcutil: update utility to support Monterey
Browse files Browse the repository at this point in the history
Fixes #21, #26
  • Loading branch information
godly-devotion committed Oct 27, 2021
1 parent 135ebaf commit 17c3558
Show file tree
Hide file tree
Showing 7 changed files with 197 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This app modifies a parameter called `BCLM` (presumably "Battery Charge Level Ma

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 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/Products/usr/local/bin/smcutil). The source code for `smcutil` is also available there.
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.

## Releases

Expand Down
4 changes: 2 additions & 2 deletions src/Charge Limiter.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<key>bundleDividerCollapsed</key>
<false/>
<key>bundlePositionOfDivider</key>
<real>1025</real>
<real>1010</real>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
Expand All @@ -66,7 +66,7 @@
<key>positionOfDivider</key>
<real>468</real>
<key>savedFrame</key>
<string>349 286 1274 693 0 0 1920 1177 </string>
<string>419 256 1274 693 0 0 1920 1175 </string>
<key>selectedTab</key>
<string>log</string>
</dict>
Expand Down
Binary file modified src/Charge Limiter.app/Contents/MacOS/applet
Binary file not shown.
Binary file modified src/Charge Limiter.app/Contents/Resources/Scripts/main.scpt
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600
{\fonttbl}
{\rtf1\ansi\ansicpg1252\cocoartf2580
\cocoatextscaling0\cocoaplatform0{\fonttbl}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
}
Binary file modified src/Charge Limiter.app/Contents/Resources/smcutil
Binary file not shown.
192 changes: 192 additions & 0 deletions src/Charge Limiter.app/Contents/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict>
<key>Resources/Scripts/main.scpt</key>
<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=
</data>
<key>Resources/smcutil</key>
<data>
fIvbdO8KoSrVplhupWn8PzD1LVQ=
</data>
</dict>
<key>files2</key>
<dict>
<key>Resources/Scripts/main.scpt</key>
<dict>
<key>hash</key>
<data>
gV0hmyTWZkNkR8Xx++YxWr0WG04=
</data>
<key>hash2</key>
<data>
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>
<data>
ZNlmbZciELBioKphPqoFPT5NHno=
</data>
<key>hash2</key>
<data>
41OWIJNhwmBB9SfzNZViDvpRnpOlsYF/ASeHnnUXLiY=
</data>
</dict>
<key>Resources/smcutil</key>
<dict>
<key>hash</key>
<data>
fIvbdO8KoSrVplhupWn8PzD1LVQ=
</data>
<key>hash2</key>
<data>
RyuQ39vGM6FnXT9f8HclhVPI/ZS8qthdE3Insuhdc08=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>

0 comments on commit 17c3558

Please sign in to comment.