mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09:00
Add android build automation via fastlane
This commit is contained in:
parent
3c208b709b
commit
a41356cf0e
@ -1,5 +1,39 @@
|
|||||||
update_fastlane
|
update_fastlane
|
||||||
|
|
||||||
|
platform :android do
|
||||||
|
desc 'Deploy to play store'
|
||||||
|
lane :beta do |options|
|
||||||
|
# update csproj version
|
||||||
|
update_version(options)
|
||||||
|
|
||||||
|
build(
|
||||||
|
build_configuration: 'Release',
|
||||||
|
)
|
||||||
|
|
||||||
|
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(
|
||||||
|
solution_path: 'osu.Android.sln',
|
||||||
|
platform: "android",
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
lane :update_version do |options|
|
||||||
|
options[:plist_path] = '../osu.iOS/Info.plist'
|
||||||
|
app_version(options)
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
platform :ios do
|
platform :ios do
|
||||||
desc 'Deploy to testflight'
|
desc 'Deploy to testflight'
|
||||||
lane :beta do |options|
|
lane :beta do |options|
|
||||||
|
@ -15,6 +15,25 @@ Install _fastlane_ using
|
|||||||
or alternatively using `brew cask install fastlane`
|
or alternatively using `brew cask install fastlane`
|
||||||
|
|
||||||
# Available Actions
|
# Available Actions
|
||||||
|
## Android
|
||||||
|
### android beta
|
||||||
|
```
|
||||||
|
fastlane android beta
|
||||||
|
```
|
||||||
|
Deploy to play store
|
||||||
|
### android build
|
||||||
|
```
|
||||||
|
fastlane android build
|
||||||
|
```
|
||||||
|
Compile the project
|
||||||
|
### android update_version
|
||||||
|
```
|
||||||
|
fastlane android update_version
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
## iOS
|
## iOS
|
||||||
### ios beta
|
### ios beta
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user