Skip to content

Commit 2b0ef7c

Browse files
committed
docs: 添加 Release 贡献者致谢和 macOS 安全提示
- release.yml: 自动感谢除作者外的贡献者 - README.md/README_EN.md: FAQ 新增 macOS 应用安全问题说明
1 parent 6abf9a5 commit 2b0ef7c

File tree

3 files changed

+77
-1
lines changed

3 files changed

+77
-1
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,46 @@ jobs:
544544
... 以及其他 $((COMMITS_COUNT - 20)) 个提交"
545545
fi
546546
547+
# 获取本次发布的贡献者(排除主要作者)
548+
CONTRIBUTORS=""
549+
if [ -n "$PREVIOUS_TAG" ] && git rev-parse "$PREVIOUS_TAG" >/dev/null 2>&1; then
550+
# 获取贡献者列表,排除主要作者和机器人
551+
CONTRIBUTORS=$(git log --pretty=format:"%an|%ae" $PREVIOUS_TAG..$CURRENT_TAG 2>/dev/null | \
552+
sort -u | \
553+
grep -v -E "^(linshen|linshenkx|且炼时光)\|" | \
554+
grep -v -E "\[bot\]@" | \
555+
grep -v -E "^GitButler\|" | \
556+
cut -d'|' -f1 | \
557+
sort -u || true)
558+
else
559+
CONTRIBUTORS=$(git log --pretty=format:"%an|%ae" --max-count=50 2>/dev/null | \
560+
sort -u | \
561+
grep -v -E "^(linshen|linshenkx|且炼时光)\|" | \
562+
grep -v -E "\[bot\]@" | \
563+
grep -v -E "^GitButler\|" | \
564+
cut -d'|' -f1 | \
565+
sort -u || true)
566+
fi
567+
568+
# 格式化贡献者列表
569+
CONTRIBUTORS_SECTION=""
570+
if [ -n "$CONTRIBUTORS" ]; then
571+
CONTRIBUTORS_LIST=$(echo "$CONTRIBUTORS" | while read -r name; do
572+
[ -n "$name" ] && echo "- @$name"
573+
done | grep -v "^$" || true)
574+
575+
if [ -n "$CONTRIBUTORS_LIST" ]; then
576+
CONTRIBUTORS_SECTION="
577+
### 🙏 致谢
578+
579+
感谢以下贡献者对本次发布的贡献:
580+
581+
$CONTRIBUTORS_LIST
582+
"
583+
echo "Found contributors: $CONTRIBUTORS"
584+
fi
585+
fi
586+
547587
# 根据版本类型设置不同的图标和描述
548588
VERSION_ICON="🚀"
549589
VERSION_DESC="稳定版本"
@@ -598,7 +638,7 @@ jobs:
598638
599639
### 📝 更新内容
600640
$COMMITS_LIMITED
601-
641+
$CONTRIBUTORS_SECTION
602642
### 🔗 更多信息
603643
- **项目主页**: [GitHub Repository](https://github.com/${{ github.repository }})
604644
- **问题反馈**: [Issues](https://github.com/${{ github.repository }}/issues)

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,24 @@ pnpm dev:fresh # 完整重置并重新启动开发环境
387387
2. **使用Docker部署(HTTP)**:通过 `http://localhost:8081` 访问,与本地Ollama都是HTTP
388388
3. **使用Chrome插件**:插件在某些情况下也可以绕过部分安全限制
389389

390+
### macOS 桌面应用问题
391+
392+
#### Q5: macOS 打开应用时提示「已损坏」或「无法验证开发者」怎么办?
393+
**A**: 这是因为应用未经过 Apple 签名认证。由于 Apple 开发者账号费用较高,目前桌面应用暂未进行签名。
394+
395+
**解决方案**:
396+
在终端中执行以下命令移除安全隔离属性:
397+
398+
```bash
399+
# 对于已安装的应用
400+
xattr -rd com.apple.quarantine /Applications/PromptOptimizer.app
401+
402+
# 对于下载的 .dmg 文件(安装前执行)
403+
xattr -rd com.apple.quarantine ~/Downloads/PromptOptimizer-*.dmg
404+
```
405+
406+
执行后重新打开应用即可正常使用。
407+
390408
</details>
391409

392410

README_EN.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,24 @@ To bypass this limitation, you need to have the application and API under the sa
389389
2. **Use Docker deployment (HTTP)**: Access via `http://localhost:8081`, both the app and local Ollama use HTTP
390390
3. **Use Chrome extension**: Extensions can bypass some security restrictions in certain situations
391391

392+
### macOS Desktop Application Issues
393+
394+
#### Q5: macOS shows "damaged" or "unverified developer" when opening the app?
395+
**A**: This is because the application has not been signed with an Apple Developer certificate. Due to the high cost of Apple Developer accounts, the desktop application is currently unsigned.
396+
397+
**Solution**:
398+
Run the following command in Terminal to remove the quarantine attribute:
399+
400+
```bash
401+
# For installed applications
402+
xattr -rd com.apple.quarantine /Applications/PromptOptimizer.app
403+
404+
# For downloaded .dmg files (run before installation)
405+
xattr -rd com.apple.quarantine ~/Downloads/PromptOptimizer-*.dmg
406+
```
407+
408+
After running the command, you can open the application normally.
409+
392410
</details>
393411

394412

0 commit comments

Comments
 (0)