mirror of
https://github.com/yattee/yattee.git
synced 2026-02-19 09:19:46 +00:00
Use fastlane update_code_signing_settings for manual signing
Replaced sed-based CODE_SIGN_STYLE override with fastlane's update_code_signing_settings which also sets PROVISIONING_PROFILE_SPECIFIER. This fixes the YatteeShareExtension build failure where it couldn't find a provisioning profile under manual signing.
This commit is contained in:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -85,9 +85,6 @@ jobs:
|
||||
ruby-version: '3.4'
|
||||
bundler-cache: true
|
||||
cache-version: 1
|
||||
- name: Set signing to manual for CI
|
||||
run: |
|
||||
sed -i '' 's/CODE_SIGN_STYLE = Automatic/CODE_SIGN_STYLE = Manual/' Yattee.xcodeproj/project.pbxproj
|
||||
- name: Set build number
|
||||
run: |
|
||||
sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ needs.determine_build_number.outputs.build_number }}/' Yattee.xcodeproj/project.pbxproj
|
||||
@@ -114,9 +111,6 @@ jobs:
|
||||
ruby-version: '3.4'
|
||||
bundler-cache: true
|
||||
cache-version: 1
|
||||
- name: Set signing to manual for CI
|
||||
run: |
|
||||
sed -i '' 's/CODE_SIGN_STYLE = Automatic/CODE_SIGN_STYLE = Manual/' Yattee.xcodeproj/project.pbxproj
|
||||
- name: Set build number
|
||||
run: |
|
||||
sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ needs.determine_build_number.outputs.build_number }}/' Yattee.xcodeproj/project.pbxproj
|
||||
@@ -143,9 +137,6 @@ jobs:
|
||||
ruby-version: '3.4'
|
||||
bundler-cache: true
|
||||
cache-version: 1
|
||||
- name: Set signing to manual for CI
|
||||
run: |
|
||||
sed -i '' 's/CODE_SIGN_STYLE = Automatic/CODE_SIGN_STYLE = Manual/' Yattee.xcodeproj/project.pbxproj
|
||||
- name: Set build number
|
||||
run: |
|
||||
sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ needs.determine_build_number.outputs.build_number }}/' Yattee.xcodeproj/project.pbxproj
|
||||
@@ -175,9 +166,6 @@ jobs:
|
||||
ruby-version: '3.4'
|
||||
bundler-cache: true
|
||||
cache-version: 1
|
||||
- name: Set signing to manual with Developer ID
|
||||
run: |
|
||||
sed -i '' 's/CODE_SIGN_STYLE = Automatic/CODE_SIGN_STYLE = Manual/' Yattee.xcodeproj/project.pbxproj
|
||||
- name: Set build number
|
||||
run: |
|
||||
sed -i '' 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ env.BUILD_NUMBER }}/' Yattee.xcodeproj/project.pbxproj
|
||||
|
||||
@@ -111,6 +111,22 @@ platform :ios do
|
||||
api_key: api_key
|
||||
)
|
||||
|
||||
update_code_signing_settings(
|
||||
use_automatic_signing: false,
|
||||
path: XCODEPROJ,
|
||||
team_id: TEAM_ID,
|
||||
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER}",
|
||||
targets: [SCHEME]
|
||||
)
|
||||
|
||||
update_code_signing_settings(
|
||||
use_automatic_signing: false,
|
||||
path: XCODEPROJ,
|
||||
team_id: TEAM_ID,
|
||||
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER}.ShareExtension",
|
||||
targets: ["YatteeShareExtension"]
|
||||
)
|
||||
|
||||
build_app(
|
||||
scheme: SCHEME,
|
||||
destination: "generic/platform=iOS",
|
||||
@@ -164,6 +180,14 @@ platform :tvos do
|
||||
api_key: api_key
|
||||
)
|
||||
|
||||
update_code_signing_settings(
|
||||
use_automatic_signing: false,
|
||||
path: XCODEPROJ,
|
||||
team_id: TEAM_ID,
|
||||
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER} tvos",
|
||||
targets: [SCHEME]
|
||||
)
|
||||
|
||||
build_app(
|
||||
scheme: SCHEME,
|
||||
destination: "generic/platform=tvOS",
|
||||
@@ -218,6 +242,14 @@ platform :mac do
|
||||
api_key: api_key
|
||||
)
|
||||
|
||||
update_code_signing_settings(
|
||||
use_automatic_signing: false,
|
||||
path: XCODEPROJ,
|
||||
team_id: TEAM_ID,
|
||||
profile_name: "match AppStore #{DEVELOPER_APP_IDENTIFIER} macos",
|
||||
targets: [SCHEME]
|
||||
)
|
||||
|
||||
build_mac_app(
|
||||
scheme: SCHEME,
|
||||
output_directory: "fastlane/builds/#{version}-#{build}/macOS",
|
||||
@@ -268,6 +300,14 @@ platform :mac do
|
||||
api_key: api_key
|
||||
)
|
||||
|
||||
update_code_signing_settings(
|
||||
use_automatic_signing: false,
|
||||
path: XCODEPROJ,
|
||||
team_id: TEAM_ID,
|
||||
profile_name: "match Direct #{DEVELOPER_APP_IDENTIFIER} macos",
|
||||
targets: [SCHEME]
|
||||
)
|
||||
|
||||
build_mac_app(
|
||||
scheme: SCHEME,
|
||||
output_directory: "fastlane/builds/#{version}-#{build}/macOS",
|
||||
|
||||
Reference in New Issue
Block a user