stevezhengshiqi / one-key-cpufriend

Generate customized CPUFriendDataProvider.kext for dynamic macOS CPU power management
337 stars 47 forks source link

When I ran the provided script, it gave this error [ ERROR ]: Failed to retrieve latest release from https://api.github.com/repos/acidanthera/CPUFriend/releases/latest, please check your connection! #15

Closed skandavc18 closed 4 years ago

stevezhengshiqi commented 4 years ago

As the prompt says, it is a network issue. Please make sure your network service can access apt.github.com without problems.

skandavc18 commented 4 years ago

Even with a good network, I am still getting that error

stevezhengshiqi commented 4 years ago

Well, that's something I am not able to fix. And if the network is good, you should not have this issue. In the script, it uses curl command to obtain the latest release number. It seems that your device didn't pass this command:

curl --silent https://api.github.com/repos/acidanthera/CPUFriend/releases/latest | grep 'tag_name' | head -n 1 | awk -F ":" '{print $2}' | tr -d '"' | tr -d ',' | tr -d ' '

You could try this command or ping api.github.com to check the network quality.