From 4424f0489ad58c7c3c3cdf936aabb6054ba9f1ae Mon Sep 17 00:00:00 2001 From: Vincent Young Date: Tue, 4 Aug 2026 20:22:23 +0800 Subject: [PATCH] fix(release): keep deeplx binary and Docker package names Only the GitHub repository was renamed to DLX. Restore historical artifact names: deeplx_* release binaries, missuo/deeplx Docker Hub, ghcr.io/owo-network/deeplx, and matching install/systemd/launchd paths. --- .cross_compile.sh | 2 +- .github/workflows/docker.yaml | 5 +-- .github/workflows/release.yaml | 4 +-- Dockerfile | 10 +++--- README.md | 13 ++++--- compose.yaml | 4 +-- dlx.service => deeplx.service | 2 +- install.sh | 13 +++---- me.missuo.dlx.plist => me.missuo.deeplx.plist | 4 +-- uninstall.sh | 36 +++++++++---------- 10 files changed, 49 insertions(+), 44 deletions(-) rename dlx.service => deeplx.service (85%) rename me.missuo.dlx.plist => me.missuo.deeplx.plist (83%) diff --git a/.cross_compile.sh b/.cross_compile.sh index de85920..a381e93 100644 --- a/.cross_compile.sh +++ b/.cross_compile.sh @@ -11,7 +11,7 @@ ### set -e -DIST_PREFIX="dlx" +DIST_PREFIX="deeplx" DEBUG_MODE=${2} TARGET_DIR="dist" PLATFORMS="darwin/amd64 darwin/arm64 linux/386 linux/amd64 linux/arm64 linux/mips openbsd/amd64 openbsd/arm64 freebsd/amd64 freebsd/arm64 windows/386 windows/amd64" diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 5ab9de9..a5d71d4 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -8,8 +8,9 @@ on: - 'v*' env: - DOCKER_IMAGE_NAME: missuo/dlx - GHCR_IMAGE_NAME: ${{ github.repository }} + # Keep historical package names (deeplx); only the GitHub repo was renamed to DLX. + DOCKER_IMAGE_NAME: missuo/deeplx + GHCR_IMAGE_NAME: owo-network/deeplx DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d3ab36c..6a7c42e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -41,7 +41,7 @@ jobs: CGO_ENABLED: "0" run: | mkdir -p dist - BINARY="dist/dlx_${GOOS}_${GOARCH}" + BINARY="dist/deeplx_${GOOS}_${GOARCH}" if [ "${GOOS}" = "windows" ]; then BINARY="${BINARY}.exe" fi @@ -50,7 +50,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: dlx_${{ matrix.goos }}_${{ matrix.goarch }} + name: deeplx_${{ matrix.goos }}_${{ matrix.goarch }} path: dist/* if-no-files-found: error diff --git a/Dockerfile b/Dockerfile index fe40b8e..2225daf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,12 @@ FROM golang:1.25 AS builder WORKDIR /go/src/github.com/OwO-Network/DLX COPY . . RUN go get -d -v ./ -RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o dlx . +RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx . FROM alpine:latest WORKDIR /app -RUN addgroup -S dlx && adduser -h /app -G dlx -SH dlx -USER dlx:dlx -COPY --from=builder --chown=dlx:dlx /go/src/github.com/OwO-Network/DLX/dlx /app/dlx +RUN addgroup -S deeplx && adduser -h /app -G deeplx -SH deeplx +USER deeplx:deeplx +COPY --from=builder --chown=deeplx:deeplx /go/src/github.com/OwO-Network/DLX/deeplx /app/deeplx EXPOSE 1188 -ENTRYPOINT ["/app/dlx"] +ENTRYPOINT ["/app/deeplx"] diff --git a/README.md b/README.md index 439fb51..84e4165 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,14 @@ [![Go Version][2]](https://github.com/OwO-Network/DLX/blob/main/go.mod) [![Go Report][3]](https://goreportcard.com/badge/github.com/OwO-Network/DLX) [![GitHub License][4]](https://github.com/OwO-Network/DLX/blob/main/LICENSE) -[![Docker Pulls][5]](https://hub.docker.com/r/missuo/dlx) +[![Docker Pulls][5]](https://hub.docker.com/r/missuo/deeplx) [![Releases][6]](https://github.com/OwO-Network/DLX/releases) [1]: https://img.shields.io/github/actions/workflow/status/OwO-Network/DLX/release.yaml?logo=github [2]: https://img.shields.io/github/go-mod/go-version/OwO-Network/DLX?logo=go [3]: https://goreportcard.com/badge/github.com/OwO-Network/DLX [4]: https://img.shields.io/github/license/OwO-Network/DLX -[5]: https://img.shields.io/docker/pulls/missuo/dlx?logo=docker +[5]: https://img.shields.io/docker/pulls/missuo/deeplx?logo=docker [6]: https://img.shields.io/github/v/release/OwO-Network/DLX?logo=smartthings > [!IMPORTANT] @@ -40,8 +40,11 @@ DLX is a self-hosted translation API server written in Go. It exposes a simple H ### Docker +Docker Hub and GHCR image names remain `deeplx` (only the GitHub repository was renamed to DLX): + ```bash -docker run -d -p 1188:1188 ghcr.io/owo-network/dlx:latest +docker run -d -p 1188:1188 ghcr.io/owo-network/deeplx:latest +# or: docker run -d -p 1188:1188 missuo/deeplx:latest ``` Or use the provided [`compose.yaml`](compose.yaml): @@ -52,10 +55,10 @@ docker compose up -d ### Binary -Download the binary for your platform from [Releases](https://github.com/OwO-Network/DLX/releases) and run it: +Download the binary for your platform from [Releases](https://github.com/OwO-Network/DLX/releases) and run it (artifact names remain `deeplx_*`): ```bash -./dlx +./deeplx ``` ### Translate diff --git a/compose.yaml b/compose.yaml index 5f40f2a..eb0bd1b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,6 @@ services: - dlx: - image: ghcr.io/owo-network/dlx:latest + deeplx: + image: ghcr.io/owo-network/deeplx:latest restart: always ports: - "1188:1188" diff --git a/dlx.service b/deeplx.service similarity index 85% rename from dlx.service rename to deeplx.service index 1042807..ae49047 100644 --- a/dlx.service +++ b/deeplx.service @@ -6,7 +6,7 @@ After=network.target Type=simple Restart=always WorkingDirectory=/usr/bin/ -ExecStart=/usr/bin/dlx +ExecStart=/usr/bin/deeplx [Install] WantedBy=multi-user.target diff --git a/install.sh b/install.sh index 3ed2bc7..e6a5f78 100644 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ # @Author: Vincent Young # @Date: 2023-02-12 09:53:21 # @LastEditors: Vincent Yang - # @LastEditTime: 2026-07-08 00:00:00 + # @LastEditTime: 2026-08-04 00:00:00 # @FilePath: /DLX/install.sh # @Telegram: https://t.me/missuo # @@ -29,13 +29,14 @@ install_dlx(){ ;; esac - wget -q -N --no-check-certificate -O /usr/bin/dlx https://github.com/OwO-Network/DLX/releases/download/${last_version}/dlx_linux_${file_arch} + # Release artifact names remain deeplx_* (only the GitHub repo was renamed). + wget -q -N --no-check-certificate -O /usr/bin/deeplx https://github.com/OwO-Network/DLX/releases/download/${last_version}/deeplx_linux_${file_arch} - chmod +x /usr/bin/dlx - wget -q -N --no-check-certificate -O /etc/systemd/system/dlx.service https://raw.githubusercontent.com/OwO-Network/DLX/main/dlx.service + chmod +x /usr/bin/deeplx + wget -q -N --no-check-certificate -O /etc/systemd/system/deeplx.service https://raw.githubusercontent.com/OwO-Network/DLX/main/deeplx.service systemctl daemon-reload - systemctl enable dlx - systemctl start dlx + systemctl enable deeplx + systemctl start deeplx echo -e "Installed successfully, listening at 0.0.0.0:1188" } install_dlx diff --git a/me.missuo.dlx.plist b/me.missuo.deeplx.plist similarity index 83% rename from me.missuo.dlx.plist rename to me.missuo.deeplx.plist index 6b7d34e..055115f 100644 --- a/me.missuo.dlx.plist +++ b/me.missuo.deeplx.plist @@ -3,12 +3,12 @@ Label - me.missuo.dlx + me.missuo.deeplx KeepAlive ProgramArguments - /usr/local/bin/dlx + /usr/local/bin/deeplx RunAtLoad diff --git a/uninstall.sh b/uninstall.sh index d3f5a38..6243b99 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -15,37 +15,37 @@ fi uninstall_dlx() { echo -e "${green}Starting DLX uninstallation...${plain}" - # 1. Stop and disable the DLX service - if systemctl is-active --quiet dlx; then - echo -e "${yellow}Stopping DLX service...${plain}" - systemctl stop dlx + # 1. Stop and disable the deeplx service (historical unit name) + if systemctl is-active --quiet deeplx; then + echo -e "${yellow}Stopping deeplx service...${plain}" + systemctl stop deeplx else - echo -e "${yellow}DLX service is not running or not found.${plain}" + echo -e "${yellow}deeplx service is not running or not found.${plain}" fi - if systemctl is-enabled --quiet dlx; then - echo -e "${yellow}Disabling DLX service from starting on boot...${plain}" - systemctl disable dlx + if systemctl is-enabled --quiet deeplx; then + echo -e "${yellow}Disabling deeplx service from starting on boot...${plain}" + systemctl disable deeplx else - echo -e "${yellow}DLX service is not enabled.${plain}" + echo -e "${yellow}deeplx service is not enabled.${plain}" fi # 2. Remove the systemd service file - if [ -f /etc/systemd/system/dlx.service ]; then - echo -e "${yellow}Removing DLX systemd service file (/etc/systemd/system/dlx.service)...${plain}" - rm -f /etc/systemd/system/dlx.service + if [ -f /etc/systemd/system/deeplx.service ]; then + echo -e "${yellow}Removing deeplx systemd service file (/etc/systemd/system/deeplx.service)...${plain}" + rm -f /etc/systemd/system/deeplx.service systemctl daemon-reload echo -e "${green}Systemd daemon reloaded.${plain}" else - echo -e "${yellow}DLX systemd service file not found, skipping removal.${plain}" + echo -e "${yellow}deeplx systemd service file not found, skipping removal.${plain}" fi - # 3. Remove the DLX executable - if [ -f /usr/bin/dlx ]; then - echo -e "${yellow}Removing DLX executable (/usr/bin/dlx)...${plain}" - rm -f /usr/bin/dlx + # 3. Remove the executable (release binary name remains deeplx) + if [ -f /usr/bin/deeplx ]; then + echo -e "${yellow}Removing deeplx executable (/usr/bin/deeplx)...${plain}" + rm -f /usr/bin/deeplx else - echo -e "${yellow}DLX executable not found, skipping removal.${plain}" + echo -e "${yellow}deeplx executable not found, skipping removal.${plain}" fi echo -e "${green}DLX uninstallation complete.${plain}"