mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 13:42:27 -05:00
add match actions to Fastfile
This commit is contained in:
parent
53d51df4c5
commit
ef8d47920b
4 changed files with 90 additions and 6 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -25,3 +25,10 @@ npm-*
|
|||
# generated translation files
|
||||
/translations
|
||||
/locale
|
||||
|
||||
# Fastlane
|
||||
**/fastlane/Matchfile
|
||||
**/fastlane/report.xml
|
||||
**/fastlane/Preview.html
|
||||
**/fastlane/screenshots
|
||||
**/fastlane/test_output
|
||||
|
|
|
@ -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
|
||||
|
|
31
fastlane/README-match.md
Normal file
31
fastlane/README-match.md
Normal file
|
@ -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`
|
40
fastlane/README.md
Normal file
40
fastlane/README.md
Normal file
|
@ -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).
|
Loading…
Reference in a new issue