同步上游 0921 版 zip(新增 emby 播放等 20 处变更)

This commit is contained in:
yvan
2026-09-17 19:10:04 +08:00
parent 07dc0f1059
commit 10baea5a87
22 changed files with 731 additions and 274 deletions
+6
View File
@@ -1,6 +1,12 @@
@echo off
setlocal
set "GOTOOLCHAIN=local"
chcp 65001 >nul
cd /d "%~dp0.."
go env -w GOPROXY=https://goproxy.cn,direct
if errorlevel 1 exit /b 1
go env -w GOSUMDB=off
if errorlevel 1 exit /b 1
if not exist dist mkdir dist
set CGO_ENABLED=0
set GOOS=windows
+3
View File
@@ -1,7 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
export GOTOOLCHAIN=local
cd "$(dirname "${BASH_SOURCE[0]}")/.."
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOSUMDB=off
mkdir -p dist
echo "Building macOS arm64..."
+1 -1
View File
@@ -5,4 +5,4 @@ if ! command -v docker >/dev/null 2>&1; then
echo "请先安装 Docker。" >&2
exit 1
fi
exec docker build --pull -t "${JUKU_IMAGE:-juku:local}" "$@" "$project_dir"
exec docker build --pull -t "${JUKU_IMAGE:-juku:local}" --build-arg "GO_IMAGE=${JUKU_GO_IMAGE:-golang:1.26-bookworm}" --build-arg "RUNTIME_IMAGE=${JUKU_RUNTIME_IMAGE:-debian:bookworm-slim}" "$@" "$project_dir"
+9
View File
@@ -1,7 +1,16 @@
@echo off
setlocal
set "GOTOOLCHAIN=local"
chcp 65001 >nul
title 短剧库
cd /d "%~dp0.."
where go >nul 2>nul
if not errorlevel 1 (
go env -w GOPROXY=https://goproxy.cn,direct
if errorlevel 1 exit /b 1
go env -w GOSUMDB=off
if errorlevel 1 exit /b 1
)
if not exist "dist\juku_windows_amd64.exe" (
echo 找不到下载器,请先编译或获取包含 dist 的完整版本。
pause
+5
View File
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
export GOTOOLCHAIN=local
cd "$(dirname "$0")/.."
if command -v go >/dev/null 2>&1; then
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOSUMDB=off
fi
case "$(uname -m)" in
arm64) binary="./dist/juku_darwin_arm64" ;;
x86_64) binary="./dist/juku_darwin_amd64" ;;
+5
View File
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
export GOTOOLCHAIN=local
cd "$(dirname "$0")/.."
if command -v go >/dev/null 2>&1; then
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOSUMDB=off
fi
if [ ! -x "./dist/juku_linux_amd64" ]; then
echo "找不到 Linux x64 程序,请先运行 ./scripts/build.sh。"
exit 1