1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-30 08:42:55 +08:00
osu-lazer/fastlane/Fastfile

66 lines
1.4 KiB
Plaintext
Raw Normal View History

2019-03-01 13:46:48 +08:00
update_fastlane
default_platform(:ios)
platform :ios do
2019-03-01 16:37:41 +08:00
lane :testflight_prune_dry do
2019-03-01 13:46:48 +08:00
clean_testflight_testers(days_of_inactivity:45, dry_run: true)
end
# Specify a custom number for what's "inactive"
2019-03-01 16:37:41 +08:00
lane :testflight_prune do
2019-03-01 13:46:48 +08:00
clean_testflight_testers(days_of_inactivity: 45) # 120 days, so about 4 months
end
lane :update_version do |options|
options[:plist_path] = '../osu.iOS/Info.plist'
app_version(options)
end
desc 'Deploy to testflight'
lane :beta do |options|
update_version(options)
2019-03-01 13:46:48 +08:00
provision(
type: 'appstore'
)
build(
build_configuration: 'Release',
build_platform: 'iPhone'
)
2019-03-01 16:19:41 +08:00
client = HTTPClient.new
changelog = client.get_content 'https://gist.githubusercontent.com/peppy/ab89c29dcc0dce95f39eb218e8fad197/raw'
changelog.gsub!('$BUILD_ID', options[:build])
2019-03-01 13:46:48 +08:00
pilot(
wait_processing_interval: 1800,
2019-03-01 16:19:41 +08:00
changelog: changelog,
2019-03-01 13:46:48 +08:00
ipa: './osu.iOS/bin/iPhone/Release/osu.iOS.ipa'
)
end
desc 'Compile the project'
lane :build do
2019-03-01 15:02:43 +08:00
nuget_restore(
project_path: 'osu.iOS.sln'
)
2019-03-01 13:46:48 +08:00
souyuz(
platform: "ios",
build_target: "osu_iOS",
plist_path: "../osu.iOS/Info.plist"
)
end
desc 'Install provisioning profiles using match'
lane :provision do |options|
if Helper.is_ci?
options[:readonly] = true
end
match(options)
end
end