-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diferentiate between Intel and ARM in macOS packages #5913
Comments
Its actually not entirely clear that this even works on M1 macs - i get the sense that TCC doesn't permit it to read inside user directories on those, though thats anecdotal. |
Hi @sempervictus, we had permission-related issues on macOS since Catalina (wazuh/wazuh-qa#217) that we managed to fix by notarizing our package (wazuh/wazuh-packages#316). However, we plan to provide a native agent for M1: Best! |
Commenting just for the record, as there was nothing mentioned about universal FAT binaries: wazuh/wazuh-dashboard-plugins#5202 (comment) Note that from my experience the |
Here is a snippet how I did it from a GH Action after the final FAT binary was produced with - name: Notarize & Codesign
run: |
set -ex
echo -n "${{ secrets.CERT_P12 }}" | base64 --decode -o cert.p12
security create-keychain -p "${{ secrets.KEYCHAIN_PWD }}" build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "${{ secrets.KEYCHAIN_PWD }}" build.keychain
security import cert.p12 -k build.keychain -P "${{ secrets.CERT_P12_PWD }}" -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${{ secrets.KEYCHAIN_PWD }}" build.keychain
xcrun notarytool store-credentials "notarytool-profile" \
--apple-id "my.apple.id@email.com" \
--team-id "${{ secrets.APP_TEAM_ID }}" \
--password "${{ secrets.APP_SPECIFIC_PWD }}"
/usr/bin/codesign --force -s "${{ secrets.IDENTITY_ID }}" --options runtime path/to/binary -v
zip -r binary-submit.zip path/to/binary
xcrun notarytool submit binary-submit.zip --keychain-profile "notarytool-profile" --wait
# xcrun notarytool log $uuid --keychain-profile "notarytool-profile" /cc @vikman90 EDIT: I see you already have it implemented part of a shell script. |
On the packages list page, the macOS packages are indicated as
64bits
. This may be confusing for the user because the term64bits
is used in both Intel and ARM architectures.We need to specify that the packages are Intel based and clarify that they can be used in
Apple Silicon
systems through the use ofRosetta
.The text was updated successfully, but these errors were encountered: