|
|
@@ -4,72 +4,77 @@
|
|
|
[<img src="https://ddns.newfuture.cc/doc/img/ddns.svg" height="32px"/>](https://ddns.newfuture.cc)
|
|
|
[](https://github.com/NewFuture/DDNS/releases/${BUILD_VERSION})[](https://hub.docker.com/r/newfuture/ddns/tags?name=${BUILD_VERSION})[](https://pypi.org/project/ddns/${BUILD_VERSION})
|
|
|
|
|
|
-## 各版本下载方式一览表
|
|
|
|
|
|
-| 平台/方式 |架构支持 |
|
|
|
-| ----------- |---------------------- |
|
|
|
-| Docker | `newfuture/ddns:${BUILD_VERSION}` (8 Arch) <br> [Github源](https://ghcr.io/newfuture/ddns) + [Docker源](https://hub.docker.com/r/newfuture/ddns) |
|
|
|
-| Windows | [下载64位 (download x64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x64.exe) <br> [下载32位 (download x86)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x86.exe) <br> [下载arm (download arm64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-arm64.exe) |
|
|
|
-| Linux | [下载64位 (download x64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-linux-x64) <br> [下载arm (download arm64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-linux-arm64) |
|
|
|
-| Mac OS | [下载ARM64 (Apple Silicon)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-arm64) <br> [下载x86_64 (Intel x64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-x64) |
|
|
|
-| PIP | [`ddns=${BUILD_VERSION}`](https://pypi.org/project/ddns/${BUILD_VERSION}) (Any Arch) |
|
|
|
-|Python | [源码 (source code)](https://github.com/NewFuture/DDNS/archive/refs/tags/${BUILD_VERSION}.zip) (Any Arch) |
|
|
|
+## 各版本一览表 (Download Methods Overview)
|
|
|
|
|
|
-## Docker (推荐) [](https://hub.docker.com/r/newfuture/ddns)
|
|
|
+// ...existing code...
|
|
|
+| 系统环境 (System) | 架构支持 (Architecture) | 说明 (Description) |
|
|
|
+| ---------: |:------------------- |:---------|
|
|
|
+| Docker | `newfuture/ddns:${BUILD_VERSION}` | 支持8种架构 🚀 Supports 8 architectures <br> [Github Registry](https://ghcr.io/newfuture/ddns) + [Docker Hub](https://hub.docker.com/r/newfuture/ddns) |
|
|
|
+| Windows | [64-bit (ddns-windows-x64.exe)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x64.exe) <br> [32-bit (ddns-windows-x86.exe)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x86.exe) <br> [ARM (ddns-windows-arm64.exe)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-arm64.exe) | 已在 Windows 10 和 Windows 11 测试通过 <br> Tested on Windows 10 and Windows 11 |
|
|
|
+| GLIBC Linux | [64-bit (ddns-glibc-linux_amd64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-glibc-linux_amd64)<br> [32-bit (ddns-glibc-linux_386)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-glibc-linux_386) <br> [ARM64 (ddns-glibc-linux_arm64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-glibc-linux_arm64)<br> [ARM/V7 (ddns-glibc-linux_arm_v7)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-glibc-linux_arm_v7) | 常规Linux桌面或服务器版,需GLIBC≥2.28,如 Debian 9+,Ubuntu 20.04+,CentOS 8+ <br> 🐧 For common Linux desktop/server with GLIBC ≥2.28|
|
|
|
+| Musl Linux | [64-bit (ddns-musl-linux_amd64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-musl-linux_amd64) <br> [32-bit (ddns-musl-linux_386)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-musl-linux_386) <br> [ARM64 (ddns-musl-linux_arm64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-musl-linux_arm64)<br> [ARM/V7 (ddns-musl-linux_arm_v7)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-musl-linux_arm_v7) <br> [ARM/V6 (ddns-musl-linux_arm_v6)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-musl-linux_arm_v6) | 适用于OpenWRT及嵌入式设备musl≥1.1.24,如OpenWRT 19+,ARMv6未测试<br> 🛠️ For OpenWRT and embedded devices using musl (≥1.1.24), e.g., OpenWRT 19+. ARMv6 not tested |
|
|
|
+| Mac OS | [ARM/M-chip (ddns-mac-arm64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-arm64) <br> [Intel x86_64 (ddns-mac-x64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-x64) | 仅虚拟环境测试,未真机测试 <br> 🍎 Tested in virtual environments only |
|
|
|
+| PIP | [`ddns=${BUILD_VERSION}` (全平台)](https://pypi.org/project/ddns/${BUILD_VERSION}) | 可通过pip/pip2/pip3/easy_install安装,部分环境自动添加到PATH <br> 📦Installable via pip and other tools |
|
|
|
+| Python | 源码(全平台)[Source code](https://github.com/NewFuture/DDNS/archive/refs/tags/${BUILD_VERSION}.zip)| 可直接运行于Python 2.7或Python 3环境,无额外依赖 <br> 🐍 Directly runnable with Python 2.7 or Python 3, no extra dependencies |
|
|
|
+
|
|
|
+## Docker (推荐 Recommended) [](https://hub.docker.com/r/newfuture/ddns)
|
|
|
|
|
|
```bash
|
|
|
-# 当前版本
|
|
|
+# 当前版本 (Current version)
|
|
|
docker --name ddns -v $(pwd)/:/DDNS newfuture/ddns:${BUILD_VERSION} -h
|
|
|
-# 最新版本(可能有缓存)
|
|
|
+# 最新版本 (Latest version, may use cache)
|
|
|
docker --name ddns -v $(pwd)/:/DDNS newfuture/ddns -h
|
|
|
```
|
|
|
|
|
|
-请将 `$(pwd)/` 替换为你的配置文件夹。
|
|
|
+请将 `$(pwd)/` 替换为你的配置文件夹。(Replace `$(pwd)/` with your configuration folder.)
|
|
|
|
|
|
-* 命令行参数使用 `-h`
|
|
|
-* 配置文件config.json,使用vscode等编辑会有自动提示
|
|
|
-* 环境变量`DDNS_XXX`
|
|
|
+* 使用 `-h` 查看命令行帮助 (Use `-h` for command-line help)
|
|
|
+* 配置文件config.json支持编辑器自动提示 (config.json supports auto-completion in editors)
|
|
|
+* 支持环境变量`DDNS_XXX` (Supports environment variables `DDNS_XXX`)
|
|
|
|
|
|
-支持源:
|
|
|
+支持源 (Supported registries):
|
|
|
|
|
|
-* Docker官方源: [docker.io/newfuture/ddns](https://hub.docker.com/r/newfuture/ddns)
|
|
|
-* Github官方源: [ghcr.io/newfuture/ddns](https://github.com/NewFuture/DDNS/pkgs/container/ddns)
|
|
|
+* Docker官方源 (Docker Hub): [docker.io/newfuture/ddns](https://hub.docker.com/r/newfuture/ddns)
|
|
|
+* Github官方源 (Github Registry): [ghcr.io/newfuture/ddns](https://github.com/NewFuture/DDNS/pkgs/container/ddns)
|
|
|
|
|
|
-## 使用二进制文件 
|
|
|
+## 二进制文件 (Executable Binary) 
|
|
|
|
|
|
-各平台下载/使用方式
|
|
|
+各平台下载和使用方式 (Download and Usage per platform):
|
|
|
|
|
|
* ### Windows
|
|
|
|
|
|
-1. 下载 [`ddns-windows-x64.exe`](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x64.exe) 或者 [`ddns-windows-x86.exe`](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x86.exe) 或者[`ddns-windows-arm64.exe`](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-arm64.exe) 保存为`ddns.exe` 运行
|
|
|
-2. [可选] 定时任务 下载 [`create-task.bat`](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/create-task.bat) 于**相同目录**,以管理员权限运行
|
|
|
+1. 下载 (Download) [`ddns-windows-x64.exe`](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x64.exe) 或 (or) [`ddns-windows-x86.exe`](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x86.exe) 或 (or) [`ddns-windows-arm64.exe`](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-arm64.exe) 保存为 (save as) `ddns.exe` 并运行 (and run)
|
|
|
+2. [可选 Optional] 定时任务 (Scheduled task): 下载 (Download) [`create-task.bat`](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/create-task.bat) 于相同目录 (in same directory),以管理员权限运行 (run as administrator)
|
|
|
|
|
|
-* ### Linux
|
|
|
+### Linux
|
|
|
|
|
|
```bash
|
|
|
-# 1. 下载ddns
|
|
|
-# x64 版本
|
|
|
-curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-linux-x64 -#SLo ddns && chmod +x ddns
|
|
|
+# 常规Linux (glibc x64)
|
|
|
+curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-glibc-linux-x64 -#SLo ddns && chmod +x ddns
|
|
|
+
|
|
|
+# OpenWRT/嵌入式 (musl arm64)
|
|
|
+curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-musl-linux-arm64 -#SLo ddns && chmod +x ddns
|
|
|
|
|
|
-# arm64 版本
|
|
|
-curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-linux-arm64 -#SLo ddns && chmod +x ddns
|
|
|
+# 其他版本请自行替换链接 (Replace URL for other versions)
|
|
|
|
|
|
-# 2. [可选] 定时任务(当前目录):
|
|
|
+# 可选定时任务 (仅支持systemd系统)
|
|
|
+# Optional scheduled task (systemd only)
|
|
|
curl -sSL https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/create-task.sh | bash
|
|
|
```
|
|
|
|
|
|
-* ### MacOS
|
|
|
+### MacOS
|
|
|
|
|
|
```sh
|
|
|
-# 命令行下载
|
|
|
-# arm64
|
|
|
+# ARM64 (M芯片)
|
|
|
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-arm64 -#SLo ddns && chmod +x ddns
|
|
|
|
|
|
-# intel x64
|
|
|
+# Intel x64
|
|
|
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-x64 -#SLo ddns && chmod +x ddns
|
|
|
```
|
|
|
|
|
|
-## 使用PIP 安装  
|
|
|
+
|
|
|
+## 使用pip安装 (Install via PIP)  
|
|
|
|
|
|
Pypi 安装当前版本或者更新最新版本
|
|
|
|