mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(mobile): use production profiles for PR builds (dev profiles not yet in match repo)
This commit is contained in:
@@ -252,10 +252,10 @@ jobs:
|
|||||||
security default-keychain -s build.keychain
|
security default-keychain -s build.keychain
|
||||||
security unlock-keychain -p "$KEYCHAIN_PASSWORD" build.keychain
|
security unlock-keychain -p "$KEYCHAIN_PASSWORD" build.keychain
|
||||||
security set-keychain-settings -t 3600 -l -u build.keychain
|
security set-keychain-settings -t 3600 -l -u build.keychain
|
||||||
|
|
||||||
# Add keychain to search list (required for codesign to find certificates)
|
# Add keychain to search list (required for codesign to find certificates)
|
||||||
security list-keychains -d user -s build.keychain login.keychain
|
security list-keychains -d user -s build.keychain login.keychain
|
||||||
|
|
||||||
# Download and install Apple WWDR certificates (required for code signing)
|
# Download and install Apple WWDR certificates (required for code signing)
|
||||||
curl -sL https://developer.apple.com/certificationauthority/AppleWWDRCA.cer -o AppleWWDRCA.cer
|
curl -sL https://developer.apple.com/certificationauthority/AppleWWDRCA.cer -o AppleWWDRCA.cer
|
||||||
curl -sL https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer -o AppleWWDRCAG3.cer
|
curl -sL https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer -o AppleWWDRCAG3.cer
|
||||||
|
|||||||
@@ -243,13 +243,13 @@ end
|
|||||||
# Use the same build process as production, just skip the upload
|
# Use the same build process as production, just skip the upload
|
||||||
# This ensures PR builds validate the same way as production builds
|
# This ensures PR builds validate the same way as production builds
|
||||||
|
|
||||||
# Sync certificates and profiles using match
|
# Sync certificates and profiles using match (use production profiles)
|
||||||
sync_code_signing(app_identifiers: DEV_APP_IDENTIFIERS)
|
sync_code_signing(app_identifiers: PROD_APP_IDENTIFIERS)
|
||||||
|
|
||||||
# Configure code signing for dev bundle IDs
|
# Configure code signing for production bundle IDs
|
||||||
configure_code_signing(bundle_id_suffix: "development")
|
configure_code_signing
|
||||||
|
|
||||||
# Build the app (same as gha_testflight_dev but without upload)
|
# Build the app (same as production but without upload)
|
||||||
build_app(
|
build_app(
|
||||||
scheme: "Runner",
|
scheme: "Runner",
|
||||||
workspace: "Runner.xcworkspace",
|
workspace: "Runner.xcworkspace",
|
||||||
@@ -259,9 +259,9 @@ end
|
|||||||
xcargs: "-skipMacroValidation CODE_SIGN_IDENTITY='#{CODE_SIGN_IDENTITY}' CODE_SIGN_STYLE=Manual",
|
xcargs: "-skipMacroValidation CODE_SIGN_IDENTITY='#{CODE_SIGN_IDENTITY}' CODE_SIGN_STYLE=Manual",
|
||||||
export_options: {
|
export_options: {
|
||||||
provisioningProfiles: {
|
provisioningProfiles: {
|
||||||
"#{BASE_BUNDLE_ID}.development" => "match AppStore #{BASE_BUNDLE_ID}.development",
|
"#{BASE_BUNDLE_ID}" => "match AppStore #{BASE_BUNDLE_ID}",
|
||||||
"#{BASE_BUNDLE_ID}.development.ShareExtension" => "match AppStore #{BASE_BUNDLE_ID}.development.ShareExtension",
|
"#{BASE_BUNDLE_ID}.ShareExtension" => "match AppStore #{BASE_BUNDLE_ID}.ShareExtension",
|
||||||
"#{BASE_BUNDLE_ID}.development.Widget" => "match AppStore #{BASE_BUNDLE_ID}.development.Widget"
|
"#{BASE_BUNDLE_ID}.Widget" => "match AppStore #{BASE_BUNDLE_ID}.Widget"
|
||||||
},
|
},
|
||||||
signingStyle: "manual",
|
signingStyle: "manual",
|
||||||
signingCertificate: CODE_SIGN_IDENTITY
|
signingCertificate: CODE_SIGN_IDENTITY
|
||||||
|
|||||||
Reference in New Issue
Block a user