You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
287 B

  1. #!/bin/bash
  2. set -ex
  3. for APK in /src/app/build/outputs/apk/nightly/*apk
  4. do
  5. echo "${KEY_PASSWORD}"|${ANDROID_HOME}/build-tools/${ANDROID_BUILD_TOOLS_VERSION}/apksigner sign --ks "${KEY_PATH}" "${APK}"
  6. APK_NAME=$(basename ${APK})
  7. cp ${APK} /builds/${APK_NAME/-unsigned/}
  8. done