diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4b02e1c..93a05a4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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