Coder Social home page Coder Social logo

corpnewt / cpu-name Goto Github PK

View Code? Open in Web Editor NEW
94.0 10.0 17.0 172 KB

Small py script to change the CPU name in About This Mac by leveraging functionality in Acidanthera's RestrictEvents

License: MIT License

Python 68.57% Batchfile 17.82% Shell 13.61%

cpu-name's Introduction

CPU-Name

Small py script to change the CPU name in About This Mac by leveraging functionality in Acidanthera's RestrictEvents.


Getting CPU-Name

Downloading The Repo As A ZIP File

On any system you can choose the green Code button, followed by the Download ZIP button (or click here) to download the entire repo as a zip file (note, this does not allow you to update via git pull - any updates would require you to download the repo again in the same fashion).

Cloning The Repo Via Git

On *nix systems:

git clone https://github.com/corpnewt/CPU-Name
python ./CPU-Name/CPU-Name.command

* On macOS, you can simply double-click the CPU-Name.command after cloning to launch.

On Windows:

git clone https://github.com/corpnewt/CPU-Name
./CPU-Name/CPU-Name.bat

cpu-name's People

Contributors

corpnewt avatar kernel-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpu-name's Issues

Plist file (? help

Hi i need help to use this, so I've seen videos where the program just output the current CPU and the languaje, but in my case it asks me for a .plist file (? What plist file is asking for? Please

Thanks

Oh I'm in Mac by the way (Big Sur hackintosh)

Invalid Syntax

sh-3.2# python ./CPU-Name/CPU-Name.command
File "./CPU-Name/CPU-Name.command", line 9
NL=$'\n'
^
SyntaxError: invalid syntax

MacOS 12.1 Beta

Failed on Big Sur

Current Unknown CPU: Unknown

C. Use: AMD Ryzen 5 5600X 6-Core Processor
Q. Quit

Please enter a new CPU name - or a new language (must end in .lproj): C
#######################################################
#Setting CPU to AMD Ryzen 5 5600X 6-Core Processor ...#
#######################################################

Creating backup...

cp: /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/Resources/en.lproj/AppleSystemInfo.strings.bak: Operation not permitted
Patching strings for CPU "AMD Ryzen 5 5600X 6-Core Processor "...
mv: /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/Resources/en.lproj/AppleSystemInfo.strings: Operation not permitted

Stop working on MacOS Catalina 10.15

I know this version just release and you may need some update to make the script works on Mac OS Catalina 10.15.
I run the script but it doesn't change the CPU name, here is the log

########################################################
Setting CPU to AMD Ryzen 5 2600 Six-Core Processor...#
#######################################################
 
Creating backup...

cp: /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/Resources/en.lproj/AppleSystemInfo.strings.bak: Read-only file system
Patching strings for CPU "AMD Ryzen 5 2600 Six-Core Processor            "...
mv: rename /var/folders/lk/b11lxrrs7mv69v4w59txy8440000gn/T/tmphjqIvE/AppleSystemInfo.strings to /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/Resources/en.lproj/AppleSystemInfo.strings: Read-only file system 
Done.

Broken in 10.14.5?

Tried to use in the new Mojave version but it doesn't work. It doesn't change to the value I choose using the script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.