Skip to content

feat(build): 为 Linux 增加 pacman 分发目标#59

Open
okamitimo233 wants to merge 2 commits into
SPlayer-Dev:devfrom
okamitimo233:feat/linux-pacman-pr
Open

feat(build): 为 Linux 增加 pacman 分发目标#59
okamitimo233 wants to merge 2 commits into
SPlayer-Dev:devfrom
okamitimo233:feat/linux-pacman-pr

Conversation

@okamitimo233

Copy link
Copy Markdown

功能

为 Arch / Manjaro / EndeavourOS 用户提供 pacman 包安装方式。

主要改动

  1. electron-builder.config.ts

    • Linux target 中新增 "pacman"
    • 新增 pacman 配置块,指定 artifactName 与 Arch 依赖清单:
      • gtk3
      • libnotify
      • nss
      • libxss
      • libxtst
      • xdg-utils
      • at-spi2-core
      • libsecret
  2. .github/workflows/dev.yml

    • 新增 Upload Linux Pacman artifact 上传步骤。
  3. README.md / README.zh-CN.md

    • 构建说明中补充 pacman。
    • 新增 Arch 系安装指引:
      sudo pacman -U splayer-next-*-x64.pacman
    • 标注 pacman target 在 electron-builder 中仍为 beta。

产物

构建后在 dist/ 中输出:

splayer-next-{version}-x64.pacman

latest-linux.yml 会自动包含 pacman 条目,prepare-release-assets.cjs 无需额外修改即可纳入发布。

本地测试

  • pnpm build:linux 成功产出 dist/splayer-next-1.0.0-x64.pacman
  • pacman -Qip dist/splayer-next-1.0.0-x64.pacman 包信息解析正确
  • 安装后应用可正常启动、播放音频

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant