完善gitflow

This commit is contained in:
ACT丶流星雨 2026-04-03 01:38:06 +08:00
parent 967e4d75dd
commit cdc874c228
2 changed files with 25 additions and 21 deletions

View File

@ -42,7 +42,6 @@ jobs:
name: windows-builds name: windows-builds
path: | path: |
dist/*.exe dist/*.exe
dist/*.zip
retention-days: 30 retention-days: 30
build-macos: build-macos:
@ -75,7 +74,6 @@ jobs:
name: macos-builds name: macos-builds
path: | path: |
dist/*.dmg dist/*.dmg
dist/*.zip
retention-days: 30 retention-days: 30
build-linux: build-linux:
@ -108,7 +106,6 @@ jobs:
name: linux-builds name: linux-builds
path: | path: |
dist/*.AppImage dist/*.AppImage
dist/*.deb
retention-days: 30 retention-days: 30
release: release:
@ -145,11 +142,31 @@ jobs:
draft: false draft: false
prerelease: ${{ contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') }} prerelease: ${{ contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') }}
generate_release_notes: true generate_release_notes: true
body: |
## 📦 下载指南
| 操作系统 | 架构 | 文件 | 说明 |
|---------|------|------|------|
| 🪟 Windows | x64 | `ToonFlow-*-win-x64-setup.exe` | **推荐**,适用于大多数 Windows 电脑 |
| 🪟 Windows | ARM64 | `ToonFlow-*-win-arm64-setup.exe` | 适用于 ARM 架构 Windows 设备 |
| 🍎 macOS | Apple Silicon | `ToonFlow-*-mac-arm64.dmg` | 适用于 M1/M2/M3/M4 芯片的 Mac |
| 🍎 macOS | Intel | `ToonFlow-*-mac-x64.dmg` | 适用于 Intel 芯片的 Mac |
| 🐧 Linux | x64 | `ToonFlow-*-linux-x64.AppImage` | 适用于大多数 Linux 发行版 |
| 🐧 Linux | ARM64 | `ToonFlow-*-linux-arm64.AppImage` | 适用于 ARM 架构 Linux 设备 |
> 💡 **不确定选哪个?** Windows 用户通常选 **x64-setup.exe**Mac 用户查看「关于本机」M 系列芯片选 **arm64.dmg**Intel 选 **x64.dmg**。
## 🚀 安装说明
- **Windows**:下载 `.exe` 文件,双击运行安装向导即可。如果运行时出现 DLL 缺失或闪退,请先安装 [Microsoft Visual C++ Redistributable (x64)](https://aka.ms/vs/17/release/vc_redist.x64.exe)。
- **macOS**:下载 `.dmg` 文件,打开后将 ToonFlow 拖入「应用程序」文件夹。首次打开如遇安全提示,请前往「系统设置 → 隐私与安全性」中允许运行。
- **Linux**:下载 `.AppImage` 文件,执行 `chmod +x ToonFlow-*.AppImage` 后双击运行。
---
files: | files: |
dist/*.exe dist/*.exe
dist/*.zip
dist/*.dmg dist/*.dmg
dist/*.AppImage dist/*.AppImage
dist/*.deb
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -37,19 +37,14 @@ win:
arch: arch:
- x64 - x64
- arm64 - arm64
- target: portable
arch:
- x64
- arm64
icon: ./scripts/logo.ico icon: ./scripts/logo.ico
artifactName: ${productName}-${version}-${os}-${arch}.${ext}
nsis: nsis:
oneClick: false oneClick: false
allowToChangeInstallationDirectory: true allowToChangeInstallationDirectory: true
perMachine: true perMachine: true
shortcutName: ${productName} shortcutName: ${productName}
artifactName: ${productName}-Setup-${version}-${arch}.${ext} artifactName: ${productName}-${version}-win-${arch}-setup.${ext}
installerIcon: './scripts/logo.ico' installerIcon: './scripts/logo.ico'
uninstallerIcon: './scripts/logo.ico' uninstallerIcon: './scripts/logo.ico'
@ -59,13 +54,9 @@ mac:
arch: arch:
- x64 - x64
- arm64 - arm64
- target: zip
arch:
- x64
- arm64
icon: ./scripts/logo.icns icon: ./scripts/logo.icns
category: public.app-category.developer-tools category: public.app-category.developer-tools
artifactName: ${productName}-${version}-${os}-${arch}.${ext} artifactName: ${productName}-${version}-mac-${arch}.${ext}
linux: linux:
target: target:
@ -73,12 +64,8 @@ linux:
arch: arch:
- x64 - x64
- arm64 - arm64
- target: deb
arch:
- x64
- arm64
icon: ./scripts/logo.png icon: ./scripts/logo.png
artifactName: ${productName}-${version}-linux-${arch}.${ext}
category: Development category: Development
artifactName: ${productName}-${version}-${os}-${arch}.${ext}
publish: null publish: null