mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-09 16:52:14 +01:00
Updated build again, again, again
This commit is contained in:
parent
fb3681d8c9
commit
9e4f1c2d3b
3 changed files with 18 additions and 14 deletions
12
.github/workflows/pr-build.yml
vendored
12
.github/workflows/pr-build.yml
vendored
|
@ -17,6 +17,10 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Get commit hash
|
||||
id: get_commit_hash
|
||||
run: echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
|
@ -27,14 +31,10 @@ jobs:
|
|||
uses: gradle/gradle-build-action@v2
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew assembleRelease --no-daemon -PnoProguard
|
||||
|
||||
- name: Get commit hash
|
||||
id: get_commit_hash
|
||||
run: echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
run: ./gradlew assembleRelease --no-daemon -PnoProguard -Psuffix=${{ steps.get_commit_hash.outputs.hash }}
|
||||
|
||||
- name: Upload build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: revanced-manager-${{ steps.get_commit_hash.outputs.hash }}.apk
|
||||
name: revanced-manager-${{ steps.get_commit_hash.outputs.hash }}
|
||||
path: app/build/outputs/apk/release/*.apk
|
||||
|
|
2
.github/workflows/release-build.yml
vendored
2
.github/workflows/release-build.yml
vendored
|
@ -48,5 +48,5 @@ jobs:
|
|||
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
|
||||
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||
run: |
|
||||
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > keystore.jks
|
||||
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > app/keystore.jks
|
||||
npx semantic-release
|
||||
|
|
|
@ -42,13 +42,6 @@ android {
|
|||
}
|
||||
}
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
applicationVariants.all {
|
||||
this.outputs
|
||||
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
|
||||
.forEach { output ->
|
||||
output.outputFileName = "revanced-manager-v${project.version}.apk"
|
||||
}
|
||||
}
|
||||
} else {
|
||||
applicationIdSuffix = ".debug"
|
||||
resValue("string", "app_name", "ReVanced Manager Debug")
|
||||
|
@ -59,6 +52,17 @@ android {
|
|||
isShrinkResources = true
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
var suffix = "v${project.version}"
|
||||
if (project.hasProperty("suffix")) {
|
||||
suffix = "${project.property("suffix")}"
|
||||
}
|
||||
applicationVariants.all {
|
||||
this.outputs
|
||||
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
|
||||
.forEach { output ->
|
||||
output.outputFileName = "revanced-manager-${suffix}.apk"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue