Packaging on Linux
Prerequisites
Configuration
@{
Root = '/mnt/c/Users/adamr/desktop/test.ps1' # Root script to package. This is the main entry point for the package.
OutputPath = '/mnt/c/Users/adamr/desktop/out' # The output directory for the packaging process.
Package = @{
Enabled = $true # Whether to package as an executable.
DotNetVersion = 'netcoreapp31'
PackageType = 'Console' # The type of executable to generate. Valid values are Service or Console.
PowerShellArguments = '' # Sets the arguments for the PowerShell process that is hosted within the executable. You can use arguments like -NoExit, -ExecutionPolicy and -NoProfile.
Platform = 'x64' # Sets the architecture of the executable. Can be either 'x86' or 'x64'
PowerShellVersion = '7.0.3' # You can specify Windows PowerShell or PowerShell 7 or later versions version (e.g. 7.0.0)
RuntimeIdentifier = 'linux-x64' # You can specify other runtimes like linux-x64 (See .NET Core runtime identifiers)
}
Bundle = @{
Enabled = $true # Whether to bundle multiple PS1s into a single PS1. Always enabled when Package is enabled.
Modules = $true # Whether to bundle modules into the package
}
}Running the Packager
Last updated