Processed apps directory via GitHub Actions

This commit is contained in:
QYG2297248353
2025-01-26 06:24:04 +00:00
parent 17395a162b
commit 2b940fc1b4
33 changed files with 244 additions and 19 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ additionalProperties:
labelZh: 密码
labelEn: Password
required: true
type: text
type: password
- default: ""
edit: true
envKey: TRANSMISSION_WEB_HOME
@@ -8,10 +8,10 @@ services:
- ./envs/global.env
- .env
environment:
- PUID=0
- PGID=0
- UMASK=022
- PUID=1000
- PGID=1000
- PEERPORT= ${PANEL_APP_PORT_TORRENTING}
- TZ=Asia/Shanghai
image: linuxserver/transmission:4.0.6
labels:
createdBy: Apps
@@ -22,6 +22,7 @@ services:
- ${PANEL_APP_PORT_TORRENTING}/udp
restart: always
volumes:
- ${TRANSMISSION_ROOT_PATH}/ui/themes:/ui/themes
- ${TRANSMISSION_ROOT_PATH}/config:/config
- ${TRANSMISSION_ROOT_PATH}/downloads:/downloads
- ${TRANSMISSION_ROOT_PATH}/watch:/watch
@@ -10,6 +10,41 @@ if [ -f .env ]; then
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
mkdir -p "$TRANSMISSION_ROOT_PATH"
mkdir -p "$TRANSMISSION_ROOT_PATH/config"
mkdir -p "$TRANSMISSION_ROOT_PATH/downloads"
mkdir -p "$TRANSMISSION_ROOT_PATH/watch"
# setup-2 install theme
if [ ! -d "$TRANSMISSION_ROOT_PATH/ui/themes" ]; then
mkdir -p "$TRANSMISSION_ROOT_PATH/ui/themes"
if command -v unzip >/dev/null 2>&1; then
unzip -o themes/flood-for-transmission.zip -d "$TRANSMISSION_ROOT_PATH/ui/themes"
UNZIP_SUCCESS=$?
elif command -v tar >/dev/null 2>&1; then
tar -xf themes/flood-for-transmission.zip -C "$TRANSMISSION_ROOT_PATH/ui/themes"
UNZIP_SUCCESS=$?
else
echo "Warning: Neither 'unzip' nor 'tar' is installed. Skipping theme extraction."
UNZIP_SUCCESS=1
fi
if [ $UNZIP_SUCCESS -eq 0 ]; then
echo "Theme successfully extracted."
if grep -q "^TRANSMISSION_WEB_HOME=" .env; then
sed -i 's|^TRANSMISSION_WEB_HOME=.*|TRANSMISSION_WEB_HOME=/ui/themes/flood-for-transmission|' .env
else
echo "TRANSMISSION_WEB_HOME=/ui/themes/flood-for-transmission" >> .env
fi
else
echo "Warning: Failed to extract the theme archive. Proceeding without extracted theme."
fi
else
echo "Themes directory already exists. Skipping extraction."
fi
echo "Check Finish."
else
+10
View File
@@ -10,6 +10,16 @@ Transmission是一种BitTorrent客户端,特点是一个跨平台的后端和
Transmission 是一个快速、轻量级的 BitTorrent 客户端,支持多种操作系统。
## 安装说明
### 主题安装
启动程序后,进入持久化目录 `/home/transmission`,在 `config` 目录下创建 目录 `themes` 主题目录
将主题下载后解压到 `themes` 目录下, 获得主题路径 `/config/themes/<主题目录名称>` 修改参数,重启程序即可。
参数不需要 `/home/transmission` 前缀,只需要填写 `/config/themes/<主题目录名称>` 即可。
---
![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)