Release the Qt launcher from the fileapi forge
.forge/jobs.toml follows GitHub's main and, on each commit, builds the Qt APK on Depot (ci/forge-apk.sh: Qt 6.8.3 via aqt, SDK/NDK 26.1, the committed key) and publishes it as a forge release build-<versionCode>, drafted until the APK and version.json are both up. versionCode is minutes since the epoch, above every GitHub run number. The in-app updater now reads releases/latest on the forge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D
This commit is contained in:
4 files changed
+79
-4
No files matched your search
@@ -74,7 +74,6 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
*/
|
||||
public class HomeActivity extends QtActivity {
|
||||
/** The GitHub release the updater installs from. */
|
||||
static final String RELEASE = "launcher-qt-latest";
|
||||
// The WebView build's host id: its widgets are bound to it, so they carry over.
|
||||
static final int HOST_ID = 0x0171;
|
||||
static final int REQ_BIND = 1, REQ_CONFIGURE = 2;
|
||||
|
||||
@@ -26,9 +26,10 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
/**
|
||||
* Updates the launcher from the rolling "launcher-latest" GitHub prerelease. CI uploads
|
||||
* Updates the launcher from the newest release on V's fileapi forge (nandi.uk/launcher),
|
||||
* which .forge/jobs.toml builds on every commit to main. Each release holds
|
||||
* version.json ({"versionCode": N, "commit": SHA}) next to ultra-launcher.apk, with N the
|
||||
* workflow run number, which is also the APK's versionCode. When N is newer than the installed
|
||||
* APK's versionCode. When N is newer than the installed
|
||||
* build, the APK is streamed into a PackageInstaller session and committed. Android then asks
|
||||
* the user to confirm (or, on Android 12+ once this app installed itself, may not ask at all).
|
||||
*
|
||||
@@ -36,7 +37,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
* "Check for updates" checks now and reports what it found.
|
||||
*/
|
||||
final class Updater {
|
||||
static final String BASE = "https://github.com/codegod100/launcher/releases/download/" + HomeActivity.RELEASE + "/";
|
||||
static final String BASE =
|
||||
"https://fileapi.fastapicloud.dev/api/forge/repos/nandi.uk/launcher/releases/latest/assets/";
|
||||
static final long CHECK_EVERY = 6 * 60 * 60 * 1000L;
|
||||
static final String EXTRA_VERSION = "dev.ultra.launcher.VERSION";
|
||||
|
||||
|
||||
Reference in new issue
Block a user