From 8b53ca8bf813a591d0907c32d51733185963f28a Mon Sep 17 00:00:00 2001 From: somebasj Date: Mon, 5 Sep 2022 16:20:45 +0800 Subject: [PATCH] fix codesign --- readme.md | 9 ++++----- scripts/build.sh | 12 ------------ scripts/install.sh | 6 +++--- scripts/publish.sh | 6 +++--- src/main.cpp | 2 +- 5 files changed, 11 insertions(+), 24 deletions(-) diff --git a/readme.md b/readme.md index f866b6a..e38ec00 100644 --- a/readme.md +++ b/readme.md @@ -2,9 +2,10 @@ Crack for Parallels Desktop. -- [x] Support Intel & Apple Silicon (M1) -- [ ] Network problem -- [ ] USB problem +- [x] Support Intel +- [ ] Support Apple Silicon (M1) +- [ ] Network +- [ ] USB # Network & USB problem @@ -27,8 +28,6 @@ After this, network will work, USB only work with storage device. # Build ``` -brew install llvm -git submodule update --init --recursive ./scripts/build.bat ``` diff --git a/scripts/build.sh b/scripts/build.sh index ddaab63..99b928e 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -3,18 +3,6 @@ CUR_PATH=$(cd "$(dirname $(readlink -f "$0"))" && pwd) ROOT_PATH=$(cd "${CUR_PATH}/../" && pwd) -export CC -export CXX -export PATH - -if [ -f /usr/local/opt/llvm/bin/clang ]; then - CC=/usr/local/opt/llvm/bin/clang - CXX=/usr/local/opt/llvm/bin/clang++ - PATH="/usr/local/opt/llvm/bin:$PATH" -else - echo '[*] not found llvm homebrew version, you can install with "brew install llvm".' -fi - cmake -S "${ROOT_PATH}" -B "${ROOT_PATH}/build" \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \ diff --git a/scripts/install.sh b/scripts/install.sh index 361a21c..1f96a3e 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -9,12 +9,12 @@ CRACK_LIB_DST_NAME="libUIWarp" CODESIGN_CERT=- -if [ -n "$(security find-identity -v -p codesigning | grep B8474E27C322DFB3D4A0168127EB02DB877C3F81)" ]; then - CODESIGN_CERT=B8474E27C322DFB3D4A0168127EB02DB877C3F81 +if [ -n "$(security find-identity -v -p codesigning | grep 6E7BDDB56DD3D9C35A1EAFC787040ADF426EE7F2)" ]; then + CODESIGN_CERT=6E7BDDB56DD3D9C35A1EAFC787040ADF426EE7F2 fi function sign_cmd() { - codesign -f -s ${CODESIGN_CERT} -o runtime --all-architectures --deep "$@" + codesign -f -s ${CODESIGN_CERT} --all-architectures --deep "$@" } function kill_ptfm_app() { diff --git a/scripts/publish.sh b/scripts/publish.sh index d06313d..099caa9 100644 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -22,8 +22,8 @@ PDFM_PUBLISH_FILE="${PUBLISH_PATH}/ParallelsDesktop-${PDFM_VERSION}_Crack.dmg" CODESIGN_CERT=- -if [ -n "$(security find-identity -v -p codesigning | grep B8474E27C322DFB3D4A0168127EB02DB877C3F81)" ]; then - CODESIGN_CERT=B8474E27C322DFB3D4A0168127EB02DB877C3F81 +if [ -n "$(security find-identity -v -p codesigning | grep 6E7BDDB56DD3D9C35A1EAFC787040ADF426EE7F2)" ]; then + CODESIGN_CERT=6E7BDDB56DD3D9C35A1EAFC787040ADF426EE7F2 fi CRACK_LIB_DST_NAME="libUIWarp" @@ -33,7 +33,7 @@ PTFM_TMP_DIR="${TEMP_PATH}/ptfm_files" PDFM_TMP_DIR="${TEMP_PATH}/pdfm_files" function sign_cmd() { - codesign -f -s ${CODESIGN_CERT} -o runtime --all-architectures --deep "$@" + codesign -f -s ${CODESIGN_CERT} --all-architectures --deep "$@" } function ensure_download_ptfm_dmg() { diff --git a/src/main.cpp b/src/main.cpp index 80ecc9b..2b0abe0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -115,7 +115,7 @@ void func_write_fake_license() 0xD0, 0xFA, 0xFA, 0xFA, 0xFA, 0xF8, 0xAA, 0xAF, 0xB8, 0xB6, 0xB3, 0xB9, 0x99, 0xBF, 0xA8, 0xAE, 0xA9, 0xF8, 0xE0, 0xFA, 0xF8, 0xF8, 0xF6, 0xD0, 0xFA, 0xFA, 0xFA, 0xFA, 0xF8, 0xA9, 0xB3, 0xBD, 0xB4, 0xBB, 0xAE, 0xAF, 0xA8, 0xBF, 0xF8, 0xE0, 0xFA, 0xF8, 0xF8, 0xD0, 0xA7 -}; + }; // const char* fake_license_data = "{\n "license": "{\\"name\\": null, \\"uuid\\": \\"\\", \\"lic_key\\": \\"\\", \\"product_version\\": \\"18.*\\", \\"is_upgrade\\": false, \\"is_sublicense\\": false, \\"parent_key\\": null, \\"parent_uuid\\": null, \\"main_period_ends_at\\": \\"2099-09-09 00:00:00\\", \\"grace_period_ends_at\\": \\"2099-09-09 00:00:00\\", \\"is_auto_renewable\\": false, \\"is_nfr\\": false, \\"is_beta\\": false, \\"is_china\\": false, \\"is_suspended\\": false, \\"is_expired\\": false, \\"is_grace_period\\": false, \\"is_purchased_online\\": false, \\"limit\\": 10, \\"usage\\": 1, \\"edition\\": 2, \\"platform\\": 3, \\"product\\": 7, \\"offline\\": true, \\"cpu_limit\\": 32, \\"ram_limit\\": 131072, \\"hosts\\": [{\\"name\\": \\"GDPR_HIDDEN\\", \\"hw_id\\": \\"\\", \\"product_version\\": \\"\\", \\"activated_at\\": \\"2021-05-09 00:00:00\\"}], \\"is_trial\\": false}",\n "publicCerts": "",\n "signature": ""\n}";