2019-03-01 05:46:48 +00:00
|
|
|
update_fastlane
|
|
|
|
|
2019-08-16 07:30:46 +00:00
|
|
|
platform :android do
|
|
|
|
desc 'Deploy to play store'
|
|
|
|
lane :beta do |options|
|
2019-09-16 09:08:11 +00:00
|
|
|
|
|
|
|
options[:solution_path] = 'osu.Android.sln'
|
|
|
|
|
2019-08-16 07:30:46 +00:00
|
|
|
# update csproj version
|
|
|
|
update_version(options)
|
|
|
|
|
2019-09-09 02:59:58 +00:00
|
|
|
build()
|
2019-08-16 07:30:46 +00:00
|
|
|
|
|
|
|
client = HTTPClient.new
|
|
|
|
changelog = client.get_content 'https://gist.githubusercontent.com/peppy/ab89c29dcc0dce95f39eb218e8fad197/raw'
|
|
|
|
changelog.gsub!('$BUILD_ID', options[:build])
|
|
|
|
end
|
|
|
|
|
|
|
|
desc 'Compile the project'
|
|
|
|
lane :build do
|
|
|
|
nuget_restore(
|
|
|
|
project_path: 'osu.Android.sln'
|
|
|
|
)
|
|
|
|
|
|
|
|
souyuz(
|
2019-09-09 02:59:58 +00:00
|
|
|
build_configuration: 'Release',
|
2019-08-16 07:30:46 +00:00
|
|
|
solution_path: 'osu.Android.sln',
|
|
|
|
platform: "android",
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
lane :update_version do |options|
|
|
|
|
app_version(options)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2019-03-01 05:46:48 +00:00
|
|
|
platform :ios do
|
|
|
|
desc 'Deploy to testflight'
|
|
|
|
lane :beta do |options|
|
2019-03-01 08:20:28 +00:00
|
|
|
update_version(options)
|
|
|
|
|
2019-03-01 05:46:48 +00:00
|
|
|
provision(
|
|
|
|
type: 'appstore'
|
|
|
|
)
|
|
|
|
|
|
|
|
build(
|
|
|
|
build_configuration: 'Release',
|
|
|
|
build_platform: 'iPhone'
|
|
|
|
)
|
|
|
|
|
2019-03-01 08:19:41 +00:00
|
|
|
client = HTTPClient.new
|
|
|
|
changelog = client.get_content 'https://gist.githubusercontent.com/peppy/ab89c29dcc0dce95f39eb218e8fad197/raw'
|
|
|
|
changelog.gsub!('$BUILD_ID', options[:build])
|
|
|
|
|
2019-03-01 05:46:48 +00:00
|
|
|
pilot(
|
2019-05-18 03:58:13 +00:00
|
|
|
wait_processing_interval: 1800,
|
2019-03-01 08:19:41 +00:00
|
|
|
changelog: changelog,
|
2019-03-01 05:46:48 +00:00
|
|
|
ipa: './osu.iOS/bin/iPhone/Release/osu.iOS.ipa'
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
desc 'Compile the project'
|
|
|
|
lane :build do
|
2019-03-01 07:02:43 +00:00
|
|
|
nuget_restore(
|
|
|
|
project_path: 'osu.iOS.sln'
|
|
|
|
)
|
|
|
|
|
2019-03-01 05:46:48 +00: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
|
2019-08-16 06:44:38 +00:00
|
|
|
|
|
|
|
lane :update_version do |options|
|
|
|
|
options[:plist_path] = '../osu.iOS/Info.plist'
|
|
|
|
app_version(options)
|
|
|
|
end
|
|
|
|
|
|
|
|
lane :testflight_prune_dry do
|
|
|
|
clean_testflight_testers(days_of_inactivity:45, dry_run: true)
|
|
|
|
end
|
|
|
|
|
|
|
|
lane :testflight_prune do
|
|
|
|
clean_testflight_testers(days_of_inactivity: 45)
|
|
|
|
end
|
2019-03-01 05:46:48 +00:00
|
|
|
end
|