同步上游 0921 版 zip(新增 emby 播放等 20 处变更)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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..."
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" ;;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user