update: rename output file
This commit is contained in:
parent
2b4d2dfe85
commit
0e65d05433
2 changed files with 15 additions and 10 deletions
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
matrix:
|
||||
os: [ ubuntu-latest ]
|
||||
if: ${{ !startsWith(github.event.head_commit.message, 'docs:') }}
|
||||
|
||||
|
||||
steps:
|
||||
- name: Check out
|
||||
uses: actions/checkout@v2
|
||||
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
echo keyPassword='${{ secrets.ALIAS_KEY_PASSWORD }}' >> local.properties
|
||||
echo fileDir='../key.jks' >> local.properties
|
||||
echo ${{ secrets.KEY_STORE }} | base64 --decode > key.jks
|
||||
|
||||
|
||||
|
||||
- name: Cache Gradle
|
||||
uses: actions/cache@v2
|
||||
|
|
@ -44,16 +44,16 @@ jobs:
|
|||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||
restore-keys: ${{ runner.os }}-gradle-
|
||||
|
||||
|
||||
- name: Update submodules
|
||||
run: git submodule init && git submodule update
|
||||
|
||||
|
||||
- name: Make gradlew executable
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
|
||||
- name: Gradle prebuild
|
||||
run: ./gradlew prebuild
|
||||
|
||||
|
||||
- name: Replace android-hidden-api android.jar
|
||||
run: bash ./replace_android_hidden_api_jar.sh
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ jobs:
|
|||
id: buildRelease
|
||||
run: |
|
||||
./gradlew :app:assembleRelease
|
||||
echo "::set-output name=releaseName::`ls app/build/outputs/apk/release/Hide\ My\ Applist*-v*-release.apk | awk -F '(/|.apk)' '{print $6}'`"
|
||||
echo "::set-output name=releaseName::`ls app/build/outputs/apk/release/V*-release.apk | awk -F '(/|.apk)' '{print $6}'`"
|
||||
|
||||
|
||||
- name: Upload apk
|
||||
|
|
@ -70,13 +70,13 @@ jobs:
|
|||
with:
|
||||
name: ${{ steps.buildRelease.outputs.releaseName }}
|
||||
path: "app/build/outputs/apk/release/*.apk"
|
||||
|
||||
|
||||
- name: Upload mappings
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ steps.buildRelease.outputs.releaseName }}-mappings
|
||||
path: "app/build/outputs"
|
||||
|
||||
|
||||
- name: Post to channel
|
||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ plugins {
|
|||
id 'kotlin-android-extensions'
|
||||
}
|
||||
|
||||
def gitCommitHash = 'git rev-parse --verify --short HEAD'.execute().text.trim()
|
||||
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
ndkVersion '22.0.7026061'
|
||||
|
|
@ -19,6 +21,9 @@ android {
|
|||
|
||||
versionCode 47
|
||||
versionName "1.7.1.1 Beta"
|
||||
versionNameSuffix ".r${versionCode}"
|
||||
versionNameSuffix ".${gitCommitHash}"
|
||||
|
||||
buildConfigField "int", "SERVICE_VERSION", "47"
|
||||
buildConfigField "int", "MIN_RIRU_VERSION", "15"
|
||||
buildConfigField "int", "MIN_BACKUP_VERSION", "46"
|
||||
|
|
@ -41,7 +46,7 @@ android {
|
|||
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.all {
|
||||
outputFileName = "$rootProject.name-v${variant.versionName}(${variant.versionCode})-${variant.buildType.name}.apk"
|
||||
outputFileName = "V${variant.versionName}-${variant.buildType.name}.apk"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue