ok影视打包说明.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. 1、app/build.gradle
  2. implementation project(':quickjs')
  3. pythonImplementation project(':pyramid')
  4. 说明:####implementation project(':quickjs')下边添加pythonImplementation project(':pyramid')
  5. 2、settings.gradle
  6. include ':quickjs'
  7. include ':pyramid'
  8. 说明####include ':quickjs'下边添加include ':pyramid'
  9. 3、.github/workflows/test.yml 以下是acttion代码,支持python,需要自己签名。
  10. name: Test Build
  11. on:
  12. # push:
  13. # branches: [ "release" ]
  14. # pull_request:
  15. # branches: [ "release" ]
  16. workflow_dispatch: # 手动触发
  17. jobs:
  18. build:
  19. runs-on: ubuntu-latest
  20. env:
  21. ANDROID_API_LEVEL: 30
  22. ANDROID_BUILD_TOOLS_VERSION: 30.0.3
  23. ANDROID_SDK_ROOT: /usr/local/lib/android/sdk
  24. steps:
  25. - name: Checkout repository
  26. uses: actions/checkout@v4
  27. - name: Set up JDK 17
  28. uses: actions/setup-java@v4
  29. with:
  30. java-version: '17'
  31. distribution: 'temurin'
  32. cache: gradle
  33. - name: Download Android SDK
  34. run: |
  35. mkdir -p $ANDROID_SDK_ROOT/cmdline-tools
  36. curl -fo sdk-tools.zip https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip
  37. unzip -q sdk-tools.zip -d $ANDROID_SDK_ROOT/cmdline-tools
  38. rm sdk-tools.zip
  39. mv $ANDROID_SDK_ROOT/cmdline-tools/cmdline-tools $ANDROID_SDK_ROOT/cmdline-tools/latest
  40. - name: Install Android SDK packages
  41. run: |
  42. yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --licenses
  43. $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools" "platforms;android-${ANDROID_API_LEVEL}" "build-tools;${ANDROID_BUILD_TOOLS_VERSION}"
  44. - name: Grant execute permission for gradlew
  45. run: chmod +x gradlew
  46. - name: Build with Gradle
  47. run: ./gradlew assembleRelease
  48. - name: Prepare App
  49. run: |
  50. mkdir -p ${{ github.workspace }}/apk/
  51. for file in `find ~ -name "*.apk" -print`; do
  52. mv "$file" ${{ github.workspace }}/apk/
  53. done
  54. - name: Upload APK
  55. uses: actions/upload-artifact@v4
  56. with:
  57. name: app-release
  58. path: ${{ github.workspace }}/apk/*
  59. 以上是打包,以下是个性修改。
  60. 5、内置源修改:app/src/main/java/com/fongmi/android/tv/api/ApiConfig.java
  61. 6、APP图标修改:
  62. app/src/main/res/mipmap-hdpi/ic_launcher.png
  63. app/src/leanback/res/drawable/ic_banner.png
  64. app/src/main/res/mipmap-hdpi/ic_launcher.png
  65. app/src/main/res/mipmap-xhdpi/ic_launcher.png
  66. app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  67. app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  68. app/src/main/res/mipmap-hdpi/ic_launcher_round.png
  69. app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
  70. app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
  71. app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
  72. app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
  73. app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
  74. app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
  75. app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
  76. 7、app名称修改:
  77. app/src/main/res/values-zh-rCN/strings.xml
  78. app/src/main/res/values-zh-rTW/strings.xml
  79. app/src/main/res/values/strings.xml
  80. app/src/main/assets/index.html
  81. settings.gradle
  82. 8、版本号修改。build.gradle