Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 4.01 KB

File metadata and controls

74 lines (51 loc) · 4.01 KB

PyPI version Deploy OK

版本下载方式一览表

平台/方式 架构支持
Docker newfuture/ddns:${BUILD_VERSION} 8种架构
Windows 64位(x64) / 32位(x86) / arm64
Linux 64位(x64) / arm64
Mac OS X Apple Silicon (ARM64) / Intel x64
Python/PIP any

Docker (推荐) Docker Image Size (latest by date)Docker Platforms

# 当前版本
docker --name ddns -v $(pwd)/:/DDNS newfuture/ddns:${BUILD_VERSION} -h
# 最新版本(可能有缓存)
docker --name ddns -v $(pwd)/:/DDNS newfuture/ddns -h

请将 $(pwd)/ 替换为你的配置文件夹。

  • 命令行参数使用 -h
  • 配置文件config.json,使用vscode等编辑会有自动提示
  • 环境变量DDNS_XXX

支持源:


使用二进制文件 cross platform

各平台下载/使用方式

  • Windows

  1. 下载 ddns-windows-x64.exe 或者 ddns-windows-x32.exe 或者ddns-windows-arm64.exe 保存为ddns.exe 运行
  2. [可选] 定时任务 下载 create-task.bat相同目录,以管理员权限运行
  • Linux 系统

# 1. 下载ddns 
# x64 版本
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-linux-x64 -#SLo ddns && chmod +x ddns

# arm64 版本
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-linux-arm64 -#SLo ddns && chmod +x ddns

# 2. [可选] 定时任务(当前目录): 
curl -sSL https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/create-task.sh | bash
  • Mac OSX

# 命令行下载
# arm64
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-arm64 -#SLo ddns && chmod +x ddns

# intel x64
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-x64 -#SLo ddns && chmod +x ddns

使用PIP 安装 PyPI - Python Version PyPI - Wheel

Pypi 安装当前版本或者更新最新版本

  • 安装当前版本[current version]: pip install ddns=${BUILD_VERSION}
  • 更新最新版[update latest version]: pip install -U ddns