Download scripts/android-release-upload.sh from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 952 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/scripts/android-release-upload.sh
- Command line
-
hf download hf://SaylorTwift/openclaw/scripts/android-release-upload.sh
-
curl -L -o android-release-upload.sh https://huggingface.co/SaylorTwift/openclaw/resolve/main/scripts/android-release-upload.sh
952 Bytes
| # Bash 5.3+ can deadlock writing heredoc pipes on macOS before the reader starts. | |
| if [[ ${OSTYPE:-} == darwin* && $BASH != /bin/bash ]] && ((BASH_VERSINFO[0] > 5 || (BASH_VERSINFO[0] == 5 && BASH_VERSINFO[1] >= 3))); then | |
| exec /bin/bash "$0" "$@" | |
| fi | |
| set -euo pipefail | |
| usage() { | |
| cat <<'EOF' | |
| Usage: | |
| scripts/android-release-upload.sh | |
| Uploads Android Play metadata, builds signed release artifacts, and uploads the | |
| Play AAB to Google Play internal testing by default. This does not promote the | |
| build to production. | |
| EOF | |
| } | |
| ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| source "${ROOT_DIR}/scripts/lib/android-fastlane.sh" | |
| while [[ $# -gt 0 ]]; do | |
| case "$1" in | |
| --) | |
| shift | |
| ;; | |
| -h|--help) | |
| usage | |
| exit 0 | |
| ;; | |
| *) | |
| echo "Unknown argument: $1" >&2 | |
| usage | |
| exit 1 | |
| ;; | |
| esac | |
| done | |
| ( | |
| cd "${ROOT_DIR}/apps/android" | |
| run_android_fastlane android release_upload | |
| ) | |