From 75c71c7cb31379c9c38a5cd5d5144cd16a057ae3 Mon Sep 17 00:00:00 2001 From: Malcolm Habeeb Date: Fri, 13 Nov 2026 16:49:55 -0500 Subject: [PATCH] Name Quest APK releases and files wivrn-quest-MAJOR.MINOR.PATCH The release name and APK file carried the full commit sha (wivrn-xerktech-<40 hex>.apk, 'Quest APK 26.9-140-gf1a4ef00'), which is painful to find and type on the headset. Both are now wivrn-quest-MAJOR.MINOR.PATCH: the upstream vMAJOR.MINOR tag plus the number of commits since it (e.g. wivrn-quest-26.9.140). The tag stays apk- so the APK for a server commit is still found by its sha. --- .github/workflows/APK-Release.yml | 18 +++++++++++++++--- docs/xerktech-quest.md | 4 +++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/APK-Release.yml b/.github/workflows/APK-Release.yml index 2aff22066..65b9ee626 100644 --- a/.github/workflows/APK-Release.yml +++ b/.github/workflows/APK-Release.yml @@ -28,6 +28,7 @@ jobs: outputs: sha: ${{ steps.rev.outputs.sha }} version: ${{ steps.rev.outputs.version }} + release: ${{ steps.rev.outputs.release }} steps: - uses: actions/checkout@v6 @@ -45,6 +46,17 @@ jobs: git tag -l 'apk-*' | xargs -r git tag -d echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" echo "version=$(git describe --tags --always | sed 's/^v\([0-9]\)/\1/')" >> "$GITHUB_OUTPUT" + # Release and APK name: wivrn-quest-MAJOR.MINOR.PATCH, where MAJOR.MINOR is the + # upstream release this fork is on and PATCH counts commits since its vMAJOR.MINOR + # tag, so it grows with every master commit. + TAG=$(git describe --tags --abbrev=0) + MM=$(echo "$TAG" | sed -E 's/^v?([0-9]+)\.([0-9]+).*/\1.\2/') + if ! [[ "$MM" =~ ^[0-9]+\.[0-9]+$ ]]; then + echo "::error::cannot read MAJOR.MINOR from tag $TAG" + exit 1 + fi + BASE=$(git rev-parse -q --verify "refs/tags/v$MM" || git rev-parse -q --verify "refs/tags/$MM" || echo "$TAG") + echo "release=wivrn-quest-$MM.$(git rev-list --count "$BASE..HEAD")" >> "$GITHUB_OUTPUT" # Gradle distribution and the Android plugin's dependencies. - uses: actions/cache@v5 @@ -95,7 +107,7 @@ jobs: BUILD_TOOLS=$(find "$ANDROID_HOME/build-tools" -mindepth 1 -maxdepth 1 | sort -V | tail -1) "$BUILD_TOOLS/apksigner" verify --print-certs "$APK" mkdir apk - mv "$APK" apk/wivrn-xerktech-${{ steps.rev.outputs.sha }}.apk + mv "$APK" apk/${{ steps.rev.outputs.release }}.apk - name: Archive APK uses: actions/upload-artifact@v7 @@ -123,9 +135,9 @@ jobs: with: tag_name: "apk-${{ needs.build-android-only.outputs.sha }}" target_commitish: ${{ needs.build-android-only.outputs.sha }} - name: "Quest APK ${{ needs.build-android-only.outputs.version }}" + name: ${{ needs.build-android-only.outputs.release }} body: | - Signed Quest client built from ${{ needs.build-android-only.outputs.sha }}. + Signed Quest client ${{ needs.build-android-only.outputs.version }}, built from ${{ needs.build-android-only.outputs.sha }}. Only connects to a wivrn-server built from this same commit. Install: docs/xerktech-quest.md. draft: false diff --git a/docs/xerktech-quest.md b/docs/xerktech-quest.md index 843dcca52..33b75c5f9 100644 --- a/docs/xerktech-quest.md +++ b/docs/xerktech-quest.md @@ -12,6 +12,8 @@ APK, built from the same commit as the server. commit in the same change. A mismatch fails at handshake. - Releases are tagged `apk-` on . +- Each release and its APK are named `wivrn-quest-MAJOR.MINOR.PATCH`: MAJOR.MINOR is the + upstream release (`vMAJOR.MINOR` tag) and PATCH the number of commits since that tag. ## Publishing an APK @@ -52,7 +54,7 @@ The alias must be `default_key` (see `signingConfigs` in `build.gradle`). ```bash SHA= gh release download "apk-$SHA" -R xerktech/WiVRn -p '*.apk' - adb install -r "wivrn-xerktech-$SHA.apk" + adb install -r wivrn-quest-*.apk ``` 5. Launch it from Library → Applications → Unknown Sources → "WiVRn XerkTech".