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" run: find app-release -name "*.apk"
- name: Sign APK with Debug Keystore # - name: Sign APK with Debug Keystore
run: | # run: |
keytool -genkey -v -keystore debug.keystore \ # keytool -genkey -v -keystore debug.keystore \
-storepass android -alias androiddebugkey -keypass android \ # -storepass android -alias androiddebugkey -keypass android \
-dname "CN=Android Debug,O=Android,C=US" -keyalg RSA -validity 36500 # -dname "CN=Android Debug,O=Android,C=US" -keyalg RSA -validity 36500
#
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 \ # jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 \
-keystore debug.keystore -storepass android -keypass android \ # -keystore debug.keystore -storepass android -keypass android \
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk \ # app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk \
androiddebugkey # androiddebugkey
#
- name: Verify APK Signature # - name: Verify APK Signature
run: | # run: |
jarsigner -verify -verbose -certs \ # jarsigner -verify -verbose -certs \
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk # app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk
# Step 10: Upload APK as Artifact # Step 10: Upload APK as Artifact
- name: Upload APK as Artifact - name: Upload APK as Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: unsigned-apk 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 # # Step 10: Sign the APK
# - name: Sign APK # - name: Sign APK