workflow
This commit is contained in:
parent
b000972bd9
commit
f8dbc274e4
1 changed files with 34 additions and 15 deletions
49
.github/workflows/main.yml
vendored
49
.github/workflows/main.yml
vendored
|
@ -63,9 +63,11 @@ jobs:
|
||||||
|
|
||||||
- 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 '/link {/{
|
||||||
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
|
n; s/setTitle(.*)/title = "AlaskarTV app version"/
|
||||||
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
|
n; s/content = ".*"/content = "alaskartv-androidtv ${BuildConfig.VERSION_NAME} ${BuildConfig.BUILD_TYPE}"/
|
||||||
|
n; s/icon = .*/icon = R.drawable.app_icon_foreground_monochrome/
|
||||||
|
}' app-release/app/src/main/java/org/jellyfin/androidtv/ui/preference/category/about.kt
|
||||||
|
|
||||||
- name: Update UserPreferences.kt
|
- name: Update UserPreferences.kt
|
||||||
run: |
|
run: |
|
||||||
|
@ -116,25 +118,42 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "$KEYSTORE_FILE" | base64 -d > keystore.jks
|
echo "$KEYSTORE_FILE" | base64 -d > keystore.jks
|
||||||
|
|
||||||
# Step 9: Sign the APK
|
# # Step 9: Sign the APK
|
||||||
- name: Sign APK
|
# - name: Sign APK
|
||||||
|
# env:
|
||||||
|
# KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||||
|
# KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
|
||||||
|
# KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||||
|
# run: |
|
||||||
|
# jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 \
|
||||||
|
# -keystore keystore.jks \
|
||||||
|
# -storepass "$KEYSTORE_PASSWORD" \
|
||||||
|
# -keypass "$KEYSTORE_PASSWORD" \
|
||||||
|
# app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk \
|
||||||
|
# "$KEYSTORE_ALIAS"
|
||||||
|
#
|
||||||
|
# # Step 9: 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
|
||||||
|
|
||||||
|
- name: Sign APK with apksigner
|
||||||
env:
|
env:
|
||||||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||||
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
|
|
||||||
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||||
|
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
|
||||||
run: |
|
run: |
|
||||||
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 \
|
apksigner sign --ks keystore.jks \
|
||||||
-keystore keystore.jks \
|
--ks-key-alias "$KEYSTORE_ALIAS" \
|
||||||
-storepass "$KEYSTORE_PASSWORD" \
|
--ks-pass env:KEYSTORE_PASSWORD \
|
||||||
-keypass "$KEYSTORE_PASSWORD" \
|
--key-pass env:KEY_PASSWORD \
|
||||||
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk \
|
--out app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release.apk \
|
||||||
"$KEYSTORE_ALIAS"
|
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk
|
||||||
|
|
||||||
# Step 9: Verify APK Signature
|
|
||||||
- name: Verify APK Signature
|
- name: Verify APK Signature
|
||||||
run: |
|
run: |
|
||||||
jarsigner -verify -verbose -certs \
|
apksigner verify --verbose app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release.apk
|
||||||
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk
|
|
||||||
|
|
||||||
# Step 10: Rename Signed APK
|
# Step 10: Rename Signed APK
|
||||||
- name: Rename Signed APK
|
- name: Rename Signed APK
|
||||||
|
|
Loading…
Reference in a new issue