mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-12 18:04:28 +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
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
|
@ -27,14 +31,10 @@ jobs:
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v2
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew assembleRelease --no-daemon -PnoProguard
|
run: ./gradlew assembleRelease --no-daemon -PnoProguard -Psuffix=${{ steps.get_commit_hash.outputs.hash }}
|
||||||
|
|
||||||
- name: Get commit hash
|
|
||||||
id: get_commit_hash
|
|
||||||
run: echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
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
|
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 }}
|
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
|
||||||
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > keystore.jks
|
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > app/keystore.jks
|
||||||
npx semantic-release
|
npx semantic-release
|
||||||
|
|
|
@ -42,13 +42,6 @@ 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")
|
||||||
|
@ -59,6 +52,17 @@ android {
|
||||||
isShrinkResources = true
|
isShrinkResources = true
|
||||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
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