workflow
This commit is contained in:
parent
7a37b62666
commit
8c47bf37ab
1 changed files with 11 additions and 4 deletions
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
|
@ -66,9 +66,16 @@ jobs:
|
|||
# Step 7: Update about.kt
|
||||
- name: Update about.kt
|
||||
run: |
|
||||
sed -i 's/title = ".*"/title = "AlaskarTV app version"/' app-release/app/src/main/java/org/jellyfin/androidtv/ui/preference/category/about.kt
|
||||
sed -i 's/content = ".*"/content = "alaskartv-androidtv ${BuildConfig.VERSION_NAME} ${BuildConfig.BUILD_TYPE}"/' app-release/app/src/main/java/org/jellyfin/androidtv/ui/preference/category/about.kt
|
||||
sed -i 's/icon = .*/icon = R.drawable.app_icon_foreground_monochrome/' app-release/app/src/main/java/org/jellyfin/androidtv/ui/preference/category/about.kt
|
||||
sed -i "s/applicationId = namespace/applicationId = \"$APPLICATION_ID\"/" app-release/app/build.gradle.kts
|
||||
|
||||
sed -i "s/versionName = project.getVersionName()/versionName = \"$VERSION_NAME\"/" app-release/app/build.gradle.kts
|
||||
|
||||
sed -i "s/versionCode = getVersionCode(versionName!!)/versionCode = $VERSION_CODE/" app-release/app/build.gradle.kts
|
||||
|
||||
sed -i "s/setProperty(\"archivesBaseName\", \".*\")/setProperty(\"archivesBaseName\", \"alaskartv-androidtv-v$VERSION_NAME\")/" app-release/app/build.gradle.kts
|
||||
|
||||
echo "Updated build.gradle.kts:"
|
||||
cat app-release/app/build.gradle.kts
|
||||
|
||||
# Step 8: Set up Java and Gradle
|
||||
- name: Set up Java
|
||||
|
@ -99,7 +106,7 @@ jobs:
|
|||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: unsigned-apk
|
||||
path: app-release/app/build/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release.apk
|
||||
path: app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk
|
||||
|
||||
# # Step 10: Sign the APK
|
||||
# - name: Sign APK
|
||||
|
|
Loading…
Reference in a new issue