From e27270f134af8e325eb38abe311d7e6750ddd123 Mon Sep 17 00:00:00 2001 From: cc <98377878+hicccc77@users.noreply.github.com> Date: Sat, 10 Jan 2026 14:00:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=80=E4=BA=9B=E5=B0=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 23 ++++++----------------- package.json | 5 +++++ 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0149390..282e40b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - name: Check out git repository uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 0 - name: Install Node.js uses: actions/setup-node@v4 @@ -32,7 +32,6 @@ jobs: npx tsc npx vite build - # --- 生成更新日志步骤 --- - name: Build Changelog id: build_changelog uses: mikepenz/release-changelog-builder-action@v4 @@ -41,27 +40,17 @@ jobs: configurationJson: | { "categories": [ - { - "title": "## 🚀 Features", - "labels": ["feat", "feature"] - }, - { - "title": "## 🐛 Fixes", - "labels": ["fix", "bug"] - }, - { - "title": "## 🧰 Maintenance", - "labels": ["chore", "refactor", "docs", "perf"] - } + { "title": "## 🚀 Features", "labels": ["feat", "feature"] }, + { "title": "## 🐛 Fixes", "labels": ["fix", "bug"] }, + { "title": "## 🧰 Maintenance", "labels": ["chore", "refactor", "docs", "perf"] } ], "template": "# Release Notes\n\n{{CHANGELOG}}" } env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # --- 打包并发布步骤 --- - name: Package and Publish env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - npx electron-builder --publish always "-c.releaseInfo.releaseNotesFile=release-notes.md" "-c.publish.releaseType=release" \ No newline at end of file + + run: npx electron-builder --publish always "-c.releaseInfo.releaseNotesFile=release-notes.md" \ No newline at end of file diff --git a/package.json b/package.json index 6aa76d7..7b598cb 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.1", "description": "WeFlow - 微信聊天记录查看工具", "main": "dist-electron/main.js", + "author": "cc", "scripts": { "dev": "vite", "build": "tsc && vite build && electron-builder", @@ -46,6 +47,10 @@ }, "build": { "appId": "com.WeFlow.app", + "publish": { + "provider": "github", + "releaseType": "release" + }, "productName": "WeFlow", "artifactName": "${productName}-${version}-Setup.${ext}", "directories": {