mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-09-10 12:00:58 +00:00
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.
This commit is contained in:
parent
d44660c9d0
commit
4424f0489a
@ -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"
|
||||
|
||||
5
.github/workflows/docker.yaml
vendored
5
.github/workflows/docker.yaml
vendored
@ -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 }}
|
||||
|
||||
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@ -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
|
||||
|
||||
|
||||
10
Dockerfile
10
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"]
|
||||
|
||||
13
README.md
13
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
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
13
install.sh
13
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
|
||||
|
||||
@ -3,12 +3,12 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>me.missuo.dlx</string>
|
||||
<string>me.missuo.deeplx</string>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/local/bin/dlx</string>
|
||||
<string>/usr/local/bin/deeplx</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
36
uninstall.sh
36
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}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user