【约定】整合包更新机制 — 双通道、版本标识与更新器自更新(变迁记录) #73
wochenlong
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
当前约定(
UPDATER_VERSION = 2,commit4a9cfab)双更新路径
Update-SD-Trainer.bat、update\update_sd_trainer.batSD-Trainer/.git;日常增量跟随origin/mainUpdate-SD-Trainer-Release.bat、update\update_from_release.bat.git旧包;Git 全失败;需与 GitHub Release 7z 字节级对齐;同 VERSION 重发 7z 必须用此路径版本标识(排障三件套)
SD-Trainer/VERSION2.7.0SD-Trainer/PORTABLE_BUILDSD-Trainer/scripts/portable/UPDATER_VERSION更新开始时会打印:本地 VERSION / PORTABLE_BUILD / git、线上 main VERSION、最新 Release tag、本地 vs 线上 UPDATER_VERSION(
show_portable_update_status.ps1)。更新器自更新(Bootstrap)
每次运行
Update-*.bat时(除非--no-bootstrap):bootstrap_portable_updaters.ps1(含 ghfast 镜像回退)bootstrap_portable_updaters.ps1从 GitHubmainraw 同步 manifest 内文件,SHA256 比对,有变更则 exit 10call "%~f0" --no-bootstrap"重跑,再执行 Git / Release 主流程同步范围见
portable_updater_common.ps1→Get-PortableUpdaterManifest(根目录Update-*.bat、update_from_release.ps1、common/show/bootstrap、UPDATER_VERSION、templates 等)。设计意图:已安装旧 7z 的用户不必等重打整合包,也能拿到最新更新器逻辑(修复
/XO、.git检查、版本 banner 等)。用户数据(永不覆盖)
Release 合并使用
robocopy /IS /IT(禁止/XO),并写入config/.portable_release_sync.json记录 Release 资产 id。Git 更新要点
.git→ 明确失败,引导 Release 更新;禁止显示「更新完成」git fetch --deepen=50后再--ff-onlygit stash后再快进dataset-tag-editor子模块失败仅 warning维护者 Checklist
UPDATER_VERSION;同步build-scripts/templates/与scripts/portable/templates/PORTABLE_BUILDverify_portable_updaters.ps1 -PortableRoot <构建输出>全 PASS变迁记录
run_gui.bat;flash-attn/triton 移除;tkinter 打包;PYTHONNOUSERSITE等训练隔离--deepen=50;GitHub 多镜像 fetch;子模块容错;launch_portable.bat路径修复;PyTorch 源按吞吐量测速update_from_release.ps1从 Release 7z 合并7841f19前后tagger-models/wd14/;Release 更新可用但仍有坑PORTABLE_BUILD=18e15ccrobocopy /XO→/IS /IT;新增PORTABLE_BUILD、.portable_release_sync.json;Release 后显式同步.git;修复 ps1 引号解析;根目录 bat 从 templates 刷新,避免 v2.5 时代「裸git pull、无.git仍显示完成」3b1cd304a9cfabportable_updater_common.ps1;打印线上 main / 最新 Release / 本地与线上 UPDATER_VERSION常见问题(排障索引)
Pulling latest code+not a git repository仍「完成」PORTABLE_BUILD仍旧/XO跳过文件UPDATER_VERSION ≥ 2--deepen=50;仍失败则 Release 更新.git但 hotfix 只在重打 7z相关链接
本帖随 main 更新器变更维护;实现以仓库为准。
Beta Was this translation helpful? Give feedback.
All reactions