mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Update fastlane to copy the release file with name
This commit is contained in:
@@ -12,6 +12,14 @@
|
||||
default_platform(:android)
|
||||
|
||||
platform :android do
|
||||
|
||||
desc "Clean repo"
|
||||
lane :clean do
|
||||
gradle(
|
||||
task: 'clean'
|
||||
)
|
||||
end
|
||||
|
||||
desc "Runs all the tests"
|
||||
lane :tests do
|
||||
gradle(task: "test")
|
||||
@@ -31,6 +39,9 @@ platform :android do
|
||||
"android.injected.signing.key.password" => options[:keypass],
|
||||
}
|
||||
)
|
||||
sh("mkdir", "-p", "../releases")
|
||||
@releaseFile = "../releases/KeePassDX-" + android_get_version_name + ".apk"
|
||||
sh("cp", "../app/build/outputs/apk/free/release/app-free-release.apk", @releaseFile)
|
||||
end
|
||||
|
||||
desc "Deploy a new Free Beta version to the Google Play"
|
||||
@@ -46,7 +57,7 @@ platform :android do
|
||||
gradle(
|
||||
task: 'clean'
|
||||
)
|
||||
sh("git", "checkout", ".")
|
||||
reset_git_repo
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
5
fastlane/Pluginfile
Normal file
5
fastlane/Pluginfile
Normal file
@@ -0,0 +1,5 @@
|
||||
# Autogenerated by fastlane
|
||||
#
|
||||
# Ensure this file is checked in to source control!
|
||||
|
||||
gem 'fastlane-plugin-versioning_android'
|
||||
@@ -15,6 +15,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
|
||||
|
||||
## Android
|
||||
|
||||
### android clean
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane android clean
|
||||
```
|
||||
|
||||
Clean repo
|
||||
|
||||
### android tests
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user