diff --git a/.build/ddns.svg b/.build/ddns.svg new file mode 100644 index 000000000..a61f2aa51 --- /dev/null +++ b/.build/ddns.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.build/icon-black.png b/.build/icon-black.png deleted file mode 100644 index d1854ba3c..000000000 Binary files a/.build/icon-black.png and /dev/null differ diff --git a/.build/icon.png b/.build/icon.png deleted file mode 100644 index f9d6f7ded..000000000 Binary files a/.build/icon.png and /dev/null differ diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48d355f11..2dd4c9ffc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -190,10 +190,10 @@ jobs: nofollow-import-to: tkinter,unittest,pydoc,doctest,distutils,setuptools,lib2to3,test,idlelib,lzma onefile-tempdir-spec: "{CACHE_DIR}/{PRODUCT}_{VERSION}" windows-icon-from-ico: ${{ runner.os == 'Windows' && 'favicon.ico' || '' }} - linux-icon: ${{ runner.os == 'Linux' && '.build/icon.png' || '' }} - static-libpython: ${{ runner.os == 'yes' || 'auto' }} + linux-icon: ${{ runner.os == 'Linux' && '.build/ddns.svg' || '' }} + static-libpython: ${{ runner.os == 'Linux' && 'yes' || 'auto' }} macos-app-name: ${{ runner.os == 'macOS' && 'DDNS' || '' }} - macos-app-icon: ${{ runner.os == 'macOS' && '.build/icon.png' || '' }} + macos-app-icon: ${{ runner.os == 'macOS' && '.build/ddns.svg' || '' }} - run: ./dist/ddns || test -e config.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fdf5fae78..57780c05c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -106,14 +106,14 @@ jobs: if: runner.os == 'Linux' run: | apt-get update && apt install -y patchelf ccache - echo " --static-libpython=yes --linux-icon=.build/icon.png" >> .build/nuitka.cmd + echo " --static-libpython=yes --linux-icon=.build/ddns.svg" >> .build/nuitka.cmd cp /etc/ssl/certs/ca-certificates.crt cert.pem && export SSL_CERT_FILE=${PWD}/cert.pem - name: setup on macOS if: runner.os == 'macOS' run: | python3 -m pip install imageio - echo " --macos-app-name=DDNS --macos-app-icon=.build/icon.png" >> .build/nuitka.cmd + echo " --macos-app-name=DDNS --macos-app-icon=.build/ddns.svg" >> .build/nuitka.cmd - name: Package binary run: ./.build/nuitka.cmd diff --git a/README.md b/README.md index d9c86121d..bc9c4ddad 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ -# [DDNS](https://github.com/NewFuture/DDNS) +# [DDNS](https://github.com/NewFuture/DDNS) [](https://ddns.newfuture.cc) + > 自动更新 DNS 解析 到本机 IP 地址,支持 ipv4 和 ipv6 以 本地(内网)IP 和 公网 IP。 > 代理模式,支持自动创建域名记录。 + [![PyPI](https://img.shields.io/pypi/v/ddns.svg?label=DDNS&style=social)](https://pypi.org/project/ddns/) [![Build Status](https://github.com/NewFuture/DDNS/actions/workflows/build.yml/badge.svg?event=push)](https://github.com/NewFuture/DDNS/actions/workflows/build.yml) [![Publish Status](https://github.com/NewFuture/DDNS/actions/workflows/publish.yml/badge.svg)](https://github.com/NewFuture/DDNS/releases/latest) diff --git a/favicon.ico b/favicon.ico index 973a4dfaa..77835601d 100644 Binary files a/favicon.ico and b/favicon.ico differ