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
|
set -e
|
||||||
|
|
||||||
DIST_PREFIX="dlx"
|
DIST_PREFIX="deeplx"
|
||||||
DEBUG_MODE=${2}
|
DEBUG_MODE=${2}
|
||||||
TARGET_DIR="dist"
|
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"
|
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*'
|
- 'v*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_IMAGE_NAME: missuo/dlx
|
# Keep historical package names (deeplx); only the GitHub repo was renamed to DLX.
|
||||||
GHCR_IMAGE_NAME: ${{ github.repository }}
|
DOCKER_IMAGE_NAME: missuo/deeplx
|
||||||
|
GHCR_IMAGE_NAME: owo-network/deeplx
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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"
|
CGO_ENABLED: "0"
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
BINARY="dist/dlx_${GOOS}_${GOARCH}"
|
BINARY="dist/deeplx_${GOOS}_${GOARCH}"
|
||||||
if [ "${GOOS}" = "windows" ]; then
|
if [ "${GOOS}" = "windows" ]; then
|
||||||
BINARY="${BINARY}.exe"
|
BINARY="${BINARY}.exe"
|
||||||
fi
|
fi
|
||||||
@ -50,7 +50,7 @@ jobs:
|
|||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dlx_${{ matrix.goos }}_${{ matrix.goarch }}
|
name: deeplx_${{ matrix.goos }}_${{ matrix.goarch }}
|
||||||
path: dist/*
|
path: dist/*
|
||||||
if-no-files-found: error
|
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
|
WORKDIR /go/src/github.com/OwO-Network/DLX
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go get -d -v ./
|
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
|
FROM alpine:latest
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN addgroup -S dlx && adduser -h /app -G dlx -SH dlx
|
RUN addgroup -S deeplx && adduser -h /app -G deeplx -SH deeplx
|
||||||
USER dlx:dlx
|
USER deeplx:deeplx
|
||||||
COPY --from=builder --chown=dlx:dlx /go/src/github.com/OwO-Network/DLX/dlx /app/dlx
|
COPY --from=builder --chown=deeplx:deeplx /go/src/github.com/OwO-Network/DLX/deeplx /app/deeplx
|
||||||
EXPOSE 1188
|
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 Version][2]](https://github.com/OwO-Network/DLX/blob/main/go.mod)
|
||||||
[![Go Report][3]](https://goreportcard.com/badge/github.com/OwO-Network/DLX)
|
[![Go Report][3]](https://goreportcard.com/badge/github.com/OwO-Network/DLX)
|
||||||
[![GitHub License][4]](https://github.com/OwO-Network/DLX/blob/main/LICENSE)
|
[![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)
|
[![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
|
[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
|
[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
|
[3]: https://goreportcard.com/badge/github.com/OwO-Network/DLX
|
||||||
[4]: https://img.shields.io/github/license/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
|
[6]: https://img.shields.io/github/v/release/OwO-Network/DLX?logo=smartthings
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
@ -40,8 +40,11 @@ DLX is a self-hosted translation API server written in Go. It exposes a simple H
|
|||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
|
Docker Hub and GHCR image names remain `deeplx` (only the GitHub repository was renamed to DLX):
|
||||||
|
|
||||||
```bash
|
```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):
|
Or use the provided [`compose.yaml`](compose.yaml):
|
||||||
@ -52,10 +55,10 @@ docker compose up -d
|
|||||||
|
|
||||||
### Binary
|
### 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
|
```bash
|
||||||
./dlx
|
./deeplx
|
||||||
```
|
```
|
||||||
|
|
||||||
### Translate
|
### Translate
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
dlx:
|
deeplx:
|
||||||
image: ghcr.io/owo-network/dlx:latest
|
image: ghcr.io/owo-network/deeplx:latest
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "1188:1188"
|
- "1188:1188"
|
||||||
|
|||||||
@ -6,7 +6,7 @@ After=network.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
WorkingDirectory=/usr/bin/
|
WorkingDirectory=/usr/bin/
|
||||||
ExecStart=/usr/bin/dlx
|
ExecStart=/usr/bin/deeplx
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
13
install.sh
13
install.sh
@ -2,7 +2,7 @@
|
|||||||
# @Author: Vincent Young
|
# @Author: Vincent Young
|
||||||
# @Date: 2023-02-12 09:53:21
|
# @Date: 2023-02-12 09:53:21
|
||||||
# @LastEditors: Vincent Yang
|
# @LastEditors: Vincent Yang
|
||||||
# @LastEditTime: 2026-07-08 00:00:00
|
# @LastEditTime: 2026-08-04 00:00:00
|
||||||
# @FilePath: /DLX/install.sh
|
# @FilePath: /DLX/install.sh
|
||||||
# @Telegram: https://t.me/missuo
|
# @Telegram: https://t.me/missuo
|
||||||
#
|
#
|
||||||
@ -29,13 +29,14 @@ install_dlx(){
|
|||||||
;;
|
;;
|
||||||
esac
|
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
|
chmod +x /usr/bin/deeplx
|
||||||
wget -q -N --no-check-certificate -O /etc/systemd/system/dlx.service https://raw.githubusercontent.com/OwO-Network/DLX/main/dlx.service
|
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 daemon-reload
|
||||||
systemctl enable dlx
|
systemctl enable deeplx
|
||||||
systemctl start dlx
|
systemctl start deeplx
|
||||||
echo -e "Installed successfully, listening at 0.0.0.0:1188"
|
echo -e "Installed successfully, listening at 0.0.0.0:1188"
|
||||||
}
|
}
|
||||||
install_dlx
|
install_dlx
|
||||||
|
|||||||
@ -3,12 +3,12 @@
|
|||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>Label</key>
|
<key>Label</key>
|
||||||
<string>me.missuo.dlx</string>
|
<string>me.missuo.deeplx</string>
|
||||||
<key>KeepAlive</key>
|
<key>KeepAlive</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>ProgramArguments</key>
|
<key>ProgramArguments</key>
|
||||||
<array>
|
<array>
|
||||||
<string>/usr/local/bin/dlx</string>
|
<string>/usr/local/bin/deeplx</string>
|
||||||
</array>
|
</array>
|
||||||
<key>RunAtLoad</key>
|
<key>RunAtLoad</key>
|
||||||
<true/>
|
<true/>
|
||||||
36
uninstall.sh
36
uninstall.sh
@ -15,37 +15,37 @@ fi
|
|||||||
uninstall_dlx() {
|
uninstall_dlx() {
|
||||||
echo -e "${green}Starting DLX uninstallation...${plain}"
|
echo -e "${green}Starting DLX uninstallation...${plain}"
|
||||||
|
|
||||||
# 1. Stop and disable the DLX service
|
# 1. Stop and disable the deeplx service (historical unit name)
|
||||||
if systemctl is-active --quiet dlx; then
|
if systemctl is-active --quiet deeplx; then
|
||||||
echo -e "${yellow}Stopping DLX service...${plain}"
|
echo -e "${yellow}Stopping deeplx service...${plain}"
|
||||||
systemctl stop dlx
|
systemctl stop deeplx
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
if systemctl is-enabled --quiet dlx; then
|
if systemctl is-enabled --quiet deeplx; then
|
||||||
echo -e "${yellow}Disabling DLX service from starting on boot...${plain}"
|
echo -e "${yellow}Disabling deeplx service from starting on boot...${plain}"
|
||||||
systemctl disable dlx
|
systemctl disable deeplx
|
||||||
else
|
else
|
||||||
echo -e "${yellow}DLX service is not enabled.${plain}"
|
echo -e "${yellow}deeplx service is not enabled.${plain}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 2. Remove the systemd service file
|
# 2. Remove the systemd service file
|
||||||
if [ -f /etc/systemd/system/dlx.service ]; then
|
if [ -f /etc/systemd/system/deeplx.service ]; then
|
||||||
echo -e "${yellow}Removing DLX systemd service file (/etc/systemd/system/dlx.service)...${plain}"
|
echo -e "${yellow}Removing deeplx systemd service file (/etc/systemd/system/deeplx.service)...${plain}"
|
||||||
rm -f /etc/systemd/system/dlx.service
|
rm -f /etc/systemd/system/deeplx.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
echo -e "${green}Systemd daemon reloaded.${plain}"
|
echo -e "${green}Systemd daemon reloaded.${plain}"
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
# 3. Remove the DLX executable
|
# 3. Remove the executable (release binary name remains deeplx)
|
||||||
if [ -f /usr/bin/dlx ]; then
|
if [ -f /usr/bin/deeplx ]; then
|
||||||
echo -e "${yellow}Removing DLX executable (/usr/bin/dlx)...${plain}"
|
echo -e "${yellow}Removing deeplx executable (/usr/bin/deeplx)...${plain}"
|
||||||
rm -f /usr/bin/dlx
|
rm -f /usr/bin/deeplx
|
||||||
else
|
else
|
||||||
echo -e "${yellow}DLX executable not found, skipping removal.${plain}"
|
echo -e "${yellow}deeplx executable not found, skipping removal.${plain}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${green}DLX uninstallation complete.${plain}"
|
echo -e "${green}DLX uninstallation complete.${plain}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user