Build script copies gradle's app-debug.apk to synchronicity-debug.apk at the repo root. Both scripts define the name in a variable for consistency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,9 @@ set -euo pipefail
|
||||
: "${AAPT2_PATH:?AAPT2_PATH must be set}"
|
||||
|
||||
REPO_ROOT="$PWD"
|
||||
APK_NAME="synchronicity-debug.apk"
|
||||
APK_BUILD_OUTPUT="$REPO_ROOT/android/app/build/outputs/apk/debug/app-debug.apk"
|
||||
APK_PATH="$REPO_ROOT/$APK_NAME"
|
||||
CACHE_DIR="${STATE_DIRECTORY:-/var/lib/gitea-runner}/cache"
|
||||
mkdir -p "$CACHE_DIR"
|
||||
|
||||
@@ -39,7 +42,8 @@ echo "=== sccache stats after build ==="
|
||||
"$SCCACHE_BIN" --show-stats || true
|
||||
|
||||
echo "=== APK size ==="
|
||||
ls -lh "$REPO_ROOT/android/app/build/outputs/apk/debug/app-debug.apk"
|
||||
cp "$APK_BUILD_OUTPUT" "$APK_PATH"
|
||||
ls -lh "$APK_PATH"
|
||||
|
||||
echo "=== cleaning old cargo artifacts ==="
|
||||
"$CARGO_SWEEP_BIN" sweep --maxsize 2GB "$REPO_ROOT/rust" || true
|
||||
|
||||
@@ -11,7 +11,8 @@ set -euo pipefail
|
||||
: "${GITEA_TOKEN:?GITEA_TOKEN must be set}"
|
||||
|
||||
REPO_ROOT="$PWD"
|
||||
APK_PATH="$REPO_ROOT/android/app/build/outputs/apk/debug/app-debug.apk"
|
||||
APK_NAME="synchronicity-debug.apk"
|
||||
APK_PATH="$REPO_ROOT/$APK_NAME"
|
||||
SHORT_SHA="${GITEA_SHA:0:7}"
|
||||
TAG="build-${SHORT_SHA}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user