From 216213e102edf2918b22373b3163bf4bdbe0eddf Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Mon, 13 Jul 2026 23:15:20 +0800 Subject: [PATCH] ci(release): redesign cross-platform release notes Present Windows x64, Linux x64, and Linux arm64 as fully supported release targets in a concise download matrix. Add quick-start and unattended-consent guidance, link commits and version comparisons, and filter merge and release housekeeping from the change list. Refresh the adjacent packaging documentation so it matches current platform support. --- .github/workflows/release.yml | 46 +++++++++++++++++------------------ packages/core/vite.config.ts | 4 +-- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e4dc9bd..d31e3e3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -109,42 +109,42 @@ jobs: tag="${GITHUB_REF_NAME}" previousTag="$(git describe --tags --abbrev=0 "${tag}^" 2>/dev/null || true)" if [[ -n "$previousTag" ]]; then - changes="$(git log --pretty=format:'- %s (%h)' "$previousTag..$tag")" + range="$previousTag..$tag" + comparison="[查看 ${previousTag} → ${tag} 的完整差异](https://github.com/${GITHUB_REPOSITORY}/compare/${previousTag}...${tag})" else - changes="$(git log --pretty=format:'- %s (%h)' "$tag")" + range="$tag" + comparison="" fi + changes="$(git log --no-merges --invert-grep --grep='^chore(release):' --pretty=format:"- %s ([%h](https://github.com/${GITHUB_REPOSITORY}/commit/%H))" "$range")" [[ -z "$changes" ]] && changes="- No commit changes detected." cat > release-notes.md < **跨平台正式支持:** Windows x64、Linux x64 与 Linux arm64 均可完整运行 SnowLuma,包含 QQ 接入、OneBot v11 与 WebUI 管理能力。 - ## 下载说明 - 命名约定: - - 无后缀 \`.zip/.tar.gz\`:完整版本,内置 \`node\`/\`node.exe\` 与运行时依赖,解压即可使用。 - - \`-lite\` 后缀:精简版本,不含 Node.js 运行时,需自行安装 Node.js 22+。 + ## 选择下载 - Windows: - - \`SnowLuma-${tag}-win-x64.zip\` - - \`SnowLuma-${tag}-win-x64-lite.zip\` + | 平台 | 完整版(内置 Node.js,推荐) | Lite(需 Node.js 22+) | + | --- | --- | --- | + | Windows x64 | \`SnowLuma-${tag}-win-x64.zip\` | \`SnowLuma-${tag}-win-x64-lite.zip\` | + | Linux x64 | \`SnowLuma-${tag}-linux-x64.tar.gz\` | \`SnowLuma-${tag}-linux-x64-lite.tar.gz\` | + | Linux arm64 | \`SnowLuma-${tag}-linux-arm64.tar.gz\` | \`SnowLuma-${tag}-linux-arm64-lite.tar.gz\` | - Linux x64: - - \`SnowLuma-${tag}-linux-x64.tar.gz\` - - \`SnowLuma-${tag}-linux-x64-lite.tar.gz\` + 完整版适合直接解压运行;Lite 版不包含 Node.js,但其余运行时依赖和 WebUI 静态资源保持一致。 - Linux arm64: - - \`SnowLuma-${tag}-linux-arm64.tar.gz\` - - \`SnowLuma-${tag}-linux-arm64-lite.tar.gz\` + ## 快速开始 + + 1. 解压与你的系统架构匹配的压缩包。 + 2. Windows 运行 \`launcher.bat\`;Linux 运行 \`./launcher.sh\`。 + 3. 浏览器访问 http://localhost:5099,初始账号为 \`admin\`,密码见启动日志。 + + 无人值守部署可同时设置 \`SNOWLUMA_ACCEPT_EULA=1\` 与 \`SNOWLUMA_ACCEPT_PRIVACY=1\` 完成协议确认。设置这些变量即表示运营者已阅读并同意发行包内的 EULA 与隐私政策;缺少任意一项时仍会显示同意页面。 + + ## 本次更新 - ## 更新内容 ${changes} - ## 使用说明 - - Windows x64:\`launcher.bat\` 或 \`node index.mjs\`。 - - Linux:\`./launcher.sh\` 或 \`node index.mjs\`。 - - 所有压缩包均已内置 WebUI 静态资源;启动后访问 http://localhost:5099。 - - Linux 版本仅提供 OneBot 桥接能力,NTQQ 进程注入仅在 Windows 下生效。 + ${comparison} EOF - name: Create GitHub Release diff --git a/packages/core/vite.config.ts b/packages/core/vite.config.ts index 40dbf0d8..16486b1e 100644 --- a/packages/core/vite.config.ts +++ b/packages/core/vite.config.ts @@ -41,8 +41,8 @@ const nativeSrc = toPosix(nativeDir); const targetTriple = process.env.SNOWLUMA_TARGET ?? `${process.platform}-${process.arch}`; const [targetPlatform, targetArch] = targetTriple.split('-'); -// Runtime scaffolding files copied into dist/. The NTQQ hook is Windows-only, -// so its launcher/shell script differ per target. +// Runtime scaffolding files copied into dist/. Windows and Linux use different +// launchers, while both targets ship their matching QQ integration binaries. const runtimeDistFiles = ['package.json', targetPlatform === 'win32' ? 'launcher.bat' : 'launcher.sh', ];