Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
| Docker | `newfuture/ddns:${BUILD_VERSION}` 8种架构|
| Windows | [64位(x64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x64.exe) / [32位(x86)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-x86.exe) / [arm64](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-windows-arm64.exe) |
| Linux | [64位(x64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-linux-x64) / [arm64](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-linux-arm64) |
| Mac OS X | [Apple Silicon (ARM64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-arm64.app) / [Intel x64](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-x64.app) |
| Mac OS X | [Apple Silicon (ARM64)](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-arm64) / [Intel x64](https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-x64) |
| Python/PIP | any |

## Docker (推荐) ![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/newfuture/ddns/${BUILD_VERSION}?style=flat-square)[![Docker Platforms](https://img.shields.io/badge/arch-amd64%20%7C%20arm64%20%7C%20arm%2Fv7%20%7C%20arm%2Fv6%20%7C%20ppc64le%20%7C%20s390x%20%7C%20386%20%7C%20mips64le-blue?logo=docker&style=flat-square)](https://hub.docker.com/r/newfuture/ddns)
Expand Down Expand Up @@ -60,10 +60,10 @@ curl -sSL https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/c
```sh
# 命令行下载
# arm64
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-arm64.app -#SLo ddns && chmod +x ddns
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.app -#SLo ddns && chmod +x ddns
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_VERSION}/ddns-mac-x64 -#SLo ddns && chmod +x ddns
```

## 使用PIP 安装 ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ddns/${BUILD_VERSION}.svg?style=flat-square) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/ddns.svg?style=flat-square)
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,15 @@ jobs:
- run: ./dist/ddns || test -e config.json
- run: ./dist/ddns -h

- run: mv ./dist/ddns ./dist/ddns-ubuntu24.04-${{ runner.arch }}
- run: mv ./dist/ddns ./dist/ddns-ubuntu24.04-${{ matrix.arch }}
if: runner.os == 'Linux'
- run: mv ./dist/ddns ./dist/ddns-mac-${{ runner.arch }}.app
- run: mv ./dist/ddns ./dist/ddns-mac-${{ matrix.arch }}
if: runner.os == 'macOS'
- run: mv ./dist/ddns.exe ./dist/ddns-windows-${{ runner.arch }}.exe
- run: mv ./dist/ddns.exe ./dist/ddns-windows-${{ matrix.arch }}.exe
if: runner.os == 'Windows'
- name: Upload files
run: gh release upload ${{ github.ref_name }} dist/ddns* --clobber
- name: Upload binary
run: gh release upload ${{ github.ref_name }} dist/ddns*
shell: bash
env:
GH_TOKEN: ${{ github.token }}

Expand Down Expand Up @@ -207,9 +208,9 @@ jobs:

- run: ./dist/ddns || test -e config.json
- run: ./dist/ddns -h
- run: mv ./dist/ddns ./dist/ddns-linux-${{ runner.arch }}
- name: Upload files
run: gh release upload ${{ github.ref_name }} dist/ddns* --clobber
- run: sudo mv ./dist/ddns ./dist/ddns-linux-$(echo "${{ runner.arch }}" | tr '[:upper:]' '[:lower:]')
- name: Upload binary
run: gh release upload ${{ github.ref_name }} dist/ddns*
env:
GH_TOKEN: ${{ github.token }}

Expand Down
Loading
Loading