Skip to content

chore(build): 调整 build 的参数顺序#24

Open
MoYingJi wants to merge 1 commit into
SPlayer-Dev:devfrom
MoYingJi:pr/awa
Open

chore(build): 调整 build 的参数顺序#24
MoYingJi wants to merge 1 commit into
SPlayer-Dev:devfrom
MoYingJi:pr/awa

Conversation

@MoYingJi
Copy link
Copy Markdown
Collaborator

@MoYingJi MoYingJi commented Jun 3, 2026

electron-builder 可以像 electron-builder --linux deb tar.gzelectron-builder --win nsis 这样指定目标

将平台参数置于末尾,这样可以直接 pnpm build:<platform> <target>,更方便

`electron-builder` 可以像 `electron-builder --linux deb tar.gz` 或 `electron-builder --win nsis` 这样指定目标

将平台参数置于末尾,这样可以直接 `pnpm build:<platform> <target>`,更方便
Copilot AI review requested due to automatic review settings June 3, 2026 19:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本次 PR 主要调整 package.jsonelectron-builder 的 CLI 参数顺序:将平台参数(--win/--mac/--linux)移到命令末尾,以便在执行 pnpm build:<platform> <target> 时,<target> 能紧跟在平台参数之后,从而更符合 electron-builder --win nsis / --linux deb tar.gz 这类用法,提升构建脚本的可扩展性与易用性。

Changes:

  • 调整 build:winelectron-builder--config 放前,--win 放末尾
  • 调整 build:macelectron-builder--config 放前,--mac 放末尾
  • 调整 build:linuxelectron-builder--config 放前,--linux 放末尾

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.

2 participants