Skip to content

Commit

Permalink
Use regex for certificate name
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Nov 9, 2024
1 parent a8a1a51 commit 374dcee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/scripts/setup-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ fi
source "$(dirname $(realpath $0))/constants.sh"
source "$(dirname $(realpath $0))/unlock-keychain.sh"

certificate_path="$REPOSITORY_PATH/Configuration/6YXTQTG8JJ_development.p12"
certificate_password="6YXTQTG8JJ"
configuration_repo="github.com/SRGSSR/pillarbox-apple-configuration.git"
configuration_dir_path="$REPOSITORY_PATH/Configuration"
configuration_repo="github.com/SRGSSR/pillarbox-apple-configuration.git"
configuration_script="$REPOSITORY_PATH/Scripts/checkout-configuration.sh"
configuration_branch="certificate"
configuration_commit="HEAD"

certificate_path=$(realpath "$configuration_dir_path/*.p12")
certificate_password="6YXTQTG8JJ"

function import_certificate {
security import $certificate_path -k $keychain_path -P $certificate_password -T /usr/bin/security -T /usr/bin/codesign
}
Expand Down

0 comments on commit 374dcee

Please sign in to comment.