From 422aa04e314e5faeecbf52aa24ea42bf095b08ac Mon Sep 17 00:00:00 2001 From: madonuko Date: Sun, 28 Jun 2026 18:49:43 +0800 Subject: [PATCH 1/2] feat(andaman): document createrepo_c --- content/docs/andaman/mechanisms.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/docs/andaman/mechanisms.mdx b/content/docs/andaman/mechanisms.mdx index 5a1ec52b..33e3dc45 100644 --- a/content/docs/andaman/mechanisms.mdx +++ b/content/docs/andaman/mechanisms.mdx @@ -27,6 +27,8 @@ All the scripts in Anda can either be a command that can be executed with `sh -c - Docker/Podman: Anda calls `docker build` or `podman build`. +For RPMs, `./anda-build/rpm` will be initialized with `createrepo_c` after the build process, so you can just write a `.repo` file and use it as a repository locally. + ## AndaX AndaX is an embedded scripting system powered by [Rhai](https://https://rhai.rs/). It is mainly for supporting automatic updates, but it is also the scripting system used behind `pre_script` and `post_script`. From e8ba92c1edcece718b76323305344c1281bd8631 Mon Sep 17 00:00:00 2001 From: madonuko Date: Sun, 28 Jun 2026 18:54:55 +0800 Subject: [PATCH 2/2] feat(andaman): document a few more commands --- content/docs/andaman/mechanisms.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/docs/andaman/mechanisms.mdx b/content/docs/andaman/mechanisms.mdx index 33e3dc45..725141e7 100644 --- a/content/docs/andaman/mechanisms.mdx +++ b/content/docs/andaman/mechanisms.mdx @@ -9,7 +9,7 @@ Andaman is a meta-build system that calls upon other build systems to build pack It reads the project manifest in `anda.hcl` and calls the corresponding build system to build the package. Multiple projects can be included in a single repository (known as a monorepo) recursively in different directories. -The root directory contains a main configuration file (also `anda.hcl`) and the configurations will be inherited. All the other `anda.hcl` files in its subdirectory can independently represent multiple projects, and multiple ways to build a package can be specified in each project. Once properly configured, a project can be built by `anda build subdirectory_path/project_name`. +The root directory contains a main configuration file (also `anda.hcl`) and the configurations will be inherited. All the other `anda.hcl` files in its subdirectory can independently represent multiple projects, and multiple ways to build a package can be specified in each project. Once properly configured, a project can be built by `anda build subdirectory_path/project_name`. A list of valid projects can be seen by `anda list`. All configurations should be written in the HashiCorp Configuration Language with the filename `anda.hcl` and will be parsed in `anda-config`. @@ -90,3 +90,5 @@ project project_name { Then, AndaX executes the scripts in parallel, where each update script gets its own thread. This greatly reduces the time required to fetch package versions. Note that Rhai does not support asynchronous programming. Around 200 update scripts in Terra can be processed under a second. Projects can also be filtered by adding `--filters key=value,key2=value2` to the command. For example, the update script for the above project will be executed for `--filters a=1` or even without filters related to `a`, but it won't be executed for `--filters a=2`. + +To execute the update script for just 1 project, run `anda update subdirectory_path/project_name`.