初次提交
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{
|
||||
".url": {
|
||||
"voicehub.APPLICATION": {
|
||||
"title": "VoiceHub",
|
||||
"icon": "images/icon-{0}.png",
|
||||
"type": "url",
|
||||
"protocol": "http",
|
||||
"port": "3000",
|
||||
"url": "/",
|
||||
"allUsers": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
FILE_PATH="${TRIM_APPDEST}/docker/docker-compose.yaml"
|
||||
# 检查 Docker 容器是否正在运行
|
||||
is_docker_running() {
|
||||
local name
|
||||
[ -f "$FILE_PATH" ] || return 1
|
||||
name=$(grep '^[[:space:]]*container_name:' "$FILE_PATH" | head -1 | cut -d ':' -f 2- | xargs)
|
||||
[ -n "$name" ] || return 1
|
||||
[ "$(docker inspect -f '{{.State.Running}}' "$name" 2>/dev/null)" = "true" ]
|
||||
}
|
||||
case $1 in
|
||||
start) exit 0 ;;
|
||||
stop) exit 0 ;;
|
||||
status) is_docker_running && exit 0 || exit 3 ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
@@ -0,0 +1,14 @@
|
||||
appname=voicehub
|
||||
version=0.0.0.0
|
||||
display_name=VoiceHub
|
||||
desc=基于 Nuxt 4 的低成本校园广播站点歌系统,支持点歌投票、排期管理、权限控制和打印导出。
|
||||
platform=all
|
||||
source=thirdparty
|
||||
maintainer=laoshuikaixue
|
||||
maintainer_url=https://github.com/laoshuikaixue
|
||||
os_min_version=0.9.0
|
||||
desktop_uidir=ui
|
||||
desktop_applaunchname=voicehub.APPLICATION
|
||||
service_port=3000
|
||||
checkport=false
|
||||
disable_authorization_path=true
|
||||
Reference in New Issue
Block a user