Debug v2.4.7

pull/28/head
fengyuecanzhu 2 years ago
parent a28a11e4ed
commit 740bd08f86
No known key found for this signature in database
GPG Key ID: 04B78AD06A9D6E6C
  1. 2
      .github/workflows/build.yml
  2. 7
      app/build.gradle

@ -88,4 +88,4 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: app name: app
path: ${{ steps.get_path.outputs.file_path }}/风月读书${{ steps.config.outputs.version_name }}.apk path: ${{ steps.get_path.outputs.file_path }}/风月读书*.apk

@ -111,8 +111,13 @@ android {
} }
} }
android.applicationVariants.all { variant -> android.applicationVariants.all { variant ->
def buildType = variant.buildType.name
def fileName = "${name}v${defaultConfig.versionName}.apk"
if (buildType == "debug"){
fileName = "${name}v${defaultConfig.versionName}-${commitId}.apk"
}
variant.outputs.all { variant.outputs.all {
outputFileName = "${name}v${defaultConfig.versionName}.apk" outputFileName = fileName
} }
/*variant.outputs.each { output -> /*variant.outputs.each { output ->
def abi = output.getFilter(OutputFile.ABI) def abi = output.getFilter(OutputFile.ABI)

Loading…
Cancel
Save