diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 6c2ddac..fe7e1a3 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -69,19 +69,9 @@ 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 @@ -89,7 +79,7 @@ jobs: - 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/delete-older-releases@v0.3.4 diff --git a/uber-apk-signer-1.3.0.jar b/uber-apk-signer-1.3.0.jar new file mode 100644 index 0000000..81290a9 Binary files /dev/null and b/uber-apk-signer-1.3.0.jar differ