Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion desktop/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const EXCHANGE_RATE_CACHE_TTL_MS = 12 * 60 * 60 * 1_000;
export const USD_TO_CNY_FALLBACK_RATE = 7.2;

/** Public manifest used by the P0 manual update checker. */
export const UPDATE_MANIFEST_URL = "https://microclaw.microsoftol.com/releases/latest.json";
export const UPDATE_MANIFEST_URL = "https://microclaw.microsoft.com/releases/latest.json";

// ── WebSocket reconnect back-off ────────────────────────────────────────

Expand Down
22 changes: 11 additions & 11 deletions desktop/src/update-checker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("checkForUpdates", () => {
let fetched = false;
const result = await checkForUpdates({
currentVersion: "1.0.0",
manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json",
manifestUrl: "https://microclaw.microsoft.com/releases/latest.json",
storeManaged: true,
fetchJson: async () => {
fetched = true;
Expand All @@ -33,11 +33,11 @@ describe("checkForUpdates", () => {
it("returns update-available when the manifest version is newer", async () => {
const result = await checkForUpdates({
currentVersion: "1.0.0",
manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json",
manifestUrl: "https://microclaw.microsoft.com/releases/latest.json",
fetchJson: async () => ({
version: "1.0.1",
releasedAt: "2026-07-14",
downloadUrl: "https://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip",
downloadUrl: "https://microclaw.microsoft.com/downloads/MicroClawInstaller.zip",
sha256: "abc123",
openclawVersion: "2026.3.12",
releaseNotes: ["Fix model setup config save issue"],
Expand All @@ -49,7 +49,7 @@ describe("checkForUpdates", () => {
currentVersion: "1.0.0",
latestVersion: "1.0.1",
releasedAt: "2026-07-14",
downloadUrl: "https://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip",
downloadUrl: "https://microclaw.microsoft.com/downloads/MicroClawInstaller.zip",
sha256: "abc123",
openclawVersion: "2026.3.12",
releaseNotes: ["Fix model setup config save issue"],
Expand All @@ -59,10 +59,10 @@ describe("checkForUpdates", () => {
it("returns up-to-date when the manifest version is not newer", async () => {
const result = await checkForUpdates({
currentVersion: "1.0.1",
manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json",
manifestUrl: "https://microclaw.microsoft.com/releases/latest.json",
fetchJson: async () => ({
version: "1.0.1",
downloadUrl: "https://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip",
downloadUrl: "https://microclaw.microsoft.com/downloads/MicroClawInstaller.zip",
}),
});

Expand All @@ -76,7 +76,7 @@ describe("checkForUpdates", () => {
it("returns error for an invalid manifest instead of throwing", async () => {
const result = await checkForUpdates({
currentVersion: "1.0.0",
manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json",
manifestUrl: "https://microclaw.microsoft.com/releases/latest.json",
fetchJson: async () => ({ version: "1.0.1" }),
});

Expand All @@ -90,10 +90,10 @@ describe("checkForUpdates", () => {
it("rejects non-HTTPS download URLs", async () => {
const result = await checkForUpdates({
currentVersion: "1.0.0",
manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json",
manifestUrl: "https://microclaw.microsoft.com/releases/latest.json",
fetchJson: async () => ({
version: "1.0.1",
downloadUrl: "http://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip",
downloadUrl: "http://microclaw.microsoft.com/downloads/MicroClawInstaller.zip",
}),
});

Expand All @@ -106,10 +106,10 @@ describe("checkForUpdates", () => {
it("rejects malformed manifest versions", async () => {
const result = await checkForUpdates({
currentVersion: "1.0.0",
manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json",
manifestUrl: "https://microclaw.microsoft.com/releases/latest.json",
fetchJson: async () => ({
version: "2.x",
downloadUrl: "https://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip",
downloadUrl: "https://microclaw.microsoft.com/downloads/MicroClawInstaller.zip",
}),
});

Expand Down
Loading