proton_bundle

Proton-specific application bundle assembly over proton_package.

proton
bundle
packaging
cef
moon add moonbit-community/proton_bundle@0.2.1
Download zip
Version
0.2.1
License
Apache-2.0
Last updated
7 hours ago
Downloads
10
README

#proton_bundle

proton_bundle adapts an already-built Proton application to the generic proton_package library. It resolves the immutable CEF runtime declared by the application's Proton dependency, stages the matching cef_process executable, writes Proton metadata, and describes the platform-specific signing layout.

The module does not inspect a MoonBit project or run a build. Callers provide a complete proton_package.PackageSpec, the matching helper executable, that dependency's cef_requirements.json, and the additional Proton payload inputs. build returns both the produced artifacts and the platform of the resolved runtime so callers do not need to query the CEF store independently.

#
BundleResult

pub struct BundleResult {
artifacts : Array[String]
platform : String
}

#
BundleResult::artifacts

fn BundleResult::artifacts(self : BundleResult) -> Array[String]

#
BundleResult::platform

fn BundleResult::platform(self : BundleResult) -> String

#
ProtonBundleSpec

pub struct ProtonBundleSpec {
package_spec :
PackageSpec

cef_process : String
runtime_requirements : String
base_dir : String
macos_version : String
bundle_version : String
update_revision : UInt64
frontend_dist : String?
resources : Array[String]
sign_binaries : Array[String]
}

Complete input for assembling an already-built Proton application bundle.

The executable in package_spec and cef_process must come from the same Proton source revision. Project payloads are resolved beneath base_dir; runtime_requirements is the declaration shipped by that Proton source.

#
ProtonBundleSpec::new

fn ProtonBundleSpec::new(package_spec :
PackageSpec
, cef_process : String, runtime_requirements : String, base_dir : String, macos_version : String, bundle_version : String, frontend_dist : String?, update_revision? : UInt64, resources? : Array[String], sign_binaries? : Array[String]) -> ProtonBundleSpec

#
build

async fn build(spec : ProtonBundleSpec) -> BundleResult

Packages an already-built Proton application using the active immutable runtime installation.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io