Reference / Package types

Application package (.acb)

An application package is a prebuilt native Windows installer together with its application resources, sealed in the Acruz container. The manifest kind is app, the extension is .acb and the manifest template is templates/app.yml; the family reference manifest is projects/acruz-one/acruz.yml. Packaging never compiles your application and never applies Windows Authenticode signing — those are separate steps in your own build.

Container and limits

Use container v2 for new releases. It stores uncompressed payload bytes with Ed25519-signed metadata and a SHA-256 file inventory. Studio supports up to 1536 MiB of application payload across at most 1024 files. For a package above 128 MiB, use Studio or the developer SDK to upload in resumable parts. The verifier rejects traversal, absolute and Windows device paths, symlinks, case collisions, duplicate JSON fields, extra fields and missing entrypoints. Verification reads the payload without extracting or executing it. See docs/PACKAGES.md for the full format contract.

Describe the application

Declare a stable reverse-domain package name owned by your developer namespace, a X.Y.Z version, the real tested Windows build range, architectures, RAM, disk and cores. max_build: null declares no upper bound. templates/app.yml expects the installer at the staging-relative path setup/AcruzOneSetup.exe.

npm ci
npm run sdk -- validate projects/acruz-one/acruz.yml
npm run sdk -- compatible projects/acruz-one/acruz.yml templates/device.json
npm run verify

validate checks the manifest schema, inspect prints the parsed manifest, and compatible reports every unmet requirement against a device description and exits with code 2 when the host is incompatible. npm ci and npm run verify are the repository-root install and consistency checks; they must run from the repository root.

Build and verify with the installed SDK

Install the versioned SDK tarball in your project with npm install --save-dev <path-to-sdk.tgz> (Node.js 24+). Build a per-user NSIS installer; a Windows Authenticode signature is optional and is never checked by the store or by One. Place the installer under staging/ at the exact relative path in entrypoint.

For a working example, copy node_modules/@montju/acruz-sdk/examples/application to a writable project and follow its README. It includes the managed NSIS layout, a native health check and a version-isolated data lock.

Generate a canonical recipe with npx acruz project write-install-recipe . path/to/SignedApp.exe App.exe. The first executable argument is the final signed file copied by NSIS. The second is its path relative to the installed version directory. The command writes install.json next to acruz.yml for Studio and refuses to overwrite an existing recipe. For the manual staging workflow below, copy the recipe to staging/install.json.

New-Item -ItemType Directory -Force .keys
npx acruz validate acruz.yml
npx acruz keygen .keys/developer
npx acruz package acruz.yml staging .keys/developer.private.pem MyApp-0.1.0.acb
npx acruz verify2 MyApp-0.1.0.acb .keys/developer.public.pem

Keep credentials, source code and the private key outside staging. On Windows a private key needs proper access-control entries; mode 0600 alone is not sufficient. Production requires managed key storage, and only the public key is registered in the developer portal. npm run sdk -- <subcommand> is the alias for node sdk/core/src/cli.ts <subcommand>.

Register the application and public key in the Montju developer portal or use npx acruz store create-app . and npx acruz store register-key .keys/developer.public.pem with an approved profile and a scoped developer token. Upload the verified v2 bundle from Studio or the portal, wait for verification, then submit it for review. A verified upload becomes available in Acruz One after approval and publication.

Distribution and offline installs

One installs reviewed, self-contained per-user NSIS packages through the acruz-nsis-v1 recipe and repeats bundle and compatibility checks locally. For bounded offline resources, download the published .acb, request GET /api/v1/releases/{id}/offline-approval with an account entitled to that artifact, save <id>/bundle.acb and <id>/approval.json, and pass the parent directory to scripts/build-one.ps1 -OfflineAppsDirectory <directory>. The signed offline purpose acruz.offline-install.v1 expires within 72 hours and the device grant must still be valid.