moonbit-community/proton_package/lib does not have a README file
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)fn PackageFileSystemError::not_equal(x : PackageFileSystemError, y : PackageFileSystemError) -> Boolpub(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)pub struct MacosPlistString {
key : String
value : String
}pub struct MacosSignTarget {
path : String
runtime_options : Bool
entitlements : Bool
identifier : String?
}fn MacosSignTarget::new(path : String, runtime_options? : Bool, entitlements? : Bool, identifier? : String) -> MacosSignTargetpub 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?
}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) -> PackageCustomizationpub struct PackageLayout {
root : String
executable : String
resources : String
libraries : String
executables : String
}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)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) -> PackageSpecpub struct Payload {
source : String
destination : String
location : PayloadLocation
} derive(Eq, Debug)async fn build_with(spec : PackageSpec, customization : PackageCustomization, prepare : async (PackageLayout) -> Unit) -> Array[String]Host-native desktop application packaging library and CLI.
Dependencies