Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
Installed-package update reminder tells the user to download and replace, opens the page and closes
Bowen Xue8a168a1f1370
diff --git a/freevideo_engine/launcher/Main.qml b/freevideo_engine/launcher/Main.qmlindex aaf7bb6..d2f5b53 100644--- a/freevideo_engine/launcher/Main.qml+++ b/freevideo_engine/launcher/Main.qml@@ -183,6 +183,7 @@ ApplicationWindow {if (phase === "restarting" || phase === "engine") return t("ComfyUI restarts once; open FreeVideo pages refresh automatically.", "ComfyUI 会重启一次,已打开的 FreeVideo 页面会自动刷新。")if (phase === "checking") return ""if (s.update.status === "error" && s.update.error) return s.update.error+ if (s.update.candidate && s.update.manual) return t("Current version ", "当前版本 ") + releaseVersion(currentRelease) + t(". Download it and replace this version; models and settings are kept.", "。下载新版后替换当前版本,模型和设置会保留。")if (s.update.candidate) return t("Current version ", "当前版本 ") + releaseVersion(currentRelease) + t(". Updating keeps your models and settings and takes about a minute.", "。更新会保留模型和设置,约需 1 分钟。")return t("Installed engine ", "已安装引擎 ") + engineVersion + t(". Updating takes about a minute and keeps your models and settings.", "。更新约需 1 分钟,模型和设置都会保留。")}@@ -778,8 +779,8 @@ ApplicationWindow {FButton {// Repair and opening FreeVideo come first; the banner's colour already marks the update.id: engineUpdate; objectName: "engineUpdateButton"; primary: !s.repair_offered && s.status !== "open" && !(updateFirst && !s.retry_kind); visible: !s.update.phase; enabled: !s.busy- text: s.update.status === "error" ? t("Retry update", "重试更新") : s.update.status === "ready" && s.update.candidate ? t("Restart & update", "重启并更新") : t("Update now", "立即更新")- onClicked: { manualUpdate = !!s.update.candidate; backend.update("") }+ text: s.update.status === "error" ? t("Retry update", "重试更新") : s.update.status === "ready" && s.update.candidate ? t("Restart & update", "重启并更新") : s.update.manual && s.update.candidate ? t("Download ↗", "去下载 ↗") : t("Update now", "立即更新")+ onClicked: { manualUpdate = !!s.update.candidate && !s.update.manual; backend.update("") }}}FMeter { visible: s.update.phase === "downloading"; Layout.fillWidth: true; fraction: s.update.progress && s.update.progress.total ? s.update.progress.done / s.update.progress.total : -1; active: visible }@@ -1513,7 +1514,7 @@ ApplicationWindow {spacing: 14FText { objectName: "updateActionNotice"; visible: !!s.action_notice; text: s.action_notice || ""; color: theme.muted; Layout.fillWidth: true }FText { text: s.update.candidate ? t("Update available", "有可用更新") : s.update.engine ? t("Engine update", "引擎更新") : t("Updates", "更新"); font.pixelSize: theme.section + 2; font.weight: Font.DemiBold }- FText { objectName: "updateDialogText"; text: s.update.phase === "waiting" ? t("A video is still generating. FreeVideo restarts and updates as soon as it finishes.", "还有视频正在生成,完成后会自动重启并更新。") : s.update.status === "ready" && s.update.candidate ? t("Downloaded. Restart to finish; models and settings are kept.", "下载完成,重启即可完成更新,模型和设置都会保留。") : s.update.candidate ? t("FreeVideo ", "FreeVideo ") + releaseVersion(s.update.candidate) + t(" is available (current ", " 已发布(当前 ") + releaseVersion(currentRelease) + t("). Updating keeps your models and settings. FreeVideo restarts after the download; running videos finish first.", ")。更新会保留模型和设置,下载完成后自动重启;正在生成的视频会先完成。") : s.update.engine ? t("This launcher already includes engine ", "启动器已带有新版引擎 ") + releaseVersion(currentRelease) + t(" (installed: ", "(已安装 ") + engineVersion + (s.status === "open" ? t("). Updating takes about a minute, restarts ComfyUI once and keeps your models and settings.", ")。更新约需 1 分钟,会重启一次 ComfyUI,模型和设置都会保留。") : t("). Updating takes about a minute, then FreeVideo starts; models and settings are kept.", ")。更新约需 1 分钟,完成后自动启动,模型和设置都会保留。")) : s.update.status === "current" ? t("You're up to date.", "已是最新版本。") : s.update.status === "development" ? t("Running from source. Update with Git.", "当前从源码运行,请通过 Git 更新。") : s.update.status === "error" ? t("Could not check for updates.", "暂时无法检查更新。") : t("Checking the latest release…", "正在检查最新版本…"); color: theme.muted; Layout.fillWidth: true }+ FText { objectName: "updateDialogText"; text: s.update.phase === "waiting" ? t("A video is still generating. FreeVideo restarts and updates as soon as it finishes.", "还有视频正在生成,完成后会自动重启并更新。") : s.update.status === "ready" && s.update.candidate ? t("Downloaded. Restart to finish; models and settings are kept.", "下载完成,重启即可完成更新,模型和设置都会保留。") : s.update.candidate && s.update.manual ? t("FreeVideo ", "FreeVideo ") + releaseVersion(s.update.candidate) + t(" is available (current ", " 已发布(当前 ") + releaseVersion(currentRelease) + t("). Download it and replace this version; models and settings are kept.", ")。下载新版后替换当前版本,模型和设置会保留。") : s.update.candidate ? t("FreeVideo ", "FreeVideo ") + releaseVersion(s.update.candidate) + t(" is available (current ", " 已发布(当前 ") + releaseVersion(currentRelease) + t("). Updating keeps your models and settings. FreeVideo restarts after the download; running videos finish first.", ")。更新会保留模型和设置,下载完成后自动重启;正在生成的视频会先完成。") : s.update.engine ? t("This launcher already includes engine ", "启动器已带有新版引擎 ") + releaseVersion(currentRelease) + t(" (installed: ", "(已安装 ") + engineVersion + (s.status === "open" ? t("). Updating takes about a minute, restarts ComfyUI once and keeps your models and settings.", ")。更新约需 1 分钟,会重启一次 ComfyUI,模型和设置都会保留。") : t("). Updating takes about a minute, then FreeVideo starts; models and settings are kept.", ")。更新约需 1 分钟,完成后自动启动,模型和设置都会保留。")) : s.update.status === "current" ? t("You're up to date.", "已是最新版本。") : s.update.status === "development" ? t("Running from source. Update with Git.", "当前从源码运行,请通过 Git 更新。") : s.update.status === "error" ? t("Could not check for updates.", "暂时无法检查更新。") : t("Checking the latest release…", "正在检查最新版本…"); color: theme.muted; Layout.fillWidth: true }FMeter { Layout.fillWidth: true; visible: s.update.status === "downloading"; active: true; fraction: s.update.progress && s.update.progress.total ? s.update.progress.done/s.update.progress.total : -1 }FReleaseNotes { objectName: "updateReleaseNotes"; visible: !!availableRelease; Layout.fillWidth: true; release: availableRelease; earlier: availableEarlier; zh: s.zh; heading: t("What's new", "更新内容") + " · " + releaseVersion(availableRelease) }FButton { text: t("Version & release notes", "版本与更新说明"); flat: true; onClicked: releaseNotesOpen = true }@@ -1525,7 +1526,7 @@ ApplicationWindow {id: updateActions; Layout.fillWidth: trueFButton { objectName: "updateLaterButton"; text: s.update.candidate || s.update.engine ? t("Later", "稍后更新") : t("Close", "关闭"); flat: true; onClicked: { manualUpdate = false; backend.dismissUpdate() } }Item { Layout.fillWidth: true }- FButton { objectName: "updateNowButton"; text: s.update.status === "error" ? t("Retry update", "重试更新") : s.update.status === "ready" && s.update.candidate ? t("Restart & update", "重启并更新") : s.update.candidate || s.update.engine ? t("Update now", "立即更新") : t("Check again", "重新检查"); primary: true; enabled: ["checking","downloading"].indexOf(s.update.status) < 0 && s.update.phase !== "waiting"; onClicked: { manualUpdate = !!s.update.candidate || !s.update.engine; backend.update("") } }+ FButton { objectName: "updateNowButton"; text: s.update.status === "error" ? t("Retry update", "重试更新") : s.update.status === "ready" && s.update.candidate ? t("Restart & update", "重启并更新") : s.update.manual && s.update.candidate ? t("Download ↗", "去下载 ↗") : s.update.candidate || s.update.engine ? t("Update now", "立即更新") : t("Check again", "重新检查"); primary: true; enabled: ["checking","downloading"].indexOf(s.update.status) < 0 && s.update.phase !== "waiting"; onClicked: { manualUpdate = (!!s.update.candidate || !s.update.engine) && !(s.update.manual && s.update.candidate); backend.update("") } }}}}diff --git a/freevideo_engine/launcher_copy.py b/freevideo_engine/launcher_copy.pyindex 9b8f301..d34e076 100644--- a/freevideo_engine/launcher_copy.py+++ b/freevideo_engine/launcher_copy.py@@ -12,6 +12,7 @@ ACTION_COPY = {'installation_missing': ('There is no installation information yet. Complete installation first.','还没有安装信息,请先完成安装'),'checking_update': ('Checking for updates. Please wait.', '正在检查更新,请稍候'),+ 'update_page_failed': ('Couldn\'t open the download page. Please try again later.', '无法打开下载页,请稍后再试。'),'busy': ('The background task is busy. You can do this when it finishes.','后台正在忙,完成后可以操作'),'import_queued': ('Saved. Importing will start when the current task finishes.',diff --git a/freevideo_engine/launcher_session.py b/freevideo_engine/launcher_session.pyindex 564567b..5c31317 100644--- a/freevideo_engine/launcher_session.py+++ b/freevideo_engine/launcher_session.py@@ -1053,9 +1053,7 @@ class Session:self.bridge_pending = Falseif self.action_notice == 'update_queued':self.action_notice = ''- key = self.update_key()- if key:- self.update_snoozed = dict(self.update_snoozed, **{key: time.monotonic() + SNOOZE_SECONDS})+ self._snooze_update()self.update_intent = Noneself.update_waiting = Falseif self.updater and (self.updater.state['status'] == 'downloading'@@ -1063,6 +1061,11 @@ class Session:self.updater.cancelled.set()self.updater.stop()+ def _snooze_update(self):+ key = self.update_key()+ if key:+ self.update_snoozed = dict(self.update_snoozed, **{key: time.monotonic() + SNOOZE_SECONDS})+def _unsnooze(self):key = self.update_key()self.update_snoozed = {k: v for k, v in self.update_snoozed.items() if k != key}@@ -1080,12 +1083,36 @@ class Session:self.update_checked = time.monotonic()self.updater.run('check')+ def _open_release_page(self):+ """A package the user installs themselves (macOS app, Windows folder): the release+ page opens and the reminder closes. True when this update was handled that way."""+ row = self.updater.state if self.updater else {}+ if not (row.get('candidate') and row.get('status') != 'checking'+ and self.updater.current.get('packaging') in ('onedir', 'app')):+ return False+ from .launcher_update import release_page+ from .windows_ux import open_browser+ self.pending_update = None+ self.update_intent = None+ try:+ opened = open_browser(release_page(self.updater.current))+ except OSError:+ opened = False+ if opened:+ self.action_notice = ''+ self._snooze_update()+ else:+ self.action_notice = 'update_page_failed'+ return True+def update(self, token='', source='launcher'):"""One explicit update: the newest launcher if one is known, otherwisethe engine bundled with this launcher. Downloading, waiting for runningComfyUI jobs and restarting continue from tick()."""if self.engine_updating or self.update_restarting:return+ if self._open_release_page():+ returnif self.task_busy() or self.updater and self.updater.busy:self.pending_update = (token, source)self.action_notice = 'update_queued'@@ -1100,12 +1127,6 @@ class Session:self.queue_state = Nonerow = self.updater.state if self.updater else {}if self.updater and row.get('candidate') and row.get('status') != 'checking':- if self.updater.current.get('packaging') in ('onedir', 'app'):- from .launcher_update import release_page- from .windows_ux import open_browser- self.update_intent = None- open_browser(release_page(self.updater.current))- returnself._unsnooze()self.update_intent = 'launcher'if row['status'] == 'ready':