diff --git a/.gitea/README.md b/.gitea/README.md index 49515a3..5a34827 100644 --- a/.gitea/README.md +++ b/.gitea/README.md @@ -28,9 +28,11 @@ The heavy lifting is in [`build.sh`](../build.sh): Language variants `LANG_ENG` and `LANG_RUS` build in parallel. -The compiled `.com` files are collected under `dist/` and published as a -per-language artifact (`cmm-programs-LANG_ENG` / `cmm-programs-LANG_RUS`), -downloadable from the run's **Summary** page for 14 days. +Built programs are collected under `dist/` named as KolibriOS ships them — +lowercase and without the `.com` extension — and published per language +(`cmm-programs-LANG_ENG` / `cmm-programs-LANG_RUS`), downloadable from the +run's **Summary** page for 14 days. They are not packed with `kpack`; the +OS build does that itself when it assembles an image. ### Running it locally diff --git a/build.sh b/build.sh index 3afdc8a..e24e7e8 100644 --- a/build.sh +++ b/build.sh @@ -74,9 +74,12 @@ compile_one() { if [ "$rc" -eq 0 ] && [ -s "$d/$out" ]; then pass=$((pass + 1)) printf ' ok %s/%s\n' "$d" "$src" - # stash the built binary under dist/ (mirroring the program dir, so - # same-named outputs like menu/menu.com and examples/menu.com don't clash) - mkdir -p "$DIST/${d#./}" && cp "$d/$out" "$DIST/${d#./}/" + # collect under dist/ named as KolibriOS ships it: lowercase, without + # the extension. The program dir is mirrored so same-named outputs + # like menu/menu.com and examples/menu.com don't clash. + dst="$DIST/${d#./}/$(printf '%s' "${out%.com}" | tr 'A-Z' 'a-z')" + mkdir -p "$(dirname "$dst")" + cp "$d/$out" "$dst" else fail=$((fail + 1)) failed="$failed $d/$src"