diff --git a/scripts/gen-release-page.js b/scripts/gen-release-page.js
new file mode 100644
index 0000000..6ce9ba3
--- /dev/null
+++ b/scripts/gen-release-page.js
@@ -0,0 +1,107 @@
+#!/usr/bin/env node
+'use strict'
+// 下载页生成器:site/releases.json → site/index.html
+// 只做纯静态输出(无外链、无框架),部署到 NAS 的 nginx 静态目录。
+const fs = require('fs')
+const path = require('path')
+
+const root = path.resolve(__dirname, '..')
+const inFile = process.argv[2] || path.join(root, 'site', 'releases.json')
+const outFile = process.argv[3] || path.join(root, 'site', 'index.html')
+const data = JSON.parse(fs.readFileSync(inFile, 'utf8'))
+
+const PLATFORMS = [
+ { key: 'darwin-aarch64', label: 'macOS · Apple Silicon', hint: 'M1 / M2 / M3 / M4' },
+ { key: 'darwin-x64', label: 'macOS · Intel', hint: 'x86_64' },
+ { key: 'windows-x86_64', label: 'Windows · x64', hint: '需要 WebView2' },
+]
+
+const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]))
+const fmtSize = (n) => (!n ? '' : (n / 1048576).toFixed(1) + ' MB')
+
+function platformRow (rel, p) {
+ const item = rel && rel.platforms ? rel.platforms[p.key] : null
+ const meta = item
+ ? '版本 ' + esc(rel.version) + ' · ' + fmtSize(item.size) + ' · .' + esc(item.kind || 'dmg')
+ : ''
+ const action = item
+ ? '下载'
+ : '暂未提供'
+ const hash = item && item.sha256
+ ? '
sha256 ' + esc(item.sha256.slice(0, 16)) + '…
'
+ : ''
+ return ' \n' +
+ '
' + esc(p.label) + '
' + esc(p.hint) + '
\n' +
+ '
' + meta + hash + '
\n' +
+ ' ' + action + '\n' +
+ '
'
+}
+
+const latest = data.releases && data.releases[0]
+const history = (data.releases || []).map((r) => {
+ const avail = Object.keys(r.platforms || {}).map((k) => {
+ const p = PLATFORMS.find((x) => x.key === k)
+ return p ? p.label : k
+ })
+ return ' \n' +
+ '
' + esc(r.version) + (r.notes ? '
' + esc(r.notes) + '
' : '') + '
\n' +
+ '
\n' +
+ '
'
+}).join('\n')
+
+const html = `
+
+
+
+
+${esc(data.app)} · 下载
+
+
+
+
+
${esc(data.app)}
+
${esc(data.subtitle || '')}
+
+
下载
+${PLATFORMS.map((p) => platformRow(latest, p)).join('\n')}
+
+
系统要求
+
+
macOS 12 及以上 / Windows 10 1803 及以上(含 WebView2)
+
数据全部保存在本地目录 ~/Documents/ImageWorkbench,可整目录备份与迁移。
+
+
+
+
历史版本
+${history}
+
+
+
+
+
+`
+fs.writeFileSync(outFile, html)
+console.log('已生成 ' + path.relative(root, outFile) + '(' + data.releases.length + ' 个版本 / ' + Object.keys((latest && latest.platforms) || {}).length + ' 个平台)')
diff --git a/site/index.html b/site/index.html
index 1d2c543..51cb210 100644
--- a/site/index.html
+++ b/site/index.html
@@ -5,21 +5,26 @@
Image Workbench · 下载
@@ -27,29 +32,38 @@
Image Workbench
本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)
- 最新版本
-
-
macOS · Apple Silicon版本 3.24.85 · .dmg / .zip
-
下载
-
-
-
macOS · Intel版本 3.24.85 · .dmg
-
下载
-
-
-
Windows · x64版本 3.24.85 · .exe(需 WebView2)
-
下载
-
+ 下载
+
+
macOS · Apple Silicon
M1 / M2 / M3 / M4
+
+
下载
+
+
+
系统要求
-
-
macOS 12 及以上(Apple Silicon / Intel)· Windows 10 1803 及以上(含 WebView2)
- 数据全部保存在本地目录 ~/Documents/ImageWorkbench,可整目录备份与迁移。
+
+
macOS 12 及以上 / Windows 10 1803 及以上(含 WebView2)
+
数据全部保存在本地目录 ~/Documents/ImageWorkbench,可整目录备份与迁移。
+
+
历史版本
+
+
3.24.85
每张画布单独成文件、资源库分类、设置面板重构、下载改为按需落盘
+
+
+
diff --git a/site/releases.json b/site/releases.json
new file mode 100644
index 0000000..657b006
--- /dev/null
+++ b/site/releases.json
@@ -0,0 +1,21 @@
+{
+ "app": "Image Workbench",
+ "subtitle": "本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)",
+ "updatedAt": "2026-11-17T03:15:00Z",
+ "releases": [
+ {
+ "version": "3.24.85",
+ "date": "2026-11-17",
+ "notes": "每张画布单独成文件、资源库分类、设置面板重构、下载改为按需落盘",
+ "platforms": {
+ "darwin-aarch64": {
+ "label": "macOS · Apple Silicon",
+ "file": "updates/darwin-aarch64/image-workbench_3.24.85_aarch64.dmg",
+ "size": 6711472,
+ "sha256": "4a37725309fb414cfe75143b745d3ad694dd17649ee1b020e21209907ea0ff1e",
+ "kind": "dmg"
+ }
+ }
+ }
+ ]
+}