Compare commits

..

2 Commits

Author SHA1 Message Date
cc
f864189407 fix: 优化action打包效果 2026-01-10 14:11:01 +08:00
cc
f321c465d5 feat: 减少安装包体积 2026-01-10 14:10:34 +08:00
2 changed files with 20 additions and 7 deletions

View File

@@ -39,12 +39,24 @@ jobs:
outputFile: "release-notes.md" outputFile: "release-notes.md"
configurationJson: | configurationJson: |
{ {
"template": "# v${{ github.ref_name }} 版本发布\n\n{{CHANGELOG}}\n\n---\n> 此更新由系统自动构建",
"categories": [ "categories": [
{ "title": "## 🚀 Features", "labels": ["feat", "feature"] }, {
{ "title": "## 🐛 Fixes", "labels": ["fix", "bug"] }, "title": "## 新功能",
{ "title": "## 🧰 Maintenance", "labels": ["chore", "refactor", "docs", "perf"] } "filter": { "pattern": "^feat:.*", "flags": "i" }
},
{
"title": "## 修复",
"filter": { "pattern": "^fix:.*", "flags": "i" }
},
{
"title": "## 性能与维护",
"filter": { "pattern": "^(chore|docs|perf|refactor):.*", "flags": "i" }
}
], ],
"template": "# Release Notes\n\n{{CHANGELOG}}" "ignore_labels": true,
"commitMode": true,
"empty_summary": "## 更新详情\n- 常规代码优化与维护"
} }
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -52,5 +64,5 @@ jobs:
- name: Package and Publish - name: Package and Publish
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
run: npx electron-builder --publish always "-c.releaseInfo.releaseNotesFile=release-notes.md" npx electron-builder --publish always "-c.releaseInfo.releaseNotesFile=release-notes.md"

View File

@@ -1,6 +1,6 @@
{ {
"name": "weflow", "name": "weflow",
"version": "1.0.1", "version": "1.0.2",
"description": "WeFlow - 微信聊天记录查看工具", "description": "WeFlow - 微信聊天记录查看工具",
"main": "dist-electron/main.js", "main": "dist-electron/main.js",
"author": "cc", "author": "cc",
@@ -64,6 +64,7 @@
}, },
"nsis": { "nsis": {
"oneClick": false, "oneClick": false,
"differentialPackage":false,
"allowToChangeInstallationDirectory": true, "allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true, "createDesktopShortcut": true,
"unicode": true, "unicode": true,