#1597 windows源码部署该怎么更新

142.91* Posted at: 16 hours ago 👁16

windows源码部署该怎么更新

1 Replies

Windows 源码部署更新步骤如下:

  1. 备份配置:关闭软件,备份 config.json 文件(位于项目根目录或用户目录下的 .videotrans 文件夹中),以防更新后配置丢失。
  2. 拉取最新代码

    • 打开命令提示符或 PowerShell。
    • 导航到你的 pyvideotrans 项目根目录。
    • 执行命令:git pull origin main
  3. 更新依赖

    • 在项目根目录执行:uv sync
    • 如果没有使用 uv,请使用你最初部署时使用的包管理器(如 pip install -r requirements.txt)。
  4. 重启软件

    • 执行 uv run sp.py 或你之前使用的启动命令来运行更新后的版本。

注意:如果更新后出现模块缺失或运行错误,通常是因为依赖库版本冲突,重新执行第3步的依赖更新通常可以解决。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions