forked from endrl/segment-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c35e597
commit c7650e4
Showing
2 changed files
with
3 additions
and
13 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 |
---|---|---|
|
@@ -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] | ||
|
Binary file not shown.