Update the launcher in place from the launcher-latest release
CI stamps each APK's versionCode with the workflow run number and uploads version.json next to it. The launcher checks that file on start (at most every 6 hours) and from a new "Check for updates" item in the home menu; when it is newer, it streams the APK into a PackageInstaller session and commits it, so Android asks to confirm (or, on Android 12+ once the launcher installed itself, may install it without asking). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K2oqEoAKVaiTwCNSqRHQUn
This commit is contained in:
9 files changed
+222
-5
No files matched your search
@@ -21,6 +21,11 @@ const BASE = process.env.BASE || "http://localhost:8000";
|
||||
await p.mouse.move(r.x + r.width / 2, r.y + r.height * fy);
|
||||
await p.mouse.down(); await p.waitForTimeout(650); await p.mouse.up(); await settle();
|
||||
};
|
||||
// the home menu's update check goes to the shell and closes the menu
|
||||
await longpress(".hint");
|
||||
await p.click(".sheet-item >> text=Check for updates"); await settle();
|
||||
assert.equal(await p.textContent("#toast"), "Check for updates");
|
||||
assert.ok(!(await p.$(".sheet")), "the menu closes");
|
||||
const homeApps = () => p.$$eval(".slots .name", (ns) => ns.map((n) => n.textContent));
|
||||
// long press on the blank home: add apps through the drawer's pick mode
|
||||
await longpress(".hint");
|
||||
|
||||
Reference in new issue
Block a user