@dcl/abgen
v0.19.2
Published
Decentraland asset-bundle converter + ab-cdn-compatible JIT server. Installs the prebuilt abgen binary for your platform.
Readme
@dcl/abgen
Prebuilt binaries for abgen: the standalone Decentraland
asset-bundle converter + ab-cdn-compatible JIT server. Installing this package pulls the binary for
your platform through an optionalDependency:
| Platform | Package |
|---|---|
| Linux x64 (glibc >= 2.34) | @dcl/abgen-linux-x64 |
| Linux arm64 (glibc >= 2.34) | @dcl/abgen-linux-arm64 |
| Windows x64 | @dcl/abgen-win32-x64 |
| Windows arm64 | @dcl/abgen-win32-arm64 |
| macOS arm64 (Apple Silicon) | @dcl/abgen-darwin-arm64 |
| macOS x64 (Intel) | @dcl/abgen-darwin-x64 |
Each platform package carries just the binary: the template/ and shader/ runtime assets are
compiled into it, so there is no configuration and nothing to place beside it. The binaries are the same reproducible
artifacts attached to the GitHub release of the matching tag.
Run the server
npx @dcl/abgen # ab-cdn-compatible server on 127.0.0.1:5147
ABGEN_CATALYST_URL=https://peer.decentraland.org/content npx @dcl/abgenAll configuration is environment variables - see the repository README.
Embed in a tool
const { binPath } = require('@dcl/abgen')
// spawn binPath() with the ABGEN_* environment you needbinPath() returns the absolute path of the platform binary, and throws with an actionable
message on unsupported platforms or when the optional platform package was omitted at install
time. @dcl/sdk-commands uses this to boot the asset-bundle preview sidecar.
License
Apache-2.0. Full text and vendored third-party notices in the repository.
