From 2adeb3e4a220a7f430371fc54dd340a370d66097 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Sun, 15 Dec 2024 07:53:45 +0300 Subject: [PATCH] workflow --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3ae2707..59ac15c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -132,3 +132,22 @@ jobs: # packageName: ${{ env.APPLICATION_ID }} # releaseFiles: app-release/app/build/outputs/apk/release/app-release.apk + # Step 10: Generate and Sign APK with Temporary Debug Keystore + - name: Sign APK with Debug Keystore + run: | + keytool -genkey -v -keystore debug.keystore \ + -storepass android -alias androiddebugkey -keypass android \ + -dname "CN=Android Debug,O=Android,C=US" -keyalg RSA -validity 36500 + + jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 \ + -keystore debug.keystore -storepass android -keypass android \ + app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk \ + androiddebugkey + +# Step 11: Verify APK Signature + - name: Verify APK Signature + run: | + jarsigner -verify -verbose -certs \ + app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk + +