Sign in

    proton_package

    Host-native desktop application packaging library and CLI.

    desktop
    package
    app
    dmg
    nsis
    appimage
    Download zip
    Version
    0.1.18
    License
    Apache-2.0
    Last updated
    2 months ago
    Downloads
    494

    #proton_package

    proton_package packages an already-built executable with the current host's native tools. It does not inspect MoonBit workspaces, build source code, read proton.project.json, or assemble a Proton/CEF runtime.

    proton_package \ --executable ./build/my-app \ --product-name "My App" \ --identifier com.example.my-app \ --version 1.0.0 \ --format app \ --output dist

    For reusable configuration, pass --config package.json:

    { "schema_version": 1, "executable": "build/my-app", "product_name": "My App", "identifier": "com.example.my-app", "version": "1.0.0", "formats": ["app", "zip"], "output": "dist", "payloads": [ { "source": "assets", "destination": "assets", "location": "resources" } ] }

    Supported host-native formats are macOS app, zip, and dmg; Windows app, zip, and nsis; and Linux appimage.

    The executable and lib package support both the wasm and native MoonBit targets. Windows executable icon embedding uses a native C stub; requesting an .ico while running the wasm build reports that unsupported operation instead of silently omitting the icon.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io