mait.sh1.132.1

Private beta: features and content may change. No warranty; use at your own risk.

Customize aidc-pack

Choose where packages are saved, how a tool is captured, which system a package is for, how you sign in and how uploads behave.

Beta
Storage and capture

Storage, capture mode and the capture image.

VariableDefaultEffect
AIDC_PACK_STORAGE_PATH./packagesDirectory packages and manifests are written to and read from. Use the same working directory for build, inspect, verify and publish, or set this explicitly
AIDC_PACK_MODEdockerdocker spawns a capture container; direct captures in place with no container. An unrecognized value falls back to docker with a warning
AIDC_PACK_BASE_IMAGE(capture image supplied with your release)Docker image for container-based capture. A cached image is reused; a moving tag does not refresh it automatically
AIDC_DATA_DIR~/.aidc (/opt/aidc when the home directory cannot be determined)Directory of aidc-managed tool installations

Direct mode removes the Docker requirement but installs and captures in the current environment. Android distribution capture always uses the local SDK root, whatever the mode.

Target

Platform, architecture and distribution.

SettingDefaultEffect
--platform or AIDC_PLATFORMthe current systemlinux or darwin
--architecture or AIDC_ARCHITECTUREthe current systemamd64 or arm64
<TOOL>:<distribution>noneA distribution variant, such as java:temurin or android-sdk:tools

A flag overrides its environment variable. Set platform and architecture through those flags or process environment variables; the optional YAML settings files do not supply target defaults. The target is part of the archive name and does not change the producing environment; build on a machine that matches it. publish validates the target before locating the package, so an invalid value fails at once. aidc-pack rejects the Android emulator and full bundles on arm64. An Android component such as 'android-sdk:component_ndk;27.1.12297006' must be quoted so the shell passes one argument.

Credentials

Which file proves you may publish, and which hub receives it.

VariableDefaultEffect
AIDC_CREDENTIALS_PATHsearched automaticallyCredentials file for publish and the optional baseline check
CREDENTIALS_PATHsearched automaticallyGeneric fallback, used after AIDC_CREDENTIALS_PATH
MAIT_CHANNELthe channel recorded at installation, else stablestable, edge or beta: selects the Hub that publish and the baseline check use

Without an explicit path, discovery checks ~/.mait/credentials before /etc/mait/credentials. On a channel other than stable, the channel-suffixed file, such as credentials.edge, is checked first in each directory. The destination follows the channel and cannot be set separately.

ChannelHub address
stablehttps://aidc.mait.sh
edgehttps://aidc.edge.mait.sh
betahttps://aidc.beta.mait.sh

Confirm the channel before you publish, especially when one account works with several. The publish feature aidc:hub:admin:publish (or aidc:hub:admin:*) is granted to your account by The MAIT Team.

Uploads

Chunk size, retries and timeouts.

VariableDefaultEffect
AIDC_CHUNK_SIZE52428800 (50 MiB)Upload chunk size in bytes
AIDC_MAX_RETRIES3Maximum total attempts per chunk upload
AIDC_CHUNK_TIMEOUT600Timeout in seconds for one chunk request
AIDC_UPLOAD_TIMEOUT600Default timeout per upload-client request in seconds; not a whole-command deadline
AIDC_API_TIMEOUT30Timeout in seconds for post-publish signature metadata
AIDC_VENDOR_ENABLEDtrueRead into the configuration; the source-verification install in build always runs with vendor sources enabled

Environment values override the optional settings files ~/.mait/aidc.yaml and then /etc/mait/aidc.yaml, followed by the defaults. In a settings file write the name in lowercase without the AIDC_ prefix, at the top level or under an aidc: block.

~/.mait/aidc.yaml
aidc:
  pack_storage_path: /srv/packages
Next

Where to go next.