mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-25 17:54:10 +08:00
feat: Windows dual build - lightweight + full WebView2 installer
This commit is contained in:
60
.github/workflows/release.yml
vendored
60
.github/workflows/release.yml
vendored
@@ -41,6 +41,10 @@ jobs:
|
||||
os: windows-latest
|
||||
args: ""
|
||||
rust_target: ""
|
||||
- name: Windows (x64) 完整包
|
||||
os: windows-latest
|
||||
args: ""
|
||||
rust_target: ""
|
||||
|
||||
steps:
|
||||
- name: 签出代码
|
||||
@@ -91,6 +95,7 @@ jobs:
|
||||
libayatana-appindicator3-dev
|
||||
|
||||
- name: 构建 Tauri 应用
|
||||
if: matrix.platform.name != 'Windows (x64) 完整包'
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -112,6 +117,49 @@ jobs:
|
||||
prerelease: false
|
||||
args: ${{ matrix.platform.args }}
|
||||
|
||||
# ── Windows 完整包(内嵌 WebView2 离线安装器)──────────────────────────────
|
||||
- name: 配置 WebView2 完整包模式
|
||||
if: matrix.platform.name == 'Windows (x64) 完整包'
|
||||
shell: bash
|
||||
run: |
|
||||
node -e "
|
||||
const fs = require('fs');
|
||||
const f = 'src-tauri/tauri.conf.json';
|
||||
const c = JSON.parse(fs.readFileSync(f, 'utf8'));
|
||||
c.bundle.windows.webviewInstallMode = { type: 'offlineInstaller', silent: true };
|
||||
fs.writeFileSync(f, JSON.stringify(c, null, 2));
|
||||
"
|
||||
|
||||
- name: 构建 Windows 完整包
|
||||
if: matrix.platform.name == 'Windows (x64) 完整包'
|
||||
shell: bash
|
||||
run: npx tauri build
|
||||
|
||||
- name: 重命名并上传完整包
|
||||
if: matrix.platform.name == 'Windows (x64) 完整包'
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
VERSION="${TAG_NAME#v}"
|
||||
BUNDLE_DIR="src-tauri/target/release/bundle"
|
||||
|
||||
# 确保 Release 已存在(可能被其他 matrix job 的 tauri-action 创建)
|
||||
gh release create "$TAG_NAME" --title "ClawPanel $TAG_NAME" \
|
||||
--notes "正在构建所有平台安装包,请稍候..." 2>/dev/null || true
|
||||
|
||||
# 重命名 NSIS exe 并上传
|
||||
mv "${BUNDLE_DIR}/nsis/ClawPanel_${VERSION}_x64-setup.exe" \
|
||||
"${BUNDLE_DIR}/nsis/ClawPanel_${VERSION}_x64-setup-full.exe"
|
||||
gh release upload "$TAG_NAME" \
|
||||
"${BUNDLE_DIR}/nsis/ClawPanel_${VERSION}_x64-setup-full.exe" --clobber
|
||||
|
||||
# 重命名 MSI 并上传
|
||||
mv "${BUNDLE_DIR}/msi/ClawPanel_${VERSION}_x64_en-US.msi" \
|
||||
"${BUNDLE_DIR}/msi/ClawPanel_${VERSION}_x64-full_en-US.msi"
|
||||
gh release upload "$TAG_NAME" \
|
||||
"${BUNDLE_DIR}/msi/ClawPanel_${VERSION}_x64-full_en-US.msi" --clobber
|
||||
|
||||
# ── 所有平台构建完成后,统一更新 Release Notes ─────────────────────────────
|
||||
# 独立 job 确保只执行一次,彻底避免多个 matrix job 的竞争条件
|
||||
update-release-notes:
|
||||
@@ -270,10 +318,14 @@ jobs:
|
||||
echo '> **⚠️ 首次打开提示"无法验证开发者"?** 在终端执行:`sudo xattr -rd com.apple.quarantine /Applications/ClawPanel.app`,或前往 **系统设置 → 隐私与安全性** 点击「仍要打开」。'
|
||||
echo ""
|
||||
echo "### Windows"
|
||||
echo "| 格式 | 安装包 |"
|
||||
echo "|------|--------|"
|
||||
echo "| EXE 安装器(推荐) | [ClawPanel_${VERSION}_x64-setup.exe](${DL}/ClawPanel_${VERSION}_x64-setup.exe) |"
|
||||
echo "| MSI 安装器 | [ClawPanel_${VERSION}_x64_en-US.msi](${DL}/ClawPanel_${VERSION}_x64_en-US.msi) |"
|
||||
echo "| 格式 | 安装包 | 说明 |"
|
||||
echo "|------|--------|------|"
|
||||
echo "| EXE 安装器(推荐) | [ClawPanel_${VERSION}_x64-setup.exe](${DL}/ClawPanel_${VERSION}_x64-setup.exe) | 轻量版 ~10 MB |"
|
||||
echo "| EXE 完整包 | [ClawPanel_${VERSION}_x64-setup-full.exe](${DL}/ClawPanel_${VERSION}_x64-setup-full.exe) | 含 WebView2 ~200 MB |"
|
||||
echo "| MSI 安装器 | [ClawPanel_${VERSION}_x64_en-US.msi](${DL}/ClawPanel_${VERSION}_x64_en-US.msi) | 轻量版 ~10 MB |"
|
||||
echo "| MSI 完整包 | [ClawPanel_${VERSION}_x64-full_en-US.msi](${DL}/ClawPanel_${VERSION}_x64-full_en-US.msi) | 含 WebView2 ~200 MB |"
|
||||
echo ""
|
||||
echo "> **💡 轻量版 vs 完整包**:Win10 1803+ 和 Win11 已预装 WebView2,推荐下载轻量版。如果是内网/断网环境,选择完整包。"
|
||||
echo ""
|
||||
echo "### Linux"
|
||||
echo "| 格式 | 安装包 |"
|
||||
|
||||
@@ -5,6 +5,12 @@
|
||||
格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
|
||||
版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
||||
|
||||
## [0.11.1] - 2026-04-02
|
||||
|
||||
### 改进 (Improvements)
|
||||
|
||||
- **Windows 双版本安装包** — 新增 Windows 完整包(含 WebView2 离线安装器,~200 MB),适合内网/断网环境;默认安装包恢复为轻量版(~10 MB),Win10 1803+ / Win11 已预装 WebView2 无需额外下载
|
||||
|
||||
## [0.11.0] - 2026-04-02
|
||||
|
||||
### 新功能 (Features)
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"description": "OpenClaw AI Agent 可视化管理面板,基于 Tauri v2 的跨平台桌面应用。内置晴辰助手支持工具调用,晴辰云 AI 接口一键接入。支持仪表盘监控、多模型配置、消息渠道管理、内置 QQ 机器人、实时 AI 聊天、记忆管理、Agent 管理、网关配置、内网穿透等功能。支持 11 种语言。",
|
||||
"url": "https://claw.qt.cool/",
|
||||
"downloadUrl": "https://github.com/qingchencloud/clawpanel/releases/latest",
|
||||
"softwareVersion": "0.11.0",
|
||||
"softwareVersion": "0.11.1",
|
||||
"author": {
|
||||
"@type": "Organization",
|
||||
"name": "晴辰云 QingchenCloud",
|
||||
@@ -1155,7 +1155,7 @@
|
||||
<div class="orb orb-2" style="top:auto;bottom:-100px"></div>
|
||||
<div class="container-sm" style="position:relative;z-index:10">
|
||||
<div class="section-header">
|
||||
<div class="reveal download-version"><span class="pulse"></span> <span id="dl-badge" data-i18n="dl.badge">v0.11.0 最新版</span></div>
|
||||
<div class="reveal download-version"><span class="pulse"></span> <span id="dl-badge" data-i18n="dl.badge">v0.11.1 最新版</span></div>
|
||||
<h2 class="reveal section-title" data-i18n="dl.title"><span class="gradient-text">下载安装</span></h2>
|
||||
<p class="reveal section-desc" data-i18n="dl.desc">选择你的操作系统,一键下载安装</p>
|
||||
</div>
|
||||
@@ -1165,11 +1165,11 @@
|
||||
<h3>macOS</h3>
|
||||
<p class="dl-desc" data-i18n="dl.mac.d">支持 Apple Silicon 和 Intel 芯片</p>
|
||||
<div class="dl-links">
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.0_aarch64.dmg" target="_blank" rel="noopener">
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.1_aarch64.dmg" target="_blank" rel="noopener">
|
||||
Apple Silicon (M1/M2/M3/M4)
|
||||
<span class="dl-format">.dmg</span>
|
||||
</a>
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.0_x64.dmg" target="_blank" rel="noopener">
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.1_x64.dmg" target="_blank" rel="noopener">
|
||||
<span data-i18n="dl.mac.intel">Intel 芯片</span>
|
||||
<span class="dl-format">.dmg</span>
|
||||
</a>
|
||||
@@ -1187,11 +1187,15 @@
|
||||
<h3>Windows</h3>
|
||||
<p class="dl-desc" data-i18n="dl.win.d">支持 Windows 10 及以上版本</p>
|
||||
<div class="dl-links">
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.0_x64-setup.exe" target="_blank" rel="noopener">
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.1_x64-setup.exe" target="_blank" rel="noopener">
|
||||
<span data-i18n="dl.win.exe">安装程序</span>
|
||||
<span class="dl-format">.exe</span>
|
||||
</a>
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.0_x64_en-US.msi" target="_blank" rel="noopener">
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.1_x64-setup-full.exe" target="_blank" rel="noopener">
|
||||
<span data-i18n="dl.win.full">完整包(含 WebView2)</span>
|
||||
<span class="dl-format">.exe</span>
|
||||
</a>
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.1_x64_en-US.msi" target="_blank" rel="noopener">
|
||||
<span data-i18n="dl.win.msi">MSI 安装包</span>
|
||||
<span class="dl-format">.msi</span>
|
||||
</a>
|
||||
@@ -1202,11 +1206,11 @@
|
||||
<h3>Linux</h3>
|
||||
<p class="dl-desc" data-i18n="dl.linux.d">支持主流 Linux 发行版</p>
|
||||
<div class="dl-links">
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.0_amd64.AppImage" target="_blank" rel="noopener">
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.1_amd64.AppImage" target="_blank" rel="noopener">
|
||||
<span data-i18n="dl.linux.ai">通用版</span>
|
||||
<span class="dl-format">.AppImage</span>
|
||||
</a>
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.0_amd64.deb" target="_blank" rel="noopener">
|
||||
<a class="dl-link" href="https://claw.qt.cool/proxy/dl/github.com/qingchencloud/clawpanel/releases/latest/download/ClawPanel_0.11.1_amd64.deb" target="_blank" rel="noopener">
|
||||
Debian / Ubuntu
|
||||
<span class="dl-format">.deb</span>
|
||||
</a>
|
||||
@@ -1774,7 +1778,7 @@
|
||||
'dl.mac.step2':'② Or go to <strong>System Settings → Privacy & Security</strong>, find ClawPanel and click "Open Anyway"',
|
||||
'dl.mac.step3':'Getting "No such file"? Not in Applications — use: <code style="font-size:10px;color:var(--accent);cursor:pointer" onclick="navigator.clipboard.writeText(\'sudo xattr -rd com.apple.quarantine ~/Downloads/ClawPanel.app\');this.textContent=\'✅ Copied\';setTimeout(()=>this.textContent=\'sudo xattr -rd com.apple.quarantine ~/Downloads/ClawPanel.app\',1500)">sudo xattr -rd com.apple.quarantine ~/Downloads/ClawPanel.app</code>',
|
||||
'dl.win.d':'Supports Windows 10 and above',
|
||||
'dl.win.exe':'Installer','dl.win.msi':'MSI Package',
|
||||
'dl.win.exe':'Installer','dl.win.full':'Full (with WebView2)','dl.win.msi':'MSI Package',
|
||||
'dl.linux.d':'Supports major Linux distributions',
|
||||
'dl.linux.ai':'Universal',
|
||||
'dl.note1':'View <a href="https://github.com/qingchencloud/clawpanel/releases" target="_blank" rel="noopener">All Releases</a> · Need help? Read the <a href="https://github.com/qingchencloud/clawpanel#readme" target="_blank" rel="noopener">Installation Docs</a>',
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "clawpanel",
|
||||
"version": "0.11.0",
|
||||
"version": "0.11.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "clawpanel",
|
||||
"version": "0.11.0",
|
||||
"version": "0.11.1",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "^2.5.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "clawpanel",
|
||||
"version": "0.11.0",
|
||||
"version": "0.11.1",
|
||||
"private": true,
|
||||
"description": "ClawPanel - OpenClaw 可视化管理面板,基于 Tauri v2 的跨平台桌面应用",
|
||||
"type": "module",
|
||||
|
||||
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -351,7 +351,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "clawpanel"
|
||||
version = "0.11.0"
|
||||
version = "0.11.1"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"chrono",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "clawpanel"
|
||||
version = "0.11.0"
|
||||
version = "0.11.1"
|
||||
edition = "2021"
|
||||
description = "ClawPanel - OpenClaw 可视化管理面板"
|
||||
authors = ["qingchencloud"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-config-schema/schema.json",
|
||||
"productName": "ClawPanel",
|
||||
"version": "0.11.0",
|
||||
"version": "0.11.1",
|
||||
"identifier": "ai.openclaw.clawpanel",
|
||||
"build": {
|
||||
"frontendDist": "../dist",
|
||||
@@ -38,7 +38,7 @@
|
||||
],
|
||||
"windows": {
|
||||
"webviewInstallMode": {
|
||||
"type": "offlineInstaller",
|
||||
"type": "embedBootstrapper",
|
||||
"silent": true
|
||||
},
|
||||
"nsis": {
|
||||
|
||||
Reference in New Issue
Block a user