Skip to content

Commit

Permalink
Merge pull request #9 from gorouflex/main
Browse files Browse the repository at this point in the history
sleeeeeeep
  • Loading branch information
gorouflex authored Feb 23, 2024
2 parents 069105b + e5a940c commit 84de0a4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
19 changes: 19 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## [0.1.0]
### Welcome to version series `0.1.x` with a better experience of using UXTU4Mac

- Include a B. Back button when applying the preset
- Add `I. Install kexts and dependencies (Beta)` to install kexts in `OC/Kexts/` and set SIP and `boot-args` automatically
- Now, when running the script, it will always apply the preset; users can press B to go back to the main menu
- Remove `SkipWelcome` in the config file
- Use OCSnapShot from @corpnewt for snapshot config files
- When running the script for the first time, it will install kexts automatically
- Improved welcome setup
- Cleaned up
- Fixed a bug with CFU
- Support Updater
- Add `LoginItems` to the config file
- Support force updating to the latest version under About UXTU4Mac
- Support applying presets from available presets beside loading from the config file
### Please delete your old `config.ini` since it's from the `0.0.x` series and incompatible with series `0.1.x`


## [0.0.98]

- Optimize code
Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<picture><img align="left" src="/Img/Logo.png" width="20%"/></picture>
<h1>UXTU4Mac (WIP)</h1>
<h3>UXTU but for macOS (riel 🐧)</h3>
<h3>UXTU but for macOS (Riel 🐧)</h3>
<h3>Based on RyzenAdj</h3>

![GitHub Downloads (all assets, latest release)](https://img.shields.io/github/downloads/AppleOSX/UXTU4Mac/total)
Expand All @@ -10,7 +10,7 @@
## Supported APU/CPU
> [!NOTE]
> - If your AMD Ryzen APU/CPU is supported by [NootedRed](https://github.com/ChefKissInc/NootedRed) **or** [UXTU](https://github.com/JamesCJ60/Universal-x86-Tuning-Utility) premade preset section, you can also use this tool.
> - Some `Athlon` APU/CPU are also supported by `UXTU4Mac` if the CPU codenames match with the list below:
> - Some `Athlon` APU/CPUs are also supported by `UXTU4Mac` if the CPU codenames match with the list below:
| Codename | Product Name |
| :---: | :---: |
Expand All @@ -26,14 +26,17 @@

- Install Python from [here](https://www.python.org).
- Download from [Releases](https://github.com/AppleOSX/UXTU4Mac/releases).
- Add `DirectHW.kext` to `EFI\OC\Kexts` and snapshot to `config.plist`.
- Disable SIP (`<7F080000>`) at `csr-active-config` (this flag can be known as `csrutil disable`, and supports patching WiFi on Sonoma).
- Add `debug=0x44` or `debug=0x144` to `boot-args`.
- Reboot and reset NVRAM to take effect.
- [Optional] Disable `Core Performance Boost` in BIOS using [Smokeless_UMAF](https://github.com/DavidS95/Smokeless_UMAF) to get better temperature but sacrifice a lot of performance.
- Run `UXTU4Mac.command`.
- Follow the instructions.

> [!NOTE]
> These steps are not required after version 0.1.0 since it automatically does that and integrates a guide for manual setup:
> - Add `DirectHW.kext` to `EFI\OC\Kexts` and snapshot to `config.plist`.
> - Disable SIP (`<7F080000>`) at `csr-active-config` (this flag can be known as `csrutil disable` and supports patching WiFi on Sonoma).
> - Add `debug=0x44` or `debug=0x144` to `boot-args`.
> - Reboot and reset NVRAM to take effect.
## For advanced users, please visit [Custom.md](Custom.md).

## Comparison
Expand Down
7 changes: 4 additions & 3 deletions UXTU4Mac/UXTU4Mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ def edit_config(config_path):
if 'boot-args' in config['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82']:
boot_args = config['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82']['boot-args']
if 'debug=0x144' not in boot_args:
config['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82']['boot-args'] = boot_args + ' debug=0x144'
config['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82'][
'boot-args'
] = f'{boot_args} debug=0x144'
config['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82']['csr-active-config'] = base64.b64decode('fwgAAA==')
with open(config_path, 'wb') as f:
plistlib.dump(config, f)
Expand Down Expand Up @@ -421,8 +423,7 @@ def main():
if cfg.get('User', 'skipcfu', fallback = '0') == '0':
check_updates()
check_cfg_integrity()
user_mode = read_cfg()
if user_mode:
if user_mode := read_cfg():
clr_print_logo()
logging.info(f"Using mode: {user_mode}")
run_cmd(PRESETS[user_mode], user_mode)
Expand Down

0 comments on commit 84de0a4

Please sign in to comment.