-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sign APKs with apksigner instead of via Gradle (#446)
Co-authored-by: Niels van Velzen <[email protected]>
- Loading branch information
1 parent
a23ed55
commit bba4585
Showing
1 changed file
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,17 +20,30 @@ jobs: | |
- name: Set JELLYFIN_VERSION | ||
run: echo "JELLYFIN_VERSION=$(echo ${GITHUB_REF#refs/tags/v} | tr / -)" >> $GITHUB_ENV | ||
- name: Assemble release APKs | ||
env: | ||
KEYSTORE: ${{ secrets.KEYSTORE }} | ||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | ||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | ||
run: ./gradlew --no-daemon --info assembleRelease versionTxt | ||
- name: Sign libre APK | ||
id: libreSign | ||
uses: r0adkll/sign-android-release@v1 | ||
with: | ||
releaseDirectory: app/build/outputs/apk/libre/release | ||
signingKeyBase64: ${{ secrets.KEYSTORE }} | ||
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} | ||
alias: ${{ secrets.KEY_ALIAS }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
- name: Sign proprietary APK | ||
id: proprietarySign | ||
uses: r0adkll/sign-android-release@v1 | ||
with: | ||
releaseDirectory: app/build/outputs/apk/proprietary/release | ||
signingKeyBase64: ${{ secrets.KEYSTORE }} | ||
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} | ||
alias: ${{ secrets.KEY_ALIAS }} | ||
keyPassword: ${{ secrets.KEY_PASSWORD }} | ||
- name: Split APK release types | ||
run: | | ||
mkdir -p build/jellyfin-publish | ||
mv app/build/outputs/apk/*/*/jellyfin-android-*-libre-release.apk build/jellyfin-publish/ | ||
mv app/build/outputs/apk/*/*/jellyfin-android-*-proprietary-release.apk build/jellyfin-publish/ | ||
mv ${{ steps.libreSign.outputs.signedReleaseFile }} build/jellyfin-publish/ | ||
mv ${{ steps.proprietarySign.outputs.signedReleaseFile }} build/jellyfin-publish/ | ||
mv app/build/version.txt build/jellyfin-publish/ | ||
- name: Upload release artifacts | ||
uses: alexellis/[email protected] | ||
|