This commit is contained in:
nomadics9 2024-12-15 17:33:56 +03:00
parent 53fa1c51cb
commit c377f4927c

View file

@ -108,28 +108,28 @@ jobs:
run: find app-release -name "*.apk"
- 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 }}-debug-unsigned.apk \
androiddebugkey
- name: Verify APK Signature
run: |
jarsigner -verify -verbose -certs \
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk
# - 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 }}-debug-unsigned.apk \
# androiddebugkey
#
# - name: Verify APK Signature
# run: |
# jarsigner -verify -verbose -certs \
# app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk
# Step 10: Upload APK as Artifact
- name: Upload APK as Artifact
uses: actions/upload-artifact@v4
with:
name: unsigned-apk
path: app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk
path: app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug.apk
# # Step 10: Sign the APK
# - name: Sign APK