mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.6] Replace fpm with native macOS packaging tools (pkgbuild/productbuild) (#26501)
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
TravisEz13
parent
0e83f60c0e
commit
ce725ce207
@@ -72,11 +72,18 @@ The output of `Start-PSBuild` includes a `powershell.exe` executable which can s
|
||||
#### Linux / macOS
|
||||
|
||||
The `Start-PSPackage` function delegates to `New-UnixPackage`.
|
||||
It relies on the [Effing Package Management][fpm] project,
|
||||
which makes building packages for any (non-Windows) platform a breeze.
|
||||
Similarly, the PowerShell man-page is generated from the Markdown-like file
|
||||
|
||||
For **Linux** (Debian-based distributions), it relies on the [Effing Package Management][fpm] project,
|
||||
which makes building packages a breeze.
|
||||
|
||||
For **macOS**, it uses native packaging tools (`pkgbuild` and `productbuild`) from Xcode Command Line Tools,
|
||||
eliminating the need for Ruby or fpm.
|
||||
|
||||
For **Linux** (Red Hat-based distributions), it uses `rpmbuild` directly.
|
||||
|
||||
The PowerShell man-page is generated from the Markdown-like file
|
||||
[`assets/pwsh.1.ronn`][man] using [Ronn][].
|
||||
The function `Start-PSBootstrap -Package` will install both these tools.
|
||||
The function `Start-PSBootstrap -Package` will install these tools.
|
||||
|
||||
To modify any property of the packages, edit the `New-UnixPackage` function.
|
||||
Please also refer to the function for details on the package properties
|
||||
@@ -131,7 +138,7 @@ Without `-Name` specified, the primary `powershell`
|
||||
package will instead be created.
|
||||
|
||||
[fpm]: https://github.com/jordansissel/fpm
|
||||
[man]: ../../assets/pwsh.1.ronn
|
||||
[man]: ../../assets/manpage/pwsh.1.ronn
|
||||
[ronn]: https://github.com/rtomayko/ronn
|
||||
|
||||
### Build and Packaging Examples
|
||||
|
||||
Reference in New Issue
Block a user