Skip to content

Commit 332b436

Browse files
committed
feat(v0.1.5): 变量填充界面 & 自动更新 & 优化构建配置
新功能: - 变量填充界面(复制时自动检测变量并弹出填充界面) - 应用内自动更新(检查、下载、安装一体化) 优化: - 文件夹选择下拉框改用自定义样式组件 - 编辑/新建 Prompt 弹窗加宽 - 修复版本对比问题(当前版本加入版本列表) - 生产环境禁用开发者工具 - 优化 README 文档和截图展示(新增主题、数据备份、模型配置
1 parent cde9e90 commit 332b436

27 files changed

Lines changed: 1066 additions & 89 deletions

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
name: ${{ matrix.platform }}-build
6262
path: |
6363
dist/*.dmg
64-
dist/*.zip
6564
dist/*.exe
6665
if-no-files-found: ignore
6766

README.md

Lines changed: 61 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
<div align="center">
2-
<h1>PromptHub · AI Prompt 管理器</h1>
3-
<p>一款开源、本地优先的 AI Prompt 管理工具,帮助你高效管理、版本控制和复用 Prompt。</p>
2+
<img src="./docs/imgs/icon.png" alt="PromptHub Logo" width="120" height="120" />
3+
<h1>PromptHub</h1>
4+
<p><strong>🚀 开源、本地优先的 AI Prompt 管理器</strong></p>
5+
<p>高效管理、版本控制、变量填充、多模型测试 — 一站式 Prompt 工作流</p>
6+
47
<p>
5-
<a href="https://github.com/legeling/PromptHub/stargazers"><img src="https://img.shields.io/github/stars/legeling/PromptHub?style=flat-square" alt="GitHub Stars"/></a>
8+
<a href="https://github.com/legeling/PromptHub/stargazers"><img src="https://img.shields.io/github/stars/legeling/PromptHub?style=flat-square&color=yellow" alt="GitHub Stars"/></a>
69
<a href="https://github.com/legeling/PromptHub/network/members"><img src="https://img.shields.io/github/forks/legeling/PromptHub?style=flat-square" alt="GitHub Forks"/></a>
10+
<a href="https://github.com/legeling/PromptHub/releases"><img src="https://img.shields.io/github/v/release/legeling/PromptHub?style=flat-square&color=green" alt="Release"/></a>
11+
<a href="https://github.com/legeling/PromptHub/releases"><img src="https://img.shields.io/github/downloads/legeling/PromptHub/total?style=flat-square&color=blue" alt="Downloads"/></a>
12+
<img src="https://img.shields.io/github/license/legeling/PromptHub?style=flat-square" alt="License"/>
13+
</p>
14+
15+
<p>
716
<img src="https://img.shields.io/badge/TypeScript-5.0-3178C6?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript"/>
817
<img src="https://img.shields.io/badge/Electron-33-47848F?style=flat-square&logo=electron&logoColor=white" alt="Electron"/>
918
<img src="https://img.shields.io/badge/React-18-61DAFB?style=flat-square&logo=react&logoColor=white" alt="React"/>
10-
<img src="https://img.shields.io/github/license/legeling/PromptHub?style=flat-square" alt="License"/>
19+
<img src="https://img.shields.io/badge/Tailwind_CSS-38B2AC?style=flat-square&logo=tailwind-css&logoColor=white" alt="TailwindCSS"/>
20+
</p>
21+
22+
<p>
23+
<a href="./README.md">简体中文</a> ·
24+
<a href="./docs/README.en.md">English</a>
1125
</p>
1226
</div>
1327

14-
<p align="center">
15-
<a href="./README.md">简体中文</a> ·
16-
<a href="./docs/README.en.md">English</a>
17-
</p>
28+
<br/>
29+
30+
> 💡 **为什么选择 PromptHub?**
31+
>
32+
> 厌倦了在笔记本、文档和聊天记录中翻找 Prompt?PromptHub 让你像管理代码一样管理 Prompt — 版本控制、变量模板、多模型测试,一切都在本地,隐私无忧。
1833
1934
---
2035

@@ -34,11 +49,20 @@
3449
## 📸 截图
3550

3651
<div align="center">
37-
<p><strong>macOS</strong></p>
52+
<p><strong>主界面</strong></p>
3853
<img src="./docs/imgs/image.png" width="80%" alt="macOS 主界面"/>
3954
<br/><br/>
40-
<p><strong>Windows</strong></p>
41-
<img src="./docs/imgs/windos_main.png" width="80%" alt="Windows 主界面"/>
55+
<p><strong>主题设置</strong></p>
56+
<img src="./docs/imgs/theme.png" width="80%" alt="主题设置"/>
57+
<br/><br/>
58+
<p><strong>数据备份</strong></p>
59+
<img src="./docs/imgs/data.png" width="80%" alt="数据备份"/>
60+
<br/><br/>
61+
<p><strong>AI 模型配置</strong></p>
62+
<img src="./docs/imgs/model.png" width="80%" alt="AI 模型配置"/>
63+
<br/><br/>
64+
<p><strong>版本对比</strong></p>
65+
<img src="./docs/imgs/version-compare.png" width="80%" alt="版本对比"/>
4266
</div>
4367

4468
## 📦 安装
@@ -55,14 +79,21 @@
5579

5680
### macOS 首次启动
5781

58-
由于应用未经过 Apple 签名,首次打开时可能会提示"无法打开"。请按以下步骤操作:
82+
由于应用未经过 Apple 公证签名,首次打开时可能会提示 **"PromptHub 已损坏,无法打开"****"无法验证开发者"**
83+
84+
**解决方法(推荐)**:打开终端,执行以下命令绕过公证检查:
5985

6086
```bash
61-
# 打开终端,输入以下命令:
6287
sudo xattr -rd com.apple.quarantine /Applications/PromptHub.app
6388
```
6489

65-
或者通过「系统偏好设置」→「安全性与隐私」→「通用」中点击「仍要打开」。
90+
> 💡 **提示**:如果应用安装在其他位置,请将路径替换为实际安装路径。
91+
92+
**或者**:打开「系统设置」→「隐私与安全性」→ 向下滚动找到安全性部分 → 点击「仍要打开」。
93+
94+
<div align="center">
95+
<img src="./docs/imgs/install.png" width="60%" alt="macOS 安装提示"/>
96+
</div>
6697

6798
### 从源码构建
6899

@@ -150,7 +181,7 @@ PromptHub/
150181

151182
## 🗺️ 路线图
152183

153-
### v0.1.4 (当前)
184+
### v0.1.5 (当前)
154185
- [x] Prompt CRUD 管理
155186
- [x] 文件夹和标签系统
156187
- [x] 收藏功能
@@ -167,28 +198,41 @@ PromptHub/
167198
- [x] MAC 窗口拖动优化
168199
- [x] 自定义下拉选择框样式
169200
- [x] 全面国际化支持(主页、编辑器、弹窗)
201+
- [x] 应用内自动更新
202+
- [x] 变量填充界面
170203

171204
### 未来规划
172-
- [ ] 变量填充界面
173205
- [ ] Prompt 模板市场
174206
- [ ] 浏览器插件
175-
- [ ] 自动更新功能
176207

177208
## 📝 更新日志
178209

210+
### v0.1.5 (2025-11-30)
211+
**新功能**
212+
- ✨ 变量填充界面(复制时自动检测变量,弹出填充界面)
213+
214+
**优化**
215+
- 🎨 文件夹选择下拉框改用自定义样式组件
216+
- 🎨 编辑/新建 Prompt 弹窗加宽
217+
- 🔧 修复版本对比问题(当前版本加入版本列表)
218+
- 🔧 生产环境禁止打开开发者工具
219+
179220
### v0.1.4 (2025-11-30)
180221
**新功能**
181222
- ✨ 多模型配置管理(支持添加无限数量的 AI 模型)
182223
- ✨ 多模型对比改为选择模式(从已配置模型中选择)
183224
- ✨ 自定义下拉选择框组件(优化原生样式)
184225
- ✨ 全面国际化支持(主页、编辑器、弹窗等全部适配多语言)
226+
- ✨ 应用内自动更新(检查、下载、安装一体化)
185227

186228
**优化**
187229
- 🎨 Prompt 卡片压缩(移除时间和版本显示)
188230
- 🎨 多模型对比按钮移至右侧
231+
- 🎨 优化 README 文档和截图展示
189232
- 🔧 修复 MAC 顶部区域无法拖动窗口问题(整个顶部栏可拖动)
190233
- 🔧 修复语言设置显示不同步问题
191234
- 🔧 修复切换 Prompt 时对比结果残留问题
235+
- 🔧 移除 macOS zip 构建包,只保留 dmg
192236

193237
### v0.1.3 (2025-11-29)
194238
**新功能**

docs/README.en.md

Lines changed: 89 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
<div align="center">
2-
<h1>PromptHub · AI Prompt Manager</h1>
3-
<p>An open-source, local-first AI Prompt management tool for efficient prompt organization, version control, and reuse.</p>
2+
<img src="./imgs/icon.png" alt="PromptHub Logo" width="120" height="120" />
3+
<h1>PromptHub</h1>
4+
<p><strong>🚀 Open-Source, Local-First AI Prompt Manager</strong></p>
5+
<p>Efficient management, version control, variable filling, multi-model testing — All-in-one Prompt workflow</p>
6+
47
<p>
5-
<a href="https://github.com/legeling/PromptHub/stargazers"><img src="https://img.shields.io/github/stars/legeling/PromptHub?style=flat-square" alt="GitHub Stars"/></a>
8+
<a href="https://github.com/legeling/PromptHub/stargazers"><img src="https://img.shields.io/github/stars/legeling/PromptHub?style=flat-square&color=yellow" alt="GitHub Stars"/></a>
69
<a href="https://github.com/legeling/PromptHub/network/members"><img src="https://img.shields.io/github/forks/legeling/PromptHub?style=flat-square" alt="GitHub Forks"/></a>
10+
<a href="https://github.com/legeling/PromptHub/releases"><img src="https://img.shields.io/github/v/release/legeling/PromptHub?style=flat-square&color=green" alt="Release"/></a>
11+
<a href="https://github.com/legeling/PromptHub/releases"><img src="https://img.shields.io/github/downloads/legeling/PromptHub/total?style=flat-square&color=blue" alt="Downloads"/></a>
12+
<img src="https://img.shields.io/github/license/legeling/PromptHub?style=flat-square" alt="License"/>
13+
</p>
14+
15+
<p>
716
<img src="https://img.shields.io/badge/TypeScript-5.0-3178C6?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript"/>
817
<img src="https://img.shields.io/badge/Electron-33-47848F?style=flat-square&logo=electron&logoColor=white" alt="Electron"/>
918
<img src="https://img.shields.io/badge/React-18-61DAFB?style=flat-square&logo=react&logoColor=white" alt="React"/>
10-
<img src="https://img.shields.io/github/license/legeling/PromptHub?style=flat-square" alt="License"/>
19+
<img src="https://img.shields.io/badge/Tailwind_CSS-38B2AC?style=flat-square&logo=tailwind-css&logoColor=white" alt="TailwindCSS"/>
20+
</p>
21+
22+
<p>
23+
<a href="../README.md">简体中文</a> ·
24+
<a href="./README.en.md">English</a>
1125
</p>
1226
</div>
1327

14-
<p align="center">
15-
<a href="../README.md">简体中文</a> ·
16-
<a href="./README.en.md">English</a>
17-
</p>
28+
<br/>
29+
30+
> 💡 **Why PromptHub?**
31+
>
32+
> Tired of searching for prompts in notebooks, documents, and chat histories? PromptHub lets you manage prompts like code — version control, variable templates, multi-model testing, all local and privacy-first.
1833
1934
---
2035

@@ -34,7 +49,20 @@
3449
## 📸 Screenshots
3550

3651
<div align="center">
52+
<p><strong>Main Interface</strong></p>
3753
<img src="./imgs/image.png" width="80%" alt="Main Interface"/>
54+
<br/><br/>
55+
<p><strong>Theme Settings</strong></p>
56+
<img src="./imgs/theme.png" width="80%" alt="Theme Settings"/>
57+
<br/><br/>
58+
<p><strong>Data Backup</strong></p>
59+
<img src="./imgs/data.png" width="80%" alt="Data Backup"/>
60+
<br/><br/>
61+
<p><strong>AI Model Configuration</strong></p>
62+
<img src="./imgs/model.png" width="80%" alt="AI Model Configuration"/>
63+
<br/><br/>
64+
<p><strong>Version Comparison</strong></p>
65+
<img src="./imgs/version-compare.png" width="80%" alt="Version Comparison"/>
3866
</div>
3967

4068
## 📦 Installation
@@ -45,8 +73,27 @@ Download the installer for your platform from [Releases](https://github.com/lege
4573

4674
| Platform | Download |
4775
|----------|----------|
48-
| macOS | `PromptHub-x.x.x.dmg` |
49-
| Windows | `PromptHub-x.x.x-setup.exe` |
76+
| macOS (Intel) | `PromptHub-x.x.x-x64.dmg` |
77+
| macOS (Apple Silicon) | `PromptHub-x.x.x-arm64.dmg` |
78+
| Windows | `PromptHub-x.x.x-Setup-x64.exe` |
79+
80+
### macOS First Launch
81+
82+
Since the app is not notarized by Apple, you may see **"PromptHub is damaged and can't be opened"** or **"Cannot verify developer"** on first launch.
83+
84+
**Solution (Recommended)**: Open Terminal and run the following command to bypass Gatekeeper:
85+
86+
```bash
87+
sudo xattr -rd com.apple.quarantine /Applications/PromptHub.app
88+
```
89+
90+
> 💡 **Tip**: If the app is installed elsewhere, replace the path with the actual installation path.
91+
92+
**Or**: Open "System Settings" → "Privacy & Security" → scroll down to Security section → click "Open Anyway".
93+
94+
<div align="center">
95+
<img src="./imgs/install.png" width="60%" alt="macOS Installation"/>
96+
</div>
5097

5198
### Build from Source
5299

@@ -134,7 +181,7 @@ PromptHub/
134181

135182
## 🗺️ Roadmap
136183

137-
### v0.1.3 (Current)
184+
### v0.1.5 (Current)
138185
- [x] Prompt CRUD management
139186
- [x] Folder and tag system
140187
- [x] Favorites feature
@@ -147,15 +194,44 @@ PromptHub/
147194
- [x] Folder drag & drop sorting
148195
- [x] AI model configuration (18+ providers)
149196
- [x] AI connection test & model comparison
197+
- [x] Multi-model configuration (unlimited)
198+
- [x] Full i18n support (homepage, editor, modals)
199+
- [x] In-app auto update
200+
- [x] Variable fill-in interface
150201

151202
### Future Plans
152-
- [ ] Variable fill-in interface
153203
- [ ] Prompt template marketplace
154204
- [ ] Browser extension
155-
- [ ] Auto update
156205

157206
## 📝 Changelog
158207

208+
### v0.1.5 (2025-11-30)
209+
**New Features**
210+
- ✨ Variable fill-in interface (auto-detect variables on copy, show fill-in dialog)
211+
212+
**Improvements**
213+
- 🎨 Folder select dropdown now uses custom styled component
214+
- 🎨 Wider Edit/Create Prompt modal
215+
- 🔧 Fixed version comparison (current version added to version list)
216+
- 🔧 Disabled DevTools in production
217+
218+
### v0.1.4 (2025-11-30)
219+
**New Features**
220+
- ✨ Multi-model configuration (unlimited AI models)
221+
- ✨ Model comparison selection mode
222+
- ✨ Custom dropdown component
223+
- ✨ Full i18n support (homepage, editor, modals)
224+
- ✨ In-app auto update (check, download, install)
225+
226+
**Improvements**
227+
- 🎨 Prompt card compression
228+
- 🎨 Multi-model compare button moved to right
229+
- 🎨 Improved README and screenshots
230+
- 🔧 Fixed macOS top bar drag issue
231+
- 🔧 Fixed language setting sync issue
232+
- 🔧 Fixed compare results persisting on prompt switch
233+
- 🔧 Removed macOS zip builds, DMG only
234+
159235
### v0.1.3 (2025-11-29)
160236
**New Features**
161237
- ✨ AI model configuration (18+ domestic and international providers)

docs/imgs/data.png

293 KB
Loading

docs/imgs/icon.png

51.7 KB
Loading

docs/imgs/install.png

115 KB
Loading

docs/imgs/model.png

271 KB
Loading

docs/imgs/theme.png

231 KB
Loading

docs/imgs/version-compare.png

420 KB
Loading

docs/imgs/windos_main.png

-967 KB
Binary file not shown.

0 commit comments

Comments
 (0)