Skip to content
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

Fixes on the script "Fetch Mac Installer Distribution certificates" of the macOS example project #204

Open
daniel-dosiper opened this issue Feb 5, 2025 · 0 comments

Comments

@daniel-dosiper
Copy link

daniel-dosiper commented Feb 5, 2025

Describe the sample projects update you'd like to see
Fixes on the script "Fetch Mac Installer Distribution certificates" of the macOS example project: https://github.com/codemagic-ci-cd/codemagic-sample-projects/tree/main/flutter/flutter-macos-demo-project

Additional context
The next script of this codemagic.yaml file is not working:

      - name: Fetch Mac Installer Distribution certificates
        script: |
          # HINT: We can use MAC_APP_DISTRIBUTION if looking to package the artifact before submitting it to App Store. 
          # And please note that the certificate type must match the one we are using in the Package macOS application script down below.
          app-store-connect certificates list --type MAC_INSTALLER_DISTRIBUTION --save || \
          app-store-connect certificates create --type MAC_INSTALLER_DISTRIBUTION --save          

The OR combination doesn't work as expected. Although the certificate doesn't exist (the first time the build is launched), the second command with the "create" option is never executed. Both commands work one by one (first launch with "create" and after that "list" to get the certificate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant