fix icon is not display

This commit is contained in:
Li ZongYing 2023-12-05 10:46:53 +08:00
parent 2ddc77ffa9
commit 27607d23c8
3 changed files with 21 additions and 32 deletions

View File

@ -7,16 +7,6 @@ on:
jobs:
build:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
steps:
- name: Checkout code
@ -29,15 +19,20 @@ jobs:
distribution: 'temurin'
cache: 'gradle'
- name: Sign artifact
id: signArtifact
uses: r0adkll/sign-android-release@v1.0.1
# - uses: gradle/gradle-build-action@v2
# with:
# gradle-version: current
# arguments: assembleRelease
- name: Sign app APK
id: sign_app
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/ourbuildtype/release
alias: ${{ secrets.KEYALIAS }}
releaseDirectory: app/build/outputs/apk/release
alias: ${{ secrets.ALIAS }}
signingKeyBase64: ${{ secrets.KEYSTORE }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
keyPassword: ${{ secrets.ALIAS_PASSWORD }}
- name: Create Release
id: create_release
@ -56,6 +51,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./app/build/outputs/apk/ourbuildtype/release/app-artifact-*.apk
asset_path: ${{ steps.sign_app.outputs.signedReleaseFile }}
asset_name: my_tv.apk
asset_content_type: application/vnd.android.package-archive

View File

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
@ -13,24 +18,13 @@
android:banner="@drawable/tv"
android:exported="true"
android:icon="@drawable/tv"
android:label="@string/app_name"
android:logo="@drawable/tv"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB