This commit is contained in:
zj
2025-12-22 16:06:51 +08:00
parent 09bdfeaf6e
commit 5cd17413dc
3 changed files with 9 additions and 25 deletions

View File

@@ -2,7 +2,7 @@
pkgname=tms-bbt pkgname=tms-bbt
pkgver=1.0 pkgver=1.0
pkgrel=3 pkgrel=4
pkgdesc="SmartTMS application suite for managing cinema devices." pkgdesc="SmartTMS application suite for managing cinema devices."
arch=('x86_64') arch=('x86_64')
url="https://your.company.com/smarttms" url="https://your.company.com/smarttms"
@@ -14,7 +14,7 @@ depends=('python' 'sudo' 'xdg-utils' 'tms-mysql' 'tms-oracle-jdk8')
source=("${pkgname}.tar.gz") source=("${pkgname}.tar.gz")
sha256sums=('ab1ad2932c29f14b0f3cf614a58a925557095007d90bb2f8f51a6a094b429e27') sha256sums=('ef7848c834b52a3f4c1151769f73a4ef1b838c742ef2644361f4536c81ad9571')
install="${pkgname}.install" install="${pkgname}.install"

Binary file not shown.

View File

@@ -103,33 +103,17 @@ else
fi fi
# try to find websockify (prefer local, try global, then download local) # try to find websockify (prefer local, try global, then download local)
if [[ -e ${HERE}/websockify ]]; then WEBSOCKIFY=$(which websockify 2>/dev/null)
WEBSOCKIFY=${HERE}/websockify/run
if [[ ! -x $WEBSOCKIFY ]]; then if [[ $? -ne 0 ]]; then
echo "The path ${HERE}/websockify exists, but $WEBSOCKIFY either does not exist or is not executable." # 如果系统PATH中找不到 websockify则尝试克隆
echo "If you inteded to use an installed websockify package, please remove ${HERE}/websockify." echo "No installed websockify, attempting to clone websockify..."
exit 1 WEBSOCKIFY=${HERE}/websockify/run # 设定克隆后 websockify/run 的路径
fi
echo "Using local websockify at $WEBSOCKIFY" echo "Using local websockify at $WEBSOCKIFY"
else else
WEBSOCKIFY=$(which websockify 2>/dev/null) # 如果系统PATH中找到了 websockify
echo "Using installed websockify at $WEBSOCKIFY"
if [[ $? -ne 0 ]]; then
echo "No installed websockify, attempting to clone websockify..."
WEBSOCKIFY=${HERE}/websockify/run
git clone https://github.com/kanaka/websockify ${HERE}/websockify
if [[ ! -e $WEBSOCKIFY ]]; then
echo "Unable to locate ${HERE}/websockify/run after downloading"
exit 1
fi
echo "Using local websockify at $WEBSOCKIFY"
else
echo "Using installed websockify at $WEBSOCKIFY"
fi
fi fi
echo "Starting webserver and WebSockets proxy on port ${PORT}" echo "Starting webserver and WebSockets proxy on port ${PORT}"