diff --git a/.gitignore b/.gitignore index e248d68..b9e2be3 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,10 @@ npm-* # generated translation files /translations /locale + +# Fastlane +**/fastlane/Matchfile +**/fastlane/report.xml +**/fastlane/Preview.html +**/fastlane/screenshots +**/fastlane/test_output diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 2e805ed..e82ddd6 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -15,9 +15,15 @@ default_platform(:mac) -#platform :mac do -# desc "Description of what the lane does" -# lane :custom_lane do -# # add actions here: https://docs.fastlane.tools/actions -# end -#end +platform :mac do + desc "Use Fastlane Match to install development certificates" + lane :match_dev do + match(type: "development", platform: "macos") + end + + desc "Use Fastlane Match to install distribution certificates" + lane :match_dist do + match(type: "appstore", platform: "macos") + match(type: "developer_id", platform: "macos", additional_cert_types: "developer_id_installer") + end +end diff --git a/fastlane/README-match.md b/fastlane/README-match.md new file mode 100644 index 0000000..848a909 --- /dev/null +++ b/fastlane/README-match.md @@ -0,0 +1,31 @@ +# Fastlane Match setup + +## You might not need to do this! + +If you don't plan to build this application, you don't need Fastlane Match. + +If you don't plan to build this application for macOS, you don't need Fastlane Match. + +If you plan to only run your builds locally for your own debug purposes, you don't need Fastlane Match. + +If you don't have access to a Fastlane Match storage repository or bucket, you don't need Fastlane Match. + +## Initial Configuration + +The `Matchfile` containing settings for Fastlane Match includes private information about our storage, so it's set to be ignored by `git`. + +This means that you'll need to initialize Fastlane Match yourself when you clone this repository in a new place. + +To initialize Fastlane Match: + +1. Enter this repository's base directory (not the `fastlane` subdirectory) +2. Run `fastlane match init` and answer the questions + +...yep, that's it. + +## Obtaining & Updating Certs + +1. If you plan to make and internally share development builds for testing purposes, run: + * `fastlane match_dev` +2. If you plan to make builds for release, run: + * `fastlane match_dist` diff --git a/fastlane/README.md b/fastlane/README.md new file mode 100644 index 0000000..4ed97f4 --- /dev/null +++ b/fastlane/README.md @@ -0,0 +1,40 @@ +fastlane documentation +---- + +# Installation + +Make sure you have the latest version of the Xcode command line tools installed: + +```sh +xcode-select --install +``` + +For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) + +# Available Actions + +## Mac + +### mac match_dev + +```sh +[bundle exec] fastlane mac match_dev +``` + +Use Fastlane Match to install development certificates + +### mac match_dist + +```sh +[bundle exec] fastlane mac match_dist +``` + +Use Fastlane Match to install distribution certificates + +---- + +This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. + +More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). + +The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).