diff --git a/README.md b/README.md index b5b4fb8..383f527 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/Charge Limiter.app/Contents/MacOS/applet b/src/Charge Limiter.app/Contents/MacOS/applet deleted file mode 100755 index a7bfb72..0000000 Binary files a/src/Charge Limiter.app/Contents/MacOS/applet and /dev/null differ diff --git a/src/Charge Limiter.app/Contents/PkgInfo b/src/Charge Limiter.app/Contents/PkgInfo deleted file mode 100644 index 3253614..0000000 --- a/src/Charge Limiter.app/Contents/PkgInfo +++ /dev/null @@ -1 +0,0 @@ -APPLaplt \ No newline at end of file diff --git a/src/Charge Limiter.app/Contents/Resources/applet.icns b/src/Charge Limiter.app/Contents/Resources/applet.icns deleted file mode 100644 index 0cdd170..0000000 Binary files a/src/Charge Limiter.app/Contents/Resources/applet.icns and /dev/null differ diff --git a/src/Charge Limiter.app/Contents/Resources/applet.rsrc b/src/Charge Limiter.app/Contents/Resources/applet.rsrc deleted file mode 100644 index 401fd59..0000000 Binary files a/src/Charge Limiter.app/Contents/Resources/applet.rsrc and /dev/null differ diff --git a/src/Charge Limiter.app/Contents/Info.plist b/src/Charge Limiter.scptd/Contents/Info.plist similarity index 91% rename from src/Charge Limiter.app/Contents/Info.plist rename to src/Charge Limiter.scptd/Contents/Info.plist index d98b369..b8f0c6b 100644 --- a/src/Charge Limiter.app/Contents/Info.plist +++ b/src/Charge Limiter.scptd/Contents/Info.plist @@ -6,22 +6,14 @@ CFBundleDevelopmentRegion English - CFBundleExecutable - applet - CFBundleIconFile - applet CFBundleIdentifier com.godly-devotion.charge-limiter CFBundleInfoDictionaryVersion 6.0 CFBundleName Charge Limiter - CFBundlePackageType - APPL CFBundleShortVersionString 1.4 - CFBundleSignature - aplt LSMinimumSystemVersionByArchitecture x86_64 diff --git a/src/Charge Limiter.app/Contents/Resources/Scripts/main.scpt b/src/Charge Limiter.scptd/Contents/Resources/Scripts/main.scpt similarity index 100% rename from src/Charge Limiter.app/Contents/Resources/Scripts/main.scpt rename to src/Charge Limiter.scptd/Contents/Resources/Scripts/main.scpt diff --git a/src/Charge Limiter.app/Contents/Resources/description.rtfd/TXT.rtf b/src/Charge Limiter.scptd/Contents/Resources/description.rtfd/TXT.rtf similarity index 100% rename from src/Charge Limiter.app/Contents/Resources/description.rtfd/TXT.rtf rename to src/Charge Limiter.scptd/Contents/Resources/description.rtfd/TXT.rtf diff --git a/src/Charge Limiter.app/Contents/Resources/smcutil b/src/Charge Limiter.scptd/Contents/Resources/smcutil similarity index 100% rename from src/Charge Limiter.app/Contents/Resources/smcutil rename to src/Charge Limiter.scptd/Contents/Resources/smcutil diff --git a/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeDirectory b/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeDirectory new file mode 100644 index 0000000..00879ab Binary files /dev/null and b/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeDirectory differ diff --git a/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeRequirements b/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeRequirements new file mode 100644 index 0000000..dbf9d61 Binary files /dev/null and b/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeRequirements differ diff --git a/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeRequirements-1 b/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeRequirements-1 new file mode 100644 index 0000000..2d68d4c Binary files /dev/null and b/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeRequirements-1 differ diff --git a/src/Charge Limiter.app/Contents/_CodeSignature/CodeResources b/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeResources similarity index 83% rename from src/Charge Limiter.app/Contents/_CodeSignature/CodeResources rename to src/Charge Limiter.scptd/Contents/_CodeSignature/CodeResources index bd50bf6..d52f667 100644 --- a/src/Charge Limiter.app/Contents/_CodeSignature/CodeResources +++ b/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeResources @@ -8,14 +8,6 @@ gV0hmyTWZkNkR8Xx++YxWr0WG04= - Resources/applet.icns - - sINd6lbiqHD5dL8c6u79cFvVXhw= - - Resources/applet.rsrc - - HDKLdsqT9cm9wBeKQeF1Gb+1mM0= - Resources/description.rtfd/TXT.rtf ZNlmbZciELBioKphPqoFPT5NHno= @@ -38,28 +30,6 @@ Dz8FcQRNpmlfMv72eOGSCw0o7vOVaT/Cq4vHA3r1F0U= - Resources/applet.icns - - hash - - sINd6lbiqHD5dL8c6u79cFvVXhw= - - hash2 - - J7weZ6vlnv9r32tS5HFcyuPXl2StdDnfepLxAixlryk= - - - Resources/applet.rsrc - - hash - - HDKLdsqT9cm9wBeKQeF1Gb+1mM0= - - hash2 - - IcqPVwqEqhY0fdEVQfrLWfo32zLa23RQNuHv679nw60= - - Resources/description.rtfd/TXT.rtf hash diff --git a/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeSignature b/src/Charge Limiter.scptd/Contents/_CodeSignature/CodeSignature new file mode 100644 index 0000000..e69de29