Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed Feb 26, 2024
1 parent cb7502f commit 7afa5fa
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/flutter_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ jobs:
TEMP_KEYCHAIN_PASSWORD: '${{ secrets.TEMP_KEYCHAIN_PASSWORD }}'
run: |
cd ios
bundle exec fastlane beta_build_only
bundle exec fastlane prod_build_only
44 changes: 44 additions & 0 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,47 @@ platform :ios do
end
end
end

desc "Build a new production package but do nothing with it"
lane :prod_build_only do
keychain_name = TEMP_KEYCHAIN_USER
keychain_password = TEMP_KEYCHAIN_PASSWORD

begin
ensure_temp_keychain(keychain_name, keychain_password)

match(
type: "adhoc",
app_identifier: ['com.keevault.keevault', 'com.keevault.keevault.autofill'],
readonly: true,
keychain_name: keychain_name,
keychain_password: keychain_password
)
update_project_provisioning(
xcodeproj: "Runner.xcodeproj",
profile: ENV['sigh_com.keevault.keevault_adhoc_profile-path'],
target_filter: ".*Runner.*",
build_configuration: "Release"
)
update_project_provisioning(
xcodeproj: "Runner.xcodeproj",
profile: ENV['sigh_com.keevault.keevault.autofill_adhoc_profile-path'],
target_filter: ".*KeeVaultAutofill.*",
build_configuration: "Release"
)
build_app(
workspace: "Runner.xcworkspace",
scheme: "Runner",
configuration: 'Release',
export_method: 'ad-hoc',
export_options: {
provisioningProfiles: {
'com.keevault.keevault' => 'match AdHoc com.keevault.keevault',
'com.keevault.keevault.autofill' => 'match AdHoc com.keevault.keevault.autofill'
}
}
)
ensure
delete_temp_keychain(keychain_name)
end
end

0 comments on commit 7afa5fa

Please sign in to comment.