这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 15 additions & 37 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,53 +25,32 @@ platform :ios do
scan
end

desc "Update certificates and profiles"
desc "Deploy a new version to the App Store"
lane :update_match do
# Before calling match, we make sure all our devices are registered on the Apple Developer Portal
create_keychain(
name: ENV["MATCH_KEYCHAIN_NAME"],
password: ENV["MATCH_KEYCHAIN_PASSWORD"],
default_keychain: true,
unlock: true,
timeout: 3600,
add_to_search_list: true
)

unlock_keychain(
path: ENV["MATCH_KEYCHAIN_NAME"],
add_to_search_list: :replace,
password: ENV['MATCH_KEYCHAIN_PASSWORD']
)

register_devices(
devices_file: "./fastlane/devices.txt"
)

# After registering the new devices, we'll make sure to update the provisioning profile if necessary
# options for type are "adhoc", "development", "appstore"
match(
app_identifier: "com.EverFox.AnimeTrakr",
git_url: "https://github.com/hummingbird-me/certificates.git",
type: "development",
force_for_new_devices: true,
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"]
force_for_new_devices: true
)

match(
app_identifier: "com.EverFox.AnimeTrakr",
type: "appstore",
force_for_new_devices: true,
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"]
git_url: "https://github.com/hummingbird-me/certificates.git",
type: "adhoc",
force_for_new_devices: true
)

match(
match(
app_identifier: "com.EverFox.AnimeTrakr",
type: "adhoc",
force_for_new_devices: true,
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"]
git_url: "https://github.com/hummingbird-me/certificates.git",
type: "appstore"
)

end

desc "Generate a new Build"
Expand Down Expand Up @@ -140,14 +119,13 @@ platform :ios do

desc "Submit a new Alpha/Beta Build to Testflight"
lane :alpha_testflight do
update_match()
#build()
build()

# Auto submit for alpha testers
#pilot(
# skip_submission: true,
# skip_waiting_for_build_processing: true,
#)
pilot(
skip_submission: true,
skip_waiting_for_build_processing: true,
)
end

desc "Deploy a new version to the App Store"
Expand Down
4 changes: 2 additions & 2 deletions ios/fastlane/Matchfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# git_url "git@github.com:hummingbird-me/certificates.git" # ssh key
git_url "https://github.com/hummingbird-me/certificates.git"
git_url "git@github.com:hummingbird-me/certificates.git" # ssh key
# git_url "https://github.com/hummingbird-me/certificates.git"

app_identifier "com.EverFox.AnimeTrakr"
username "josh@kitsu.io" # Your Apple Developer Portal username
39 changes: 25 additions & 14 deletions ios/fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,25 @@ Make sure you have the latest version of the Xcode command line tools installed:
xcode-select --install
```

Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`
## Choose your installation method:

<table width="100%" >
<tr>
<th width="33%"><a href="http://brew.sh">Homebrew</a></td>
<th width="33%">Installer Script</td>
<th width="33%">Rubygems</td>
</tr>
<tr>
<td width="33%" align="center">macOS</td>
<td width="33%" align="center">macOS</td>
<td width="33%" align="center">macOS or Linux with Ruby 2.0.0 or above</td>
</tr>
<tr>
<td width="33%"><code>brew cask install fastlane</code></td>
<td width="33%"><a href="https://download.fastlane.tools">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
<td width="33%"><code>sudo gem install fastlane -NV</code></td>
</tr>
</table>

# Available Actions
## iOS
Expand All @@ -25,17 +39,14 @@ Runs all the tests
```
fastlane ios update_match
```
Update certificates and profiles
### ios build
```
fastlane ios build
```
Generate a new Build
### ios alpha_testflight
Deploy a new version to the App Store
### ios beta
```
fastlane ios alpha_testflight
fastlane ios beta
```
Submit a new Alpha/Beta Build to Testflight
Submit a new Beta Build to crashlytics

This will also make sure the profile is up to date
### ios release
```
fastlane ios release
Expand Down