This commit is contained in:
2026-06-30 15:02:20 +08:00
commit 3948b5a48a
306 changed files with 77275 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# 暂不接受赞赏,保留此文件以备将来使用
# Not accepting sponsorship for now; keeping this file for future use
+46
View File
@@ -0,0 +1,46 @@
---
name: Bug 报告 / Bug Report
about: 报告一个问题帮助我们改进 / Report a bug to help us improve
title: "[Bug] "
labels: bug
assignees: ''
---
## 问题描述 / Description
<!-- 简洁清晰地描述这个 Bug / A clear and concise description of the bug -->
## 复现步骤 / Steps to Reproduce
1.
2.
3.
## 预期行为 / Expected Behavior
<!-- 你期望发生什么 / What you expected to happen -->
## 实际行为 / Actual Behavior
<!-- 实际发生了什么 / What actually happened -->
## 截图 / Screenshots
<!-- 如有截图,请粘贴在此 / If applicable, add screenshots -->
## 环境信息 / Environment
| 项目 | 内容 |
|------|------|
| 软件版本 / Version | v |
| 操作系统 / OS | Windows 10 / 11 |
| 运行方式 / Mode | exe 直接运行 / 开发模式 |
## 日志 / Logs
<!-- 如有报错日志,请粘贴在此(可在软件界面的错误提示中复制)/ Paste any error logs if available -->
```
(粘贴日志 / Paste logs here
```
## 补充信息 / Additional Context
<!-- 其他任何有助于定位问题的信息 / Any other context about the problem -->
+8
View File
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 💬 微信交流群 / WeChat Group
url: https://github.com/xuanyustudio/LocalMiniDrama#-联系--社区
about: 扫码加入用户交流群,获取使用帮助 / Scan to join the community group
- name: 📖 使用文档 / Documentation
url: https://github.com/xuanyustudio/LocalMiniDrama/tree/main/docs
about: 查阅快速开始、AI配置等文档 / Read quickstart and configuration docs
+27
View File
@@ -0,0 +1,27 @@
---
name: 功能建议 / Feature Request
about: 为这个项目提出新功能或改进建议 / Suggest a new feature or improvement
title: "[Feature] "
labels: enhancement
assignees: ''
---
## 功能描述 / Feature Description
<!-- 简洁清晰地描述你希望添加的功能 / A clear description of the feature you'd like -->
## 使用场景 / Use Case
<!-- 描述这个功能在什么场景下有用,解决了什么问题 / Describe when and why this feature would be useful -->
## 期望的实现方式 / Proposed Solution
<!-- 如果有想法,描述你希望如何实现 / If you have ideas, describe how you'd like this to work -->
## 替代方案 / Alternatives Considered
<!-- 你考虑过哪些其他解决方案 / Any alternative solutions or features you've considered -->
## 补充信息 / Additional Context
<!-- 截图、参考链接或其他有助于理解需求的内容 / Screenshots, links, or other context -->
+42
View File
@@ -0,0 +1,42 @@
## 改动说明 / Description
<!-- 简要描述本次 PR 的目的和改动内容 / Briefly describe the purpose and changes -->
## 改动类型 / Type of Change
<!-- 请勾选适用的类型 / Check the type(s) that apply -->
- [ ] 🐛 Bug 修复 / Bug fix
- [ ] ✨ 新功能 / New feature
- [ ] ♻️ 代码重构 / Refactoring (no functional change)
- [ ] 📝 文档更新 / Documentation update
- [ ] 🎨 UI/样式调整 / UI / style change
- [ ] ⚡ 性能优化 / Performance improvement
- [ ] 🔧 构建/配置变更 / Build / config change
## 关联 Issue / Related Issue
<!-- 如果有关联的 Issue,请填写 / Link to related issue if applicable -->
Closes #
## 测试说明 / Testing
<!-- 描述你如何测试这些改动 / Describe how you tested these changes -->
- [ ] 本地开发模式测试通过 / Tested in dev mode
- [ ] 打包 exe 测试通过 / Tested with packaged exe
- [ ] 相关功能无明显回归 / No obvious regression
## 截图 / Screenshots
<!-- 如涉及 UI 改动,请提供前后对比截图 / If UI changes are involved, add before/after screenshots -->
## 检查清单 / Checklist
- [ ] 代码符合项目现有风格(纯 JavaScript,无 TypeScript/ Code follows project style (vanilla JS)
- [ ] 没有引入不必要的依赖 / No unnecessary new dependencies
- [ ] 如有必要,已更新相关文档 / Documentation updated if needed
+81
View File
@@ -0,0 +1,81 @@
name: Release
on:
push:
tags:
- 'v*.*.*' # 推送 vX.X.X 格式的 tag 时触发
permissions:
contents: write
jobs:
build-windows:
name: Build Windows Installer
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: desktop/package-lock.json
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install frontend dependencies
working-directory: frontweb
run: npm ci
- name: Build frontend
working-directory: frontweb
run: npm run build
- name: Install backend dependencies
working-directory: backend-node
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
run: npm ci
- name: Install desktop dependencies & rebuild native modules
working-directory: desktop
env:
NODE_TLS_REJECT_UNAUTHORIZED: '0'
run: npm ci
- name: Copy frontend dist
working-directory: desktop
run: node scripts/copy-front.js
- name: Copy backend
working-directory: desktop
run: node scripts/copy-backend.js
# 标准版(含示例数据)
- name: Build Standard Installer
working-directory: desktop
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx electron-builder --win --publish never
- name: Upload Standard Build Artifacts
uses: actions/upload-artifact@v4
with:
name: windows-release
path: desktop/release/*.exe
retention-days: 7
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: desktop/release/*.exe
generate_release_notes: true
draft: true # 先创建草稿,人工审核后手动发布
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}