Skip to content

feat(build): 增加适用于 pacman 的分发目标#59

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

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

Conversation

@okamitimo233

@okamitimo233 okamitimo233 commented Jun 29, 2026

Copy link
Copy Markdown

改动类型

  • 新功能(feat)
  • 缺陷修复(fix)
  • 重构 / 优化(不改变对外行为)
  • 文档(docs)
  • 其他(请在「改动说明」中注明)

是否包含破坏性变更

  • 是(请在「改动说明」中详细描述)

改动说明

为 Arch 系 Linux 发行版用户新增 pacman 包构建。

主要变更:

  1. electron-builder.config.ts

    • Linux target 中新增 "pacman"
    • 新增 pacman 配置块,指定 artifactNamelibnotifynsslibxsslibxtstxdg-utilsat-spi2-corelibsecret
    • 注意:pacman target 在 electron-builder 中为 beta。
  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

构建后 dist/ 中输出 splayer-next-{version}-x64.pacmanlatest-linux.yml 会自动包含 pacman 条目,
prepare-release-assets.cjs 无需额外修改即可纳入发布。

关联 Issue

测试情况

  • 平台:Arch Linux x86_64
  • 步骤
    1. pnpm build:linux → 成功产出 dist/splayer-next-1.0.0-x64.pacman
    2. pacman -Qip dist/splayer-next-1.0.0-x64.pacman → 包信息解析正确,依赖清单完整
    3. sudo pacman -U dist/splayer-next-1.0.0-x64.pacman → 安装成功
    4. 安装后启动应用 → 正常启动、播放音频

截图 / 录屏

无(非 UI 改动)

自查清单

  • 本 PR 只包含一个主要功能 / 修复,没有夹带无关改动
  • 已在本地完整测试通过;AI 生成的代码同样自行测试并审阅过,未做未经验证的提交
  • 已运行 pnpm format,并确认 pnpm typecheckpnpm lint 通过
  • 改动涉及原生模块时已 pnpm build:native 验证;未手写 native/*/index.d.ts
  • 已向 dev 分支提交

@okamitimo233 okamitimo233 changed the title feat(build): 为 Linux 增加 pacman 分发目标 feat(build): 增加适用于 pacman 的分发目标 Jul 1, 2026
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