Skip to content

Commit

Permalink
Skip custom signing key
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Nov 19, 2024
1 parent c35e597 commit c7650e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,17 @@ jobs:
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.0.11902837

- name: Modify AndroidManifest
run: java -jar ManifestEditor-2.0.jar -aa "android-usesCleartextTraffic:true" src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk

- name: Extract android signing key from env
run: base64 -d <<< "${{ secrets.ANDROID_RELEASE_KEYSTORE }}" > src-tauri/gen/android/release.decrypted.jks

- name: Sign APK
run: |
${{ env.ANDROID_HOME }}/build-tools/34.0.0/apksigner sign --ks src-tauri/gen/android/release.decrypted.jks \
--ks-key-alias endrl \
--ks-pass pass:segment-editor \
--key-pass pass:segment-editor \
--out src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-signed.apk \
src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned-unsigned.apk
java -jar ManifestEditor-2.0.jar -aa "android-usesCleartextTraffic:true" src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk
java -jar uber-apk-signer-1.3.0.jar -apks src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned-unsigned.apk
- name: Get Node project version
id: package-version
uses: martinbeentjes/[email protected]

- name: Rename APK file
run: |
mv ./src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-signed.apk ./src-tauri/gen/android/app/build/outputs/apk/universal/release/segment-editor-${{ steps.package-version.outputs.current-version}}.apk
mv ./src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-aligned-debugSigned.apk ./src-tauri/gen/android/app/build/outputs/apk/universal/release/segment-editor-${{ steps.package-version.outputs.current-version}}.apk
- name: Purge past releases
uses: dev-drprasad/[email protected]
Expand Down
Binary file added uber-apk-signer-1.3.0.jar
Binary file not shown.

0 comments on commit c7650e4

Please sign in to comment.