Fix update block

This commit is contained in:
jetfir3
2023-10-02 11:11:24 -04:00
committed by jetfir3
parent b582f16c26
commit 3baf71f3a4
2 changed files with 2 additions and 2 deletions

View File

@@ -86,6 +86,6 @@ bash <(curl -sSL https://spotx-official.github.io/run.sh) -B --installmac
```
</details>
### Thanks
### Thanks:
- [amd64fox](https://github.com/amd64fox/) of [SpotX](https://github.com/SpotX-Official/SpotX)

View File

@@ -635,7 +635,7 @@ rm "${xpuiSpa}"
rm -rf "${xpuiDir}"
if [[ "${platformType}" == "macOS" ]]; then
[[ "${blockUpdates}" ]] && { $perlVar 's|\x64(?=\x65\x73\x6B\x74\x6F\x70\x2D\x75\x70)|\x00|' "${appBinary}"; printf "\xE2\x9C\x94\x20\x42\x6C\x6F\x63\x6B\x65\x64\x20\x61\x75\x74\x6F\x6D\x61\x74\x69\x63\x20\x75\x70\x64\x61\x74\x65\x73\n"; }
[[ "${blockUpdates}" ]] && { $perlVar 's|\x64(?=\x65\x73\x6B\x74\x6F\x70\x2D\x75\x70)|\x00|g' "${appBinary}"; printf "\xE2\x9C\x94\x20\x42\x6C\x6F\x63\x6B\x65\x64\x20\x61\x75\x74\x6F\x6D\x61\x74\x69\x63\x20\x75\x70\x64\x61\x74\x65\x73\n"; }
[[ -z "${skipCodesign+x}" ]] && { codesign -f --deep -s - "${appPath}" 2>/dev/null; printf "\xE2\x9C\x94\x20\x43\x6F\x64\x65\x73\x69\x67\x6E\x65\x64\x20\x53\x70\x6F\x74\x69\x66\x79\n"; }
xattr -cr "${appPath}" 2>/dev/null
fi