From 68e4c74410c68fb5e53a0fd9b3a98b75af9fb0d2 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 6 Nov 2026 08:21:50 +0000 Subject: [PATCH] Build and release from the fileapi forge only The forge repo is the one releases come from: it no longer follows GitHub, and GitHub Actions no longer builds or publishes the Qt APK (its tests still run there). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D --- .forge/jobs.toml | 9 ++---- .github/workflows/launcher.yml | 59 ---------------------------------- README.md | 2 +- 3 files changed, 3 insertions(+), 67 deletions(-) diff --git a/.forge/jobs.toml b/.forge/jobs.toml index 1f3225c..31a7c1a 100644 --- a/.forge/jobs.toml +++ b/.forge/jobs.toml @@ -1,13 +1,8 @@ # fileapi forge CI (https://fileapi.fastapicloud.dev/forge/nandi.uk/launcher). -# The forge follows GitHub's main (below), so a commit to either one builds the Qt APK on -# Depot and publishes it as a release here, which the phone's updater reads +# This repo is where the launcher is built and released: each push to main here builds the +# Qt APK on Depot and publishes it as a release, which the phone's updater reads # (releases/latest/assets/version.json). Needs DEPOT_TOKEN and DEPOT_PROJECT_ID (user secrets). -[upstream] -url = "https://github.com/codegod100/launcher.git" -branches = ["main"] -interval = 60 - [[job]] name = "apk" branches = ["main"] diff --git a/.github/workflows/launcher.yml b/.github/workflows/launcher.yml index f09edef..f40cc9a 100644 --- a/.github/workflows/launcher.yml +++ b/.github/workflows/launcher.yml @@ -98,62 +98,3 @@ jobs: cmake -S qt -B build -G Ninja -DCMAKE_BUILD_TYPE=Release cmake --build build QT_QPA_PLATFORM=offscreen build/ultrahome_e2e - - qt-apk: - runs-on: ubuntu-24.04 - timeout-minutes: 45 - steps: - - uses: actions/checkout@v5 - - uses: actions/setup-java@v5 - with: - distribution: temurin - java-version: 17 - - uses: jurplel/install-qt-action@v4 - with: - version: "6.8.3" - target: android - arch: android_arm64_v8a - cache: true - - name: Android NDK for Qt 6.8 - run: | - sudo apt-get install -y ninja-build - yes | "$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager" --install "ndk;26.1.10909125" "platforms;android-35" "build-tools;35.0.0" > /dev/null - echo "ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/26.1.10909125" >> "$GITHUB_ENV" - - name: Build the APK - # Signed with the same committed key as the WebView build, so the Qt build can - # later install over it. - env: - QT_ANDROID_KEYSTORE_PATH: ${{ github.workspace }}/android/app/debug.keystore - QT_ANDROID_KEYSTORE_ALIAS: androiddebugkey - QT_ANDROID_KEYSTORE_STORE_PASS: android - QT_ANDROID_KEYSTORE_KEY_PASS: android - run: | - "$QT_ROOT_DIR/bin/qt-cmake" -S qt -B build-android -G Ninja -DCMAKE_BUILD_TYPE=Release \ - -DANDROID_SDK_ROOT="$ANDROID_SDK_ROOT" -DANDROID_NDK_ROOT="$ANDROID_NDK_ROOT" \ - -DQT_HOST_PATH="$QT_HOST_PATH" -DQT_ANDROID_SIGN_APK=ON \ - -DVERSION_CODE=${{ github.run_number }} - cmake --build build-android --target apk - apk=$(find build-android -name "*-signed.apk" | head -1) - test -n "$apk" || { find build-android -name "*.apk"; exit 1; } - cp "$apk" ultra-launcher.apk - - uses: actions/upload-artifact@v5 - with: - name: ultra-launcher-qt-apk - path: ultra-launcher.apk - - name: Publish the launcher-qt-latest release - if: github.event_name != 'pull_request' - env: - GH_TOKEN: ${{ github.token }} - run: | - echo '{"versionCode": ${{ github.run_number }}, "commit": "'"$GITHUB_SHA"'"}' > version.json - # Swap the files in place, the APK first, so the release never disappears - # under a phone checking for updates. - if gh release view launcher-qt-latest >/dev/null 2>&1; then - gh release upload launcher-qt-latest ultra-launcher.apk --clobber - gh release upload launcher-qt-latest version.json --clobber - git push -f "https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY" "$GITHUB_SHA:refs/tags/launcher-qt-latest" - exit 0 - fi - gh release create launcher-qt-latest ultra-launcher.apk version.json --prerelease --target "$GITHUB_SHA" \ - --title "ultra launcher, Qt build (latest)" \ - --notes "The Qt Quick rewrite (qt/), built from $GITHUB_SHA. It installs over the WebView launcher (same package and key)." diff --git a/README.md b/README.md index 9178216..9553038 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Every push to ultra's main publishes a new `ultra` package. To pick it up, run ` ## Qt rewrite (in progress) -`qt/` is the launcher rewritten as a Qt Quick (QML) app for Android, replacing ultra and the WebView. `qt/qml` is the UI (`Main.qml`, with the grid packing in `Layout.js`), `qt/src` a thin C++ backend, and `qt/android` the Java side (`HomeActivity`, a `QtActivity` that lists apps, draws icons, launches, and hosts the native widget views over the QML slots). It uses the same package (`dev.ultra.launcher`) and key as the WebView build, so it installs over it, from the [`launcher-qt-latest` release](https://github.com/codegod100/launcher/releases/tag/launcher-qt-latest). +`qt/` is the launcher rewritten as a Qt Quick (QML) app for Android, replacing ultra and the WebView. `qt/qml` is the UI (`Main.qml`, with the grid packing in `Layout.js`), `qt/src` a thin C++ backend, and `qt/android` the Java side (`HomeActivity`, a `QtActivity` that lists apps, draws icons, launches, and hosts the native widget views over the QML slots). It uses the same package (`dev.ultra.launcher`) and key as the WebView build, so it installs over it, from the releases on the fileapi forge ([nandi.uk/launcher](https://fileapi.fastapicloud.dev/forge/nandi.uk/launcher)), where `.forge/jobs.toml` builds and publishes an APK on every push to main (`ci/forge-apk.sh`). ```sh node qt/tests/layout.test.mjs # grid packing