This commit is contained in:
nomadics9 2024-12-15 06:54:32 +03:00
parent 7a37b62666
commit 8c47bf37ab

View file

@ -66,9 +66,16 @@ jobs:
# Step 7: Update about.kt # Step 7: Update about.kt
- name: Update about.kt - name: Update about.kt
run: | 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/applicationId = namespace/applicationId = \"$APPLICATION_ID\"/" app-release/app/build.gradle.kts
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/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 # Step 8: Set up Java and Gradle
- name: Set up Java - name: Set up Java
@ -99,7 +106,7 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: unsigned-apk 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 # # Step 10: Sign the APK
# - name: Sign APK # - name: Sign APK