Rename APK artifact to synchronicity-debug.apk
Build Debug APK / build (push) Successful in 6m50s

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:
Greg Shuflin
2026-03-21 01:47:13 -07:00
parent c5573a2d4b
commit 1d41a3ec02
2 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -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
+2 -1
View File
@@ -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}"