Create polished demo videos without editing skills. Mac/Windows/Linux
Format update channel files
young707a3170598a
diff --git a/electron/updateChannel.test.ts b/electron/updateChannel.test.tsindex 149e9fba..646c65c3 100644--- a/electron/updateChannel.test.ts+++ b/electron/updateChannel.test.ts@@ -1,8 +1,5 @@import { describe, expect, it } from "vitest";-import {- EXPERIMENTAL_UPDATE_DESCRIPTION,- getUpdateChannelConfiguration,-} from "./updateChannel";+import { EXPERIMENTAL_UPDATE_DESCRIPTION, getUpdateChannelConfiguration } from "./updateChannel";describe("getUpdateChannelConfiguration", () => {it("keeps regular clients on stable metadata", () => {diff --git a/electron/updateChannel.ts b/electron/updateChannel.tsindex 0488db02..9ca9ce96 100644--- a/electron/updateChannel.ts+++ b/electron/updateChannel.ts@@ -13,9 +13,7 @@ export function getUpdateChannelConfiguration(experimentalUpdatesEnabled: boolean,): UpdateChannelConfiguration {return {- channel: experimentalUpdatesEnabled- ? EXPERIMENTAL_UPDATE_CHANNEL- : STABLE_UPDATE_CHANNEL,+ channel: experimentalUpdatesEnabled ? EXPERIMENTAL_UPDATE_CHANNEL : STABLE_UPDATE_CHANNEL,allowPrerelease: experimentalUpdatesEnabled,allowDowngrade: false,};diff --git a/electron/updater.ts b/electron/updater.tsindex c887e634..8fb24177 100644--- a/electron/updater.ts+++ b/electron/updater.ts@@ -5,10 +5,7 @@ import { app, BrowserWindow, dialog } from "electron";import { autoUpdater } from "electron-updater";import { USER_DATA_PATH } from "./appPaths";import { readAppSetting, writeAppSetting } from "./appSettingsStore";-import {- EXPERIMENTAL_UPDATE_DESCRIPTION,- getUpdateChannelConfiguration,-} from "./updateChannel";+import { EXPERIMENTAL_UPDATE_DESCRIPTION, getUpdateChannelConfiguration } from "./updateChannel";const UPDATE_CHECK_INTERVAL_MS = 6 * 60 * 60 * 1000;export const UPDATE_REMINDER_DELAY_MS = 3 * 60 * 60 * 1000;diff --git a/electron/windows.ts b/electron/windows.tsindex f45a9d97..f9a25aa1 100644--- a/electron/windows.ts+++ b/electron/windows.ts@@ -209,7 +209,9 @@ function getUpdateToastBounds() {const display = getScreen().getDisplayMatching(hudBounds);const { workArea } = display;const x = Math.round(workArea.x + (workArea.width - UPDATE_TOAST_WIDTH) / 2);- const y = Math.round(workArea.y + workArea.height - UPDATE_TOAST_HEIGHT - HUD_EDGE_MARGIN_DIP);+ const y = Math.round(+ workArea.y + workArea.height - UPDATE_TOAST_HEIGHT - HUD_EDGE_MARGIN_DIP,+ );return {x,@@ -460,7 +462,11 @@ export function createHudOverlayWindow(): BrowserWindow {if (hasShownHudWindow || win.isDestroyed()) {return;}- if (updateToastWindow && !updateToastWindow.isDestroyed() && updateToastWindow.isVisible()) {+ if (+ updateToastWindow &&+ !updateToastWindow.isDestroyed() &&+ updateToastWindow.isVisible()+ ) {hudWasVisibleBeforeUpdateToast = true;return;}diff --git a/src/components/launch/UpdateToastWindow.tsx b/src/components/launch/UpdateToastWindow.tsxindex 13e96478..9716ed30 100644--- a/src/components/launch/UpdateToastWindow.tsx+++ b/src/components/launch/UpdateToastWindow.tsx@@ -151,7 +151,9 @@ export function UpdateToastWindow() {return (<div className={`${styles.window} launch-theme`}><section className={styles.card} aria-live="polite" aria-label="Recordly update">- <div className={`${styles.icon} ${payload.phase === "error" ? styles.iconError : ""}`}>+ <div+ className={`${styles.icon} ${payload.phase === "error" ? styles.iconError : ""}`}+ ><PhaseIcon payload={payload} /></div>@@ -175,7 +177,10 @@ export function UpdateToastWindow() {{payload.phase === "downloading" ? (<div className={styles.progressBlock}><div className={styles.progressTrack}>- <div className={styles.progressFill} style={{ width: `${progress}%` }} />+ <div+ className={styles.progressFill}+ style={{ width: `${progress}%` }}+ /></div><div className={styles.progressMeta}><strong>{progress}%</strong>@@ -184,10 +189,18 @@ export function UpdateToastWindow() {</div>) : (<div className={styles.actions}>- <button type="button" className={styles.secondaryButton} onClick={handleNotNow}>+ <button+ type="button"+ className={styles.secondaryButton}+ onClick={handleNotNow}+ >{t("launch.updateToast.notNow", "Not now")}</button>- <button type="button" className={styles.primaryButton} onClick={handlePrimaryAction}>+ <button+ type="button"+ className={styles.primaryButton}+ onClick={handlePrimaryAction}+ >{getPrimaryLabel(payload, t)}</button></div>