Skip to content

Commit

Permalink
Update android-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lindongchen authored May 24, 2024
1 parent 663d604 commit 422b0d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ jobs:
echo ${{ secrets.KEYSTORE_BASE64 }} | base64 --decode > ./my-release-key.jks
- name: Sign apk
run: |
echo ${{ secrets.KEYSTORE_BASE64 }}
echo ${{ secrets.KEY_ALIAS }}
jarsigner -verbose -keystore ./my-release-key.jks -storepass ${{ secrets.KEYSTORE_PASSWORD }} -keypass ${{ secrets.KEY_PASSWORD }} ./gui/src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk "${{ secrets.KEY_ALIAS }}"
- name: Align apk
run: |
ls ${ANDROID_HOME}/build-tools
${ANDROID_HOME}/build-tools/30.0.3/zipalign -v 4 ./gui/src-tauri/gen/android/app/build/outputs/apk/universal/release/app-release-unsigned.apk ./gui/src-tauri/gen/android/app/build/outputs/apk/universal/release/app-release.apk
${ANDROID_HOME}/build-tools/30.0.3/zipalign -v 4 ./gui/src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk ./gui/src-tauri/gen/android/app/build/outputs/apk/universal/release/app-release.apk
- uses: actions/upload-artifact@v2
with:
name: release
Expand Down

0 comments on commit 422b0d7

Please sign in to comment.