Files
breeze/scripts/build-node-apps.sh
T
waozi d14a67dc59 Add Chess and node-listed apps with beta apps in Settings
Chess is an optional app in More apps: play the computer at Easy, Medium
or Hard, or invite a friend from the friend list and play through the
account's node. It runs through a generic host interface (host_api 12) for
apps the node offers, so later apps need no host code or APK. More apps
lists the node's inbe.* apps that this build can run; installed marks sync
in private.inbe.v1.app-installs and app records in
private.inbe.v1.app.<name>, which released versions skip.

A release may carry "channel":"beta" (package-release.py --node-app NAME
--beta). Beta apps show only where Settings › About › Show beta apps is on;
turning it on reads the node's list again. Publishing offers only the upload
key over ssh.
2026-10-17 07:35:10 -03:00

25 lines
1.0 KiB
Bash

#!/bin/sh
# Apps the node offers (node_apps in apps/versions.json) are built on their
# own into build/node-apps. They never go into the root package or its
# cells: released hosts reject a root that carries an app they don't know.
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$root"
ziran=${1:-build/ziran-toolchain/bin/ziran}
output=${2:-build/node-apps}
mkdir -p build "$output"
exec 9>build/cells-build.lock
flock 9
python3 scripts/check-package-versions.py
python3 scripts/prepare-package-assets.py
for name in $(python3 -c 'import json; print(" ".join(sorted(json.load(open("apps/versions.json")).get("node_apps", {}))))'); do
assets=build/package-assets/$name/assets
mkdir -p "$assets"
"$ziran" bundle --root . --module-path src \
--module-path build/packages/kryon/src/ui \
--define KRYON_HOSTED_UI \
--module-path build/packages/ziran/std \
--asset-dir "assets=$assets" \
--entry "$name:Main" -o "$output/$name.zib" "apps/$name/$name.zi"
done