README

moonbit-community/proton_package/lib does not have a README file

#
LinuxPackagingError

pub(all) suberror LinuxPackagingError {
InvalidConfiguration(detail~ : String)
ToolFailure(stage~ : String, detail~ : String)
} derive(Eq,
Debug
)

#
LinuxPackagingError::equal

#
LinuxPackagingError::message

fn LinuxPackagingError::message(self : LinuxPackagingError) -> String

#
LinuxPackagingError::not_equal

#
MacosSigningError

pub(all) suberror MacosSigningError {
InvalidConfiguration(detail~ : String)
ToolFailure(stage~ : String, detail~ : String)
Verification(detail~ : String)
} derive(Eq,
Debug
)

#
MacosSigningError::equal

#
MacosSigningError::message

fn MacosSigningError::message(self : MacosSigningError) -> String

#
MacosSigningError::not_equal

fn MacosSigningError::not_equal(x : MacosSigningError, y : MacosSigningError) -> Bool

#
PackageFileSystemError

pub(all) suberror PackageFileSystemError {
CreateDirectory(path~ : String, detail~ : String)
Remove(path~ : String, detail~ : String)
Copy(source~ : String, destination~ : String, detail~ : String)
Read(path~ : String, detail~ : String)
Write(path~ : String, detail~ : String)
InvalidSource(path~ : String)
} derive(Eq,
Debug
)

#
PackageFileSystemError::equal

#
PackageFileSystemError::message

fn PackageFileSystemError::message(self : PackageFileSystemError) -> String

#
PackageFileSystemError::not_equal

#
PackagePlanError

pub(all) suberror PackagePlanError {
InvalidProductName(reason~ : String)
InvalidIdentifier(identifier~ : String, reason~ : String)
InvalidVersion(version~ : String, reason~ : String)
UnsupportedFormat(format~ : String)
UnsupportedFormatForPlatform(format~ : String, platform~ : String)
MissingExecutable(path~ : String)
MissingInput(path~ : String)
MissingIcon(path~ : String)
InvalidPayload(detail~ : String)
} derive(Eq,
Debug
)

#
PackagePlanError::equal

#
PackagePlanError::message

fn PackagePlanError::message(self : PackagePlanError) -> String

#
PackagePlanError::not_equal

fn PackagePlanError::not_equal(x : PackagePlanError, y : PackagePlanError) -> Bool

#
PackageToolError

pub(all) suberror PackageToolError {
Start(tool~ : String, detail~ : String)
Exit(tool~ : String, code~ : Int, detail~ : String)
} derive(Eq,
Debug
)

#
PackageToolError::equal

#
PackageToolError::message

fn PackageToolError::message(self : PackageToolError) -> String

#
PackageToolError::not_equal

fn PackageToolError::not_equal(x : PackageToolError, y : PackageToolError) -> Bool

#
WindowsPackagingError

pub(all) suberror WindowsPackagingError {
InvalidConfiguration(detail~ : String)
MissingTarget(path~ : String)
ToolFailure(stage~ : String, detail~ : String)
Verification(detail~ : String)
} derive(Eq,
Debug
)

#
WindowsPackagingError::equal

#
WindowsPackagingError::message

fn WindowsPackagingError::message(self : WindowsPackagingError) -> String

#
WindowsPackagingError::not_equal

#
DocumentType

pub struct DocumentType {
name : String
extensions : Array[String]
role : String
} derive(Eq,
Debug
)

A file association included in native application metadata.

#
DocumentType::equal

#
DocumentType::extensions

fn DocumentType::extensions(self : DocumentType) -> Array[String]

#
DocumentType::name

fn DocumentType::name(self : DocumentType) -> String

#
DocumentType::new

fn DocumentType::new(name : String, extensions : Array[String], role? : String) -> DocumentType

#
DocumentType::not_equal

fn DocumentType::not_equal(x : DocumentType, y : DocumentType) -> Bool

#
DocumentType::role

fn DocumentType::role(self : DocumentType) -> String

#
MacosPlistString

pub struct MacosPlistString {
key : String
value : String
}

An additional string property written to a generated macOS Info.plist.

#
MacosPlistString::new

fn MacosPlistString::new(key : String, value : String) -> MacosPlistString

#
MacosSignTarget

pub struct MacosSignTarget {
path : String
runtime_options : Bool
entitlements : Bool
identifier : String?
}

A nested macOS code object signed before the main executable and app.

path is relative to the staged .app root. Array order is signing order, allowing callers to describe inside-out signing for nested frameworks.

#
MacosSignTarget::new

fn MacosSignTarget::new(path : String, runtime_options? : Bool, entitlements? : Bool, identifier? : String) -> MacosSignTarget

#
PackageCustomization

pub struct PackageCustomization {
macos_plist_strings : Array[MacosPlistString]
macos_sign_targets : Array[MacosSignTarget]
windows_sign_targets : Array[String]
windows_verify_targets : Array[String]
linux_resources_path : String?
}

Host-specific additions to the otherwise portable package specification.

#
PackageCustomization::new

fn PackageCustomization::new(macos_plist_strings? : Array[MacosPlistString], macos_sign_targets? : Array[MacosSignTarget], windows_sign_targets? : Array[String], windows_verify_targets? : Array[String], linux_resources_path? : String) -> PackageCustomization

#
PackageFormat

pub(all) enum PackageFormat {
App
Zip
Dmg
Nsis
AppImage
} derive(Eq,
Debug
)

A host-native package artifact.

#
PackageFormat::equal

#
PackageFormat::not_equal

fn PackageFormat::not_equal(x : PackageFormat, y : PackageFormat) -> Bool

#
PackageFormat::parse

fn PackageFormat::parse(value : String) -> PackageFormat raise PackagePlanError

#
PackageFormat::to_string

fn PackageFormat::to_string(self : PackageFormat) -> String

#
PackageLayout

pub struct PackageLayout {
root : String
executable : String
resources : String
libraries : String
executables : String
}

Host-native directories for a package while it is being assembled.

The paths are valid only for the duration of build_with. A caller may use them to add framework-specific files after the generic payloads have been copied and before signing and artifact creation begin.

#
PackageLayout::executable

fn PackageLayout::executable(self : PackageLayout) -> String

#
PackageLayout::executables

fn PackageLayout::executables(self : PackageLayout) -> String

#
PackageLayout::libraries

fn PackageLayout::libraries(self : PackageLayout) -> String

#
PackageLayout::resources

fn PackageLayout::resources(self : PackageLayout) -> String

#
PackageLayout::root

fn PackageLayout::root(self : PackageLayout) -> String

#
PackageSpec

pub struct PackageSpec {
executable : String
product_name : String
identifier : String
version : String
formats : Array[PackageFormat]
output : String
payloads : Array[Payload]
icons : Array[String]
url_schemes : Array[String]
document_types : Array[DocumentType]
sign : Bool
notarize : Bool
} derive(Eq,
Debug
)

Complete input to the host-native packager.

#
PackageSpec::equal

fn PackageSpec::equal(PackageSpec, PackageSpec) -> Bool

#
PackageSpec::new

fn PackageSpec::new(executable : String, product_name : String, identifier : String, version : String, formats : Array[PackageFormat], output : String, payloads? : Array[Payload], icons? : Array[String], url_schemes? : Array[String], document_types? : Array[DocumentType], sign? : Bool, notarize? : Bool) -> PackageSpec

#
PackageSpec::not_equal

fn PackageSpec::not_equal(x : PackageSpec, y : PackageSpec) -> Bool

#
Payload

pub struct Payload {
source : String
destination : String
location : PayloadLocation
} derive(Eq,
Debug
)

A file or directory copied into the package.

#
Payload::equal

fn Payload::equal(Payload, Payload) -> Bool

#
Payload::new

fn Payload::new(source : String, destination : String, location? : PayloadLocation) -> Payload

#
Payload::not_equal

fn Payload::not_equal(x : Payload, y : Payload) -> Bool

#
Payload::to_repr

#
PayloadLocation

pub(all) enum PayloadLocation {
Resources
Libraries
Executables
} derive(Eq,
Debug
)

The portable destination area for an additional package payload.

#
PayloadLocation::equal

#
PayloadLocation::not_equal

fn PayloadLocation::not_equal(x : PayloadLocation, y : PayloadLocation) -> Bool

#
PayloadLocation::parse

fn PayloadLocation::parse(value : String) -> PayloadLocation raise PackagePlanError

#
build

async fn build(spec : PackageSpec) -> Array[String]

Packages an already-built executable using the current host's native tools.

#
build_with

async fn build_with(spec : PackageSpec, customization : PackageCustomization, prepare : async (PackageLayout) -> Unit) -> Array[String]

Packages an executable and allows framework-specific staging before the package is signed and converted into its requested artifacts.

#
validate_package_version

fn validate_package_version(value : String) -> String raise PackagePlanError

Validates and trims the version used by package metadata and paths.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io