1

根据这个答案,我应该运行以下命令来构建 apk 并对其进行签名?

./gradlew assembleRelease -Pandroid.injected.signing.store.file=$KEYFILE -Pandroid.injected.signing.store.password=$STORE_PASSWORD -Pandroid.injected.signing.key.alias=$KEY_ALIAS -Pandroid.injected.signing.key.password=$KEY_PASSWORD

并使用 android studio 我进行了以下用于构建应用程序的关键配置:

显示设置

生成的文件/home/pcmagas/Kwdikas/androidKeys/h330s_fu包含使用以下 2 个文件:

  • h300s_fu
  • private_key.pepk

负责构建和签署 apk 的操作是:

name: pr
on:
  push:
    branches: [master]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout latest code
        uses: actions/checkout@v1
      - name: Set up JDK 8
        uses: actions/setup-java@v2
        with:
          java-version: '8'
          distribution: 'adopt'
      - name: Make gradlew executable
        run: chmod +x ./gradlew
      - name: test
        run: ./gradlew test
      - name: build
        run: ./gradlew buildRelease
      - name: Assemble Release Bundle
        run: ./gradlew assembleRelease

因此环境变量:

  1. $KEYFILE
  2. $STORE_PASSWORD
  3. $KEY_ALIAS
  4. $KEY_PASSWORD

必须配置 github 机密。但是我应该为它们配置什么值?我的意思是h300s_fu文件和文件的角色是什么private_key.pepk

4

0 回答 0