mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-04 15:54: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
|
- name: Build with Gradle
|
||||||
run: ./gradlew assembleRelease --no-daemon -PnoProguard
|
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
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: revanced-manager
|
name: revanced-manager-${{ steps.get_commit_hash.outputs.hash }}
|
||||||
path: app/build/outputs/apk/release/*.apk
|
path: app/build/outputs/apk/release/*.apk
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
{
|
{
|
||||||
"assets": [
|
"assets": [
|
||||||
{
|
{
|
||||||
"path": "app/build/outputs/apk/release/*.apk"
|
"path": "app/build/outputs/apk/release/revanced-manager*.apk"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"successComment": false
|
"successComment": false
|
||||||
|
@ -33,7 +33,6 @@ android {
|
|||||||
|
|
||||||
release {
|
release {
|
||||||
val hasReleaseConfig = (System.getenv("KEYSTORE_FILE") != null)
|
val hasReleaseConfig = (System.getenv("KEYSTORE_FILE") != null)
|
||||||
var suffix = "v${project.version}"
|
|
||||||
if (hasReleaseConfig) {
|
if (hasReleaseConfig) {
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
create("release") {
|
create("release") {
|
||||||
@ -44,29 +43,23 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
signingConfig = signingConfigs.getByName("release")
|
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 {
|
} else {
|
||||||
applicationIdSuffix = ".debug"
|
applicationIdSuffix = ".debug"
|
||||||
resValue("string", "app_name", "ReVanced Manager Debug")
|
resValue("string", "app_name", "ReVanced Manager Debug")
|
||||||
signingConfig = signingConfigs.getByName("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")) {
|
if (!project.hasProperty("noProguard")) {
|
||||||
isMinifyEnabled = true
|
isMinifyEnabled = true
|
||||||
isShrinkResources = true
|
isShrinkResources = true
|
||||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
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