pookjw / nightpatch Goto Github PK
View Code? Open in Web Editor NEWEnable Night Shift on any old Mac models.
License: Apache License 2.0
Enable Night Shift on any old Mac models.
License: Apache License 2.0
TOOL_VERSION=247
TOOL_BUILD=beta
SYSTEM_BUILD=17G3025
SYSTEM_VERSION=10.13.6
MACHINE_MODEL=MacBookPro8,1
PATCH_COUNT=7
TOOL_MODE=patch
VERBOSE=YES
SKIP_CHECK_SYSTEM=NO
SKIP_CHECK_HW=NO
USE_LOCAL_CACHE=NO
PWD=/private/tmp/NightPatch-master
Detected backup, reverting...
/System/Library/PrivateFrameworks/CoreBrightness.framework/Versions/A/CoreBrightness: replacing existing signature
Creating backup...
Patching...
FIRST_SHA=39c486ffa09734384717ab95f8c0bbe65e5d5375
CB_OFFSET=0x44670
44690
dd: unknown operand 44690
SECOND_SHA=39c486ffa09734384717ab95f8c0bbe65e5d5375
ERROR : Faild to patch system file.
Exit code: 1
Sierra 10.12.4 on Mid-2012 Mac Pro
After applying this patch, I see three new files in my Home folder....
_CodeSignature.bak
CoreBrightness.bak
NightPatchBuild
Why are these left here? Can't these be moved, deleted, or hidden?
I have a Mac Pro Mid 2012 12-Core. I have an Apple LED Cinema Display (27") and an AMD Radeon HD 7950 Mac Edition. Worked just fine in High Sierra and when I updated the Mac it stopped working and re-running the script proves to fail even after disabling SIP.
After security update I installed, it now gives me this error after after creating backup, while patching.
time to update your stuff dude cause 10.13.4 would not boot and needs to reinstall let alone would not revert - complete headache..
When I'm running the .sh script I'm having the following issue:
Checking new signature...
The new signature is invalid or can't be applied. Check the original framework sigature is valid and try again. No patch applied.
/System/Library/PrivateFrameworks/CoreBrightness.framework.hack: invalid signature (code or signature have been modified)
In architecture: x86_64
Unfortunately NightPatch is not working with the GM release of High Sierra.
Is there any chance of an updated binary?
Thank you!
Well that didn't work. $%!k
On macOS 10.13.4, you cannot boot up. DO NOT REINSTALL macOS, just boot into safe mode, and run the uninstaller.sh script in Terminal.
Doesn't work on 10.13.6, but it did work on 10.13.5; 15" MBP Early 2011.
Getting an "unsupported OS" error on latest version of Sierra released today.
10.12.6 (16G29)
I ran the following command:
cd /tmp; curl -s -o NightPatch.zip https://codeload.github.com/pookjw/NightPatch/zip/master; unzip -o -qq NightPatch.zip; cd NightPatch-master; chmod +x NightPatch.sh; ./NightPatch.sh --fix
I receive the following error:
Downloading pbzx-master... (https://github.com/NiklasRosenstein/pbzx)
######################################################################## 100.0%
Compiling pbzx...
Downloading catalog...
######################################################################## 100.0%
Parsing catalog...
gunzip: /tmp/NightPatch-tmp/assets.sucatalog.gz: not in gzip format
cat: /tmp/NightPatch-tmp/assets.sucatalog: No such file or directory
Downloading update file...
curl: (3) malformed
Extracting... (1)
Could not open package for expansion: /tmp/update.pkg
./NightPatch.sh: line 231: cd: /tmp/NightPatch-tmp/1: No such file or directory
ERROR : Failed to extract pkg file. Re-downloading...
Downloading catalog...
######################################################################## 100.0%
Parsing catalog...
gunzip: /tmp/NightPatch-tmp/assets.sucatalog.gz: not in gzip format
cat: /tmp/NightPatch-tmp/assets.sucatalog: No such file or directory
Downloading update file...
curl: (3) malformed
Extracting... (1)
Could not open package for expansion: /tmp/update.pkg
./NightPatch.sh: line 231: cd: /tmp/NightPatch-tmp/1: No such file or directory
ERROR : Failed to extract pkg file. Re-downloading...
ERROR : Failed to unpack update file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.