mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-04 07:44:25 +02:00
Updated build again
This commit is contained in:
parent
197465924f
commit
d047ae97ee
6
.github/workflows/pr-build.yml
vendored
6
.github/workflows/pr-build.yml
vendored
@ -29,8 +29,12 @@ jobs:
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew assembleRelease --no-daemon -PnoProguard
|
||||
|
||||
- name: Get commit hash
|
||||
id: get_commit_hash
|
||||
run: echo "::set-output name=hash::$(git rev-parse --short HEAD)"
|
||||
|
||||
- name: Upload build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: revanced-manager
|
||||
name: revanced-manager-${{ steps.get_commit_hash.outputs.hash }}
|
||||
path: app/build/outputs/apk/release/*.apk
|
||||
|
@ -30,7 +30,7 @@
|
||||
{
|
||||
"assets": [
|
||||
{
|
||||
"path": "app/build/outputs/apk/release/*.apk"
|
||||
"path": "app/build/outputs/apk/release/revanced-manager*.apk"
|
||||
}
|
||||
],
|
||||
"successComment": false
|
||||
|
@ -33,7 +33,6 @@ android {
|
||||
|
||||
release {
|
||||
val hasReleaseConfig = (System.getenv("KEYSTORE_FILE") != null)
|
||||
var suffix = "v${project.version}"
|
||||
if (hasReleaseConfig) {
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
@ -44,29 +43,23 @@ 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")
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
val os = org.apache.commons.io.output.ByteArrayOutputStream()
|
||||
project.exec {
|
||||
commandLine = "git rev-parse --short HEAD".split(" ")
|
||||
standardOutput = os
|
||||
}
|
||||
suffix = String(os.toByteArray()).trim()
|
||||
}
|
||||
if (!project.hasProperty("noProguard")) {
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
applicationVariants.all {
|
||||
this.outputs
|
||||
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
|
||||
.forEach { output ->
|
||||
output.outputFileName = "revanced-manager-${suffix}.apk"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user