Home/docs/project/Releases and artifacts

Releases and artifacts

Releasing and Artifacts

Version 0.3.8 publishes native C ABI and Web / WASM prebuilt artifacts, including four Linux x64 / ARM64 bundled / system archives. Each native bundle includes its matching erika.h, licenses and dependency notices. Flutter, SwiftPM and OHPM 0.3.8 are also publicly available, and the Web runtime is on npm as @aimessoft/liberika-web.

Triggers#

Pushing a v* tag triggers an official release, which is published to GitHub Releases once the build finishes. A manual workflow_dispatch run only builds and does not publish; use it for pre-release checks. Before releasing, verify locally with the build process.

This is an example; replace X.Y.Z with the intended release version.

VERSION=X.Y.Z
git tag "v${VERSION}"
git push origin "v${VERSION}"

The tag-triggered Release workflow performs the official build; a manual workflow run before tagging is not required.

Before you tag#

First set [workspace.package].version in the root Cargo.toml to the target version, then run cargo update -w and commit Cargo.lock together with it. The --locked build in CI requires the two to match. Leave the versions of vendored upstream dependencies unchanged.

Update the CHANGELOG and installation docs for the repository root, Flutter, and OHPM. Confirm that CI passes on the main branch, and complete the formatting, test, clippy, and Dart publish checks that the releasing documentation requires. At its entry point, the release workflow compares the tag version with the Cargo workspace version and fails immediately if they differ.

Later workflows sync the Flutter, OHPM, and Swift versions and native digests. After the GitHub Release completes, confirm the public versions on pub.dev, SwiftPM, and OHPM separately. A successful OHPM upload does not mean the review is complete.

Artifacts#

PlatformBundle nameContents
macOSerika-capi-macos-arm64
erika-capi-macos-x64
liberika_capi.dylib + liberika_capi.a, one archive per architecture.
macOS universalerika-capi-macos-universalUniversal dylib and static library merged with lipo.
iOSerika-capi-ioserika_capi.xcframework, device + simulator.
tvOSerika-capi-tvoserika_capi.xcframework.
Windowserika-capi-windows-x64
erika-capi-windows-arm64
DLL and import library.
Androiderika-capi-androidAll four ABIs (arm64 / armv7 / x86_64 / x86) in one archive.
OpenHarmonyerika-capi-openharmony-arm64Runtime archive for the Flutter plugin. The standalone ArkTS SDK is published through OHPM.
Linux x64 / ARM64erika-capi-linux-x64-bundled
erika-capi-linux-x64-system
erika-capi-linux-arm64-bundled
erika-capi-linux-arm64-system
Ubuntu 22.04 / glibc 2.35 baseline; .so, .a, matching headers and DEPENDENCIES.txt.

Linux bundled embeds FFmpeg, dav1d, zlib, patched libass and font libraries. system uses host FFmpeg 8 and font shared libraries, while patched libass and SoundTouch remain embedded. Both still need system libc/libstdc++, audio services and GPU drivers; neither is fully static. See the Linux guide for runtime dependencies.

Web / WASM archive#

liberika-web-0.3.8.zip is generated by cargo run -p xtask -- web build. It contains the JavaScript, two WASM modules, the Worker, licenses, build-manifest.json, and the index.html demo page. Its digest is written to SHA256SUMS together with the native ZIPs.

After extracting the archive completely, open it over HTTPS or localhost. A standalone static deployment is enough to play a local MKV file. The same runtime is on npm as @aimessoft/liberika-web. For integration and compatibility, see Web / WASM integration.

liberika-web-nofont-0.3.8.zip omits the embedded Droid Sans Fallback (about 6 MB); the host must supply fonts for subtitles and danmaku. Its npm counterpart is @aimessoft/liberika-web-nofont.

OpenHarmony OHPM package#

The native ArkTS package erika for OpenHarmony arm64 is distributed through OHPM and supports API 18 and later. As of 2026-11-26, 0.3.8 is publicly available:

shell

ohpm install erika@0.3.8

The package contains the N-API bridge and a matching liberika_capi.so. For the API and the XComponent surface lifecycle, see the OpenHarmony package guide.

Bundle layout#

packaging/bundle.sh generates the C ABI bundles, and they all share the same layout:

<bundle-name>/
  lib/                    # Library files or xcframework
  include/erika.h         # C ABI header
  LICENSE                 # MPL-2.0
  THIRD_PARTY_NOTICES.md  # Dependency license notices and LGPL relink notes
  licenses/               # Full license text of each dependency
  MANIFEST.txt            # ref / commit / profile / build time

MANIFEST.txt records where the build came from: bundle name, git ref, commit, profile, and UTC time. Read it first when you trace an artifact's origin.

THIRD_PARTY_NOTICES.md describes the relink obligations for LGPL components. The library is distributed statically linked, so a host that switches to dynamic linking must be able to replace these components.

Consuming prebuilt artifacts#

The Flutter plugin downloads the prebuilt runtime by default during its build (the pub.dev version of erika_flutter includes verification and caching). To build from source instead, export the following explicitly:

export ERIKA_FORCE_SOURCE_BUILD=1    # Build from source instead (ERIKA_REPO_ROOT must point to a repository checkout)
export ERIKA_PREBUILT_TAG=v0.3.8       # Custom prebuilt version tag; defaults to the current version

When you override ERIKA_PREBUILT_TAG explicitly, you must also set the matching ERIKA_PREBUILT_SHA256 for that archive; read the digest for your platform from SHA256SUMS in the same release. Building from source and using a custom prebuilt version are two independent configuration options.

The build scripts download the bundle for the platform from github.com/AimesSoft/liberika/releases/download/<tag>/, unpack it, and verify its digest against the release-level SHA256SUMS.

For a native host, unpack the bundle, use include/erika.h as the only header, and link the library in lib/ into the host. See C ABI integration.

Linux is an exception: the plugin does not download its ZIP automatically. Extract the archive for the required CPU and dependency mode, set ERIKA_LIBRARY_DIR=/absolute/path/to/extracted/lib, then build the Flutter host.

Build and publish pipeline#

On main, the Release workflow builds each of these separately: two macOS architectures, three iOS slices, three tvOS slices, four Android ABIs, two Windows architectures, and OpenHarmony. Afterward it merges the universal binaries and XCFrameworks, or packages per ABI. The native dependency cache is saved per target and shared between CI and Release.

Version 0.3.8 publishes 20 ZIP archives: 13 C ABI archives (including four Linux bundles), four Flutter Android runtimes split by ABI, one Swift XCFramework, and two Web / WASM packages with and without the fallback font. SHA256SUMS records every archive digest.

After the native tag release succeeds, the Release ecosystem packages workflow updates the Flutter and OHPM versions and the native artifact digests, then publishes to pub.dev and OHPM. The Swift XCFramework build and the SwiftPM release proceed in parallel. After an OHPM upload succeeds, the platform review must still complete; the registry is the authority on the public version.

CI on the main branch selects native jobs based on the changed paths, and superseded builds on a branch can be cancelled. When a change touches only documentation or the ecosystem package publishing scripts, main CI skips the native build. Changes to native source, dependency patches, or the CI / Release build scripts still trigger it.

Linux is validated as x64 / ARM64 × bundled / system. Runtime bundles are built on Ubuntu 22.04 and checked against the glibc symbol baseline; the private FFmpeg SDK used to test system mode is excluded from release archives.

liberika v0.3.8 Section Project License MPL-2.0