Compare commits

...
80 Commits
Author SHA1 Message Date
waozi 53efbf0b28 Release Inner Breeze 2.1.52
Phone check: 57.7 fps, 0.03% late frames.
2026-10-27 05:24:36 -03:00
waozi 82383c3d5d Read a control's position after the browser music test's last scroll
The Apps list scrolls when a control sits low on the screen. The fourth
attempt scrolled and then clicked the position read before that scroll.
With the apps the node offers listed below Lists, the list moved and the
click opened Library instead of Lists, so release-ready failed while the
same code passed before the node's catalog changed.
2026-10-27 04:54:32 -03:00
waozi 5159e7f098 Publish verified OpenStore updates after the Release workflow 2026-10-27 04:36:50 -03:00
waozi 53f91d4c00 Resolve and verify the target atomic runtime in Click packages 2026-10-27 04:23:19 -03:00
waozi 66824eba50 Give the Results test the real leaderboard screen instead of a stub
Since Profile hosts the leaderboard, entity_host links the leaderboard
screen, so session-results-zi-test defined leaderboard_screen_enter twice.
The Results test now uses the real screen with a stub for the habit
editor's leave check, and only the tests that do not link the screen keep
its stub. This replaces a79ab2ac's foreign call from Profile, whose web
build ended release-ready's music test on Habits instead of Settings; the
app sources are those of 7ccb904f again.
2026-10-27 04:21:49 -03:00
waozi 87c9cd30a2 Serve the verified released web app on production Pages 2026-10-27 04:19:19 -03:00
waozi d1ae67efc5 Carry the bundled runtime license notices in Click packages 2026-10-27 04:13:55 -03:00
waozi d1be47cd59 Restore Ubuntu Touch audio and sync with the device graphics stack 2026-10-27 04:09:31 -03:00
waozi 1dae6f6c3a Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 03:42:31 -03:00
waozi 63af557410 Retain SDL X11 handles required by the Raylib backend 2026-10-27 03:42:30 -03:00
waozi 851759cfd0 Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 03:23:18 -03:00
waozi dd12f56834 Verify the generated SDL Wayland configuration 2026-10-27 03:23:17 -03:00
waozi 4147597f6b Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 03:22:14 -03:00
waozi c642c13e21 Build current SDL for Focal and link the bundled runtime first 2026-10-27 03:22:14 -03:00
waozi a78d7d43c4 Keep scripts/release.py executable 2026-10-27 03:04:31 -03:00
waozi 16161e4482 Let make release read a separate release-ready run
RELEASE_READY_OUTPUT names the run's outputs, as in release-ready.sh.
2026-10-27 03:03:46 -03:00
waozi a79ab2ace9 Keep the leaderboard screen out of the shared navigation unit
Profile reached the leaderboard by importing its screen into entity_host,
which every route imports, so tests with stub hosts linked the whole
screen and its stubs twice (session-results-zi-test). Profile now calls
InbeLeaderboardSnapshot as a foreign function, as the screen already
calls EntityHostOpenLeaderboard.
2026-10-27 03:03:46 -03:00
waozi 990d722a0f Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 02:56:32 -03:00
waozi edbc3df6de Build current TLS libraries for the Focal OpenStore package 2026-10-27 02:56:31 -03:00
waozi 52940c7ccf Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 02:39:58 -03:00
waozi 94fb71e80a Use the installed CMake for the Focal cross build 2026-10-27 02:39:58 -03:00
waozi 7ccb904f89 Release Inner Breeze 2.1.52
Entity ca637d0 saves account aliases typed with capitals, an @ or spaces
and says when an alias is taken.
2026-10-27 02:21:42 -03:00
waozi 6af10f4305 Integrate only the Apps compiler pin while retaining current public source 2026-10-27 02:17:15 -03:00
waozi ebc8678539 Use the Apps compiler linkage fix in the immutable Focal2.1.51 source 2026-10-27 02:17:15 -03:00
waozi a66e629d89 Let website deployments finish while new work continues 2026-10-27 02:06:14 -03:00
waozi 32a4fe7951 Record the trusted reference for fixed release publication 2026-10-27 01:55:28 -03:00
waozi 64a05aa0d7 Configure the pinned ARM64 Curl and scope the OpenStore upload key 2026-10-27 01:54:49 -03:00
waozi 4cc9eb0527 Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 01:54:49 -03:00
waozi e56a89e02d Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 01:39:44 -03:00
waozi 4eea7ea6a8 Use current GNU Make with the Focal target SDK 2026-10-27 01:39:43 -03:00
waozi dd4c75fdad Keep OpenStore repair and pending feature history together 2026-10-27 01:23:56 -03:00
waozi 0eade56b75 Trust only the GitHub workspace inside the Focal SDK container 2026-10-27 01:23:56 -03:00
waozi 64207c2ee0 Trust only the GitHub workspace inside the Focal SDK container 2026-10-27 01:23:56 -03:00
waozi 960f2970f4 Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 01:23:56 -03:00
waozi 179c8856f9 Retain the Focal 2.1.51 candidate without changing current source 2026-10-27 01:17:53 -03:00
waozi 381885ac0d Retain the immutable Focal 2.1.51 candidate alongside current master 2026-10-27 01:17:53 -03:00
waozi 882c1a5cad Build the phone-tested Breeze 2.1.51 application for the Focal OpenStore runtime 2026-10-27 01:17:52 -03:00
waozi 2f09d2b87d Use the published shared Profile leaderboard package 2026-10-27 01:14:30 -03:00
waozi 9644918631 Include the portable VM runner in the Focal runtime linkage fix 2026-10-27 01:11:25 -03:00
waozi 8bcd313c7e Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 01:11:25 -03:00
waozi 09ecd923b6 Keep OpenStore repair and pending feature history together 2026-10-27 01:11:25 -03:00
waozi 823ba12468 Include the portable VM runner in the Focal runtime linkage fix 2026-10-27 01:11:25 -03:00
waozi 9d27dca8f6 Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 01:07:57 -03:00
waozi 44b6a2fcad Keep OpenStore repair and pending feature history together 2026-10-27 01:07:57 -03:00
waozi 39c50f66d2 Require the exact phone-tested app content before OpenStore upload 2026-10-27 01:07:56 -03:00
waozi 922a6f1de1 Require the exact phone-tested app content before OpenStore upload 2026-10-27 01:07:56 -03:00
waozi dd09473bcd Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 01:06:41 -03:00
waozi eed7cf217c Pin the upstream Linux runtime linkage fix for Focal builds 2026-10-27 01:06:41 -03:00
waozi 1d09c705bc Keep OpenStore repair and pending feature history together 2026-10-27 01:06:41 -03:00
waozi 4d1efe0740 Pin the upstream Linux runtime linkage fix for Focal builds 2026-10-27 01:06:41 -03:00
waozi 0cdba05f53 Retain tested Breeze 2.1.51 release receipt with current CI repairs 2026-10-27 01:06:16 -03:00
waozi a84cd8afa8 Keep tested release and current development history 2026-10-27 01:06:16 -03:00
waozi a99db8da8c Merge tested Inner Breeze 2.1.51 release history 2026-10-27 01:05:48 -03:00
waozi b2e30beb3b Install native OpenSSL headers for the Ziran compiler bootstrap 2026-10-27 00:53:27 -03:00
waozi d74348c2e2 Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 00:53:27 -03:00
waozi efad4d26f1 Keep OpenStore repair and pending feature history together 2026-10-27 00:53:27 -03:00
waozi 20c046dd9a Install native OpenSSL headers for the Ziran compiler bootstrap 2026-10-27 00:53:27 -03:00
waozi fcb30aa9cd Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 00:43:44 -03:00
waozi 6dc330fa8b Keep OpenStore repair and pending feature history together 2026-10-27 00:43:44 -03:00
waozi fc00732f80 Keep the Ziran bootstrap native in the cross-compilation SDK 2026-10-27 00:43:41 -03:00
waozi b90a88ab86 Keep the Ziran bootstrap native in the cross-compilation SDK 2026-10-27 00:43:41 -03:00
waozi 4d7481f9ff Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 00:42:08 -03:00
waozi 455011da1a Keep OpenStore repair and pending feature history together 2026-10-27 00:42:08 -03:00
waozi cfcba405c4 Use the Focal Clickable SDK for Ubuntu Touch builds 2026-10-27 00:42:07 -03:00
waozi ac2152980e Use the Focal Clickable SDK for Ubuntu Touch builds 2026-10-27 00:42:07 -03:00
waozi daf68f0d26 Integrate the Focal target repair without publishing pending peer package versions 2026-10-27 00:39:42 -03:00
waozi b0c165f575 Keep OpenStore repair and pending feature history together 2026-10-27 00:39:42 -03:00
waozi 2f210aba03 Build Focal-compatible Ubuntu Touch packages and verify their ABI 2026-10-27 00:39:41 -03:00
waozi 1130e9d353 Build Focal-compatible Ubuntu Touch packages and verify their ABI 2026-10-27 00:39:41 -03:00
waozi 7cbd20ce2e Retain fixed habit source and pending peer work 2026-10-27 00:36:16 -03:00
waozi 4229a0d4b7 Retain tested Arcade first-start automation 2026-10-27 00:36:11 -03:00
waozi 4dcb907a4d Follow Apfelwurm title screen before verifying first play 2026-10-27 00:36:11 -03:00
waozi 943e9c3aeb Retain fixed habit source and pending peer work 2026-10-27 00:27:29 -03:00
waozi b6b5f1bcfe Retain the verified habit picker layout candidate 2026-10-26 23:57:59 -03:00
waozi b299484555 Keep habit link choices separate from the Done button 2026-10-26 23:57:59 -03:00
waozi f0a06a89d4 Retain the fixed habit editor candidate alongside ongoing feature work 2026-10-26 23:51:44 -03:00
waozi ec558927b1 Verify the Diary entry link persists with new writing icons 2026-10-26 23:51:44 -03:00
waozi c719f5b675 Keep OpenStore repair and pending feature history together 2026-10-26 23:50:47 -03:00
waozi d8f2bcd265 Link zlib in the Ubuntu Touch native package 2026-10-26 23:50:46 -03:00
waozi bc55cc6241 Move Inner Breeze leaderboard into the shared Profile 2026-10-26 23:47:03 -03:00
62 changed files with 759 additions and 277 deletions

No files matched your search

+11 -8
View File
@@ -23,7 +23,8 @@ permissions:
concurrency:
# A failed Release produces a skipped refresh, which must not cancel a push.
group: pages-${{ github.ref }}-${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success' && 'skipped' || 'deploy' }}
cancel-in-progress: true
# Finish the active deployment; newer pushes replace only the pending refresh.
cancel-in-progress: false
jobs:
build:
@@ -31,6 +32,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
env:
# Production follows the phone-verified release; previews test new source.
USE_RELEASED_WEB: ${{ github.event_name != 'pull_request' || inputs.released_web }}
steps:
- name: Checkout Repository
@@ -71,16 +75,16 @@ jobs:
PY
- name: Install Packages
if: ${{ !inputs.released_web }}
if: ${{ env.USE_RELEASED_WEB != 'true' }}
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set Up Emscripten
if: ${{ !inputs.released_web }}
if: ${{ env.USE_RELEASED_WEB != 'true' }}
uses: ./.github/actions/emscripten
- name: Download Released Web App
if: ${{ inputs.released_web }}
if: ${{ env.USE_RELEASED_WEB == 'true' }}
env:
GH_TOKEN: ${{ github.token }}
run: |
@@ -93,7 +97,7 @@ jobs:
test -s build/dist/web/index.wasm
- name: Web runner diagnostics
if: ${{ !inputs.released_web }}
if: ${{ env.USE_RELEASED_WEB != 'true' }}
run: |
set -euo pipefail
lscpu
@@ -107,7 +111,7 @@ jobs:
- name: Build Site
run: |
set -euo pipefail
if [ "$RELEASED_WEB" = "true" ]; then
if [ "$USE_RELEASED_WEB" = "true" ]; then
make package-unpackaged-assets
sh site/build.sh
else
@@ -127,10 +131,9 @@ jobs:
fi
env:
GH_TOKEN: ${{ github.token }}
RELEASED_WEB: ${{ inputs.released_web }}
- name: Upload Web diagnostics after a failed build
if: ${{ failure() && !inputs.released_web }}
if: ${{ failure() && env.USE_RELEASED_WEB != 'true' }}
uses: actions/upload-artifact@v4
with:
name: inbe-web-diagnostics
+195 -50
View File
@@ -19,22 +19,95 @@ on:
description: OpenStore channel
required: false
default: focal
release:
types: [published]
push:
tags:
- "v*"
# Release-created tags/events do not start another workflow with GITHUB_TOKEN.
workflow_run:
workflows: [Release]
types: [completed]
branches: [master]
permissions:
contents: read
concurrency:
group: openstore-${{ inputs.channel || 'focal' }}
cancel-in-progress: false
jobs:
publish:
source:
runs-on: ubuntu-24.04
timeout-minutes: 5
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
outputs:
revision: ${{ steps.select.outputs.revision }}
run: ${{ steps.select.outputs.run }}
steps:
- name: Select the immutable release source
id: select
env:
GH_TOKEN: ${{ github.token }}
REQUESTED_REVISION: ${{ inputs.revision || github.sha }}
OPENSTORE_CHANNEL: ${{ inputs.channel || 'focal' }}
run: |
python3 - <<'PY'
import datetime
import json
import os
from pathlib import Path
import re
import subprocess
def api(path):
return json.loads(subprocess.check_output(["gh", "api", path]))
def timestamp(value):
return datetime.datetime.fromisoformat(value.replace("Z", "+00:00"))
def finish(revision=""):
with open(os.environ["GITHUB_OUTPUT"], "a") as output:
output.write(f"revision={revision}\nrun={'true' if revision else 'false'}\n")
raise SystemExit(0)
revision = os.environ["REQUESTED_REVISION"]
if os.environ["GITHUB_EVENT_NAME"] == "workflow_run":
event = json.loads(Path(os.environ["GITHUB_EVENT_PATH"]).read_text())
repo = os.environ["GITHUB_REPOSITORY"]
release = api(f"repos/{repo}/releases/latest")
if release["draft"] or release["prerelease"] or timestamp(release["published_at"]) < timestamp(event["workflow_run"]["created_at"]):
print("This run did not publish a new stable release; no OpenStore update.")
finish()
match = re.fullmatch(r"v(\d+)\.(\d+)\.(\d+)", release["tag_name"])
assert match, "Expected a numeric published release"
version = tuple(map(int, match.groups()))
store = json.loads(subprocess.check_output([
"curl", "--fail", "--silent", "--show-error", "--retry", "3",
"https://open-store.io/api/v4/apps/inbe"]))
assert store.get("success"), "OpenStore metadata lookup failed"
for item in store["data"].get("revisions", []):
existing = re.fullmatch(r"(\d+)\.(\d+)\.(\d+)", item.get("version", ""))
if item.get("channel") == os.environ["OPENSTORE_CHANNEL"] and item.get("architecture") == "arm64" and existing and tuple(map(int, existing.groups())) >= version:
print("OpenStore already has this release or a newer one.")
finish()
revision = api(f"repos/{repo}/commits/{release['tag_name']}")["sha"]
assert re.fullmatch(r"[0-9a-f]{40}", revision), "An exact commit is required"
finish(revision)
PY
publish:
needs: source
if: needs.source.outputs.run == 'true'
runs-on: ubuntu-24.04
# The published focal channel must use Focal's ARM64 libc and libraries.
container: clickable/ci-20.04-arm64@sha256:c6227ffcdb2abb50101a8469dd2a8df3ffd9208e04a3e07e351db63d36bec5d6
defaults:
run:
shell: bash
timeout-minutes: 90
env:
OPENSTORE_API_KEY: ${{ secrets.OPENSTORE_API_KEY }}
DEBIAN_FRONTEND: noninteractive
# Ziran runs on the builder; only Click artifacts use the cross compiler.
CC: gcc
CXX: g++
OPENSTORE_APP_ID: inbe
OPENSTORE_CHANNEL: ${{ github.event.inputs.channel || 'focal' }}
CHANGELOG: ${{ github.event.inputs.changelog || github.event.release.name || github.event.release.tag_name || '' }}
@@ -42,14 +115,90 @@ jobs:
steps:
- name: Require an immutable source
env:
CANDIDATE: ${{ inputs.revision || github.sha }}
CANDIDATE: ${{ needs.source.outputs.revision }}
run: |
[[ "$CANDIDATE" =~ ^[0-9a-f]{40}$ ]] || { echo 'An exact commit is required'; exit 1; }
- name: Install the Focal build environment
run: |
set -euo pipefail
apt-get update
apt-get install -y --no-install-recommends \
build-essential binutils-aarch64-linux-gnu ca-certificates ccache \
click curl gcc-aarch64-linux-gnu git git-lfs jq make patchelf \
perl pkg-config tcl xz-utils zlib1g-dev libbz2-1.0 libffi7 liblzma5 \
libsqlite3-0 libssl-dev \
libdrm-dev:arm64 libegl1-mesa-dev:arm64 libgbm-dev:arm64 \
libgles2-mesa-dev:arm64 libsdl2-dev:arm64 libssl-dev:arm64 zlib1g-dev:arm64
apt-get install -y --no-install-recommends libwayland-bin \
libwayland-dev:arm64 libxkbcommon-dev:arm64 libpulse-dev:arm64 libdbus-1-dev:arm64
- name: Set up build Python for Focal
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
# Last upstream Actions build that supports Ubuntu 20.04.
python-version: '3.12.10'
- name: Install current build tools
run: |
# The project uses GNU Make 4.3+ function/comment parsing.
python3 -m pip install cmake==3.28.4 fonttools==4.58.5 gnumake==4.4.1
make --version
- name: Build Focal TLS libraries
run: |
set -euo pipefail
# The locked Curl requires OpenSSL 3. Build its current LTS for
# Focal instead of importing a newer distribution's libc.
tls_source="$RUNNER_TEMP/inbe-openssl"
mkdir -p "$tls_source"
curl --fail --location --retry 3 \
https://github.com/openssl/openssl/releases/download/openssl-3.5.9/openssl-3.5.9.tar.gz \
--output "$tls_source/source.tar.gz"
printf '%s %s\n' \
603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a \
"$tls_source/source.tar.gz" | sha256sum --check -
tar -xzf "$tls_source/source.tar.gz" -C "$tls_source"
cd "$tls_source/openssl-3.5.9"
./Configure linux-aarch64 --cross-compile-prefix=aarch64-linux-gnu- \
--prefix=/opt/inbe-openssl --libdir=lib --openssldir=/etc/ssl shared no-tests
make -j2 build_sw
make install_sw
cp LICENSE.txt /opt/inbe-openssl/lib/OpenSSL-LICENSE.txt
- name: Build Focal SDL with Wayland
run: |
set -euo pipefail
sdl_source="$RUNNER_TEMP/inbe-sdl2"
mkdir -p "$sdl_source"
curl --fail --location --retry 3 \
https://github.com/libsdl-org/SDL/releases/download/release-2.32.10/SDL2-2.32.10.tar.gz \
--output "$sdl_source/source.tar.gz"
printf '%s %s\n' \
5f5993c530f084535c65a6879e9b26ad441169b3e25d789d83287040a9ca5165 \
"$sdl_source/source.tar.gz" | sha256sum --check -
tar -xzf "$sdl_source/source.tar.gz" -C "$sdl_source"
unset PKG_CONFIG_PATH
export PKG_CONFIG_LIBDIR=/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig
cmake_bin="$(python3 -c 'import cmake; print(cmake.CMAKE_BIN_DIR + "/cmake")')"
"$cmake_bin" -S "$sdl_source/SDL2-2.32.10" -B "$sdl_source/build" \
-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 \
-DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/opt/inbe-sdl2 -DCMAKE_INSTALL_LIBDIR=lib \
-DSDL_SHARED=ON -DSDL_STATIC=OFF -DSDL_TEST=OFF \
-DSDL_WAYLAND=ON -DSDL_WAYLAND_SHARED=ON -DSDL_WAYLAND_LIBDECOR=OFF \
-DSDL_X11=ON -DSDL_KMSDRM=OFF -DSDL_OPENGL=OFF -DSDL_OPENGLES=ON \
-DSDL_PULSEAUDIO=ON -DSDL_ALSA=OFF
grep -q '^#define SDL_VIDEO_DRIVER_WAYLAND 1' "$sdl_source/build/SDL_config.h.intermediate"
"$cmake_bin" --build "$sdl_source/build" --parallel 2
"$cmake_bin" --install "$sdl_source/build"
cp "$sdl_source/SDL2-2.32.10/LICENSE.txt" /opt/inbe-sdl2/lib/SDL2-LICENSE.txt
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision || github.sha }}
ref: ${{ needs.source.outputs.revision }}
fetch-depth: 0
lfs: true
@@ -59,43 +208,12 @@ jobs:
- name: Scan Tracked Files and History
run: |
set -euo pipefail
# The SDK container runs under a different UID from the checkout.
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git ls-files -z >/dev/null
python3 scripts/check-secrets.py --working-tree
python3 scripts/check-secrets.py --history
- name: Install build dependencies
run: |
sudo dpkg --add-architecture arm64
# Ubuntu's archive/security mirrors only carry amd64/i386; arm64
# lives on ports.ubuntu.com. Pin the stock deb822 sources to amd64
# and add a ports source, otherwise apt-get update 404s on
# binary-arm64 and the install step fails.
sudo sed -i 's/^Types: deb$/Types: deb\nArchitectures: amd64 i386/' /etc/apt/sources.list.d/ubuntu.sources
printf 'Types: deb\nURIs: http://ports.ubuntu.com/ubuntu-ports\nSuites: noble noble-updates noble-backports noble-security\nComponents: main universe restricted multiverse\nArchitectures: arm64\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' | sudo tee /etc/apt/sources.list.d/ports-arm64.sources >/dev/null
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
binutils-aarch64-linux-gnu \
ccache \
click \
cmake \
curl \
gcc-aarch64-linux-gnu \
jq \
make \
patchelf \
pkg-config \
python3-fonttools \
tcl \
zlib1g-dev \
libcurl4-openssl-dev:arm64 \
libdrm-dev:arm64 \
libegl-dev:arm64 \
libgbm-dev:arm64 \
libgles-dev:arm64 \
libsdl2-dev:arm64 \
libssl-dev:arm64 \
zlib1g-dev:arm64
- name: Build Click package
run: |
set -euo pipefail
@@ -105,19 +223,42 @@ jobs:
export AARCH64_CC="$(command -v aarch64-linux-gnu-gcc)"
export AARCH64_AR="$(command -v aarch64-linux-gnu-ar)"
export AARCH64_RANLIB="$(command -v aarch64-linux-gnu-ranlib)"
export AARCH64_PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig
export OPENSSL_ROOT_DIR=/opt/inbe-openssl
# Cross builds cannot autodetect the device's CA store.
export CMAKE_TOOLCHAIN_FILE="$RUNNER_TEMP/inbe-focal-arm64.cmake"
cat > "$CMAKE_TOOLCHAIN_FILE" <<'CMAKE'
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc)
set(OPENSSL_ROOT_DIR /opt/inbe-openssl CACHE PATH "Focal-built TLS")
set(CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt CACHE FILEPATH "Device CA bundle")
set(CURL_CA_PATH /etc/ssl/certs CACHE PATH "Device CA directory")
CMAKE
unset PKG_CONFIG_PATH
export AARCH64_PKG_CONFIG_PATH=/opt/inbe-openssl/lib/pkgconfig:/opt/inbe-sdl2/lib/pkgconfig:/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig
export PKG_CONFIG_LIBDIR="$AARCH64_PKG_CONFIG_PATH"
export AARCH64_RAY_SDL_CFLAGS="$(pkg-config --cflags sdl2)"
export AARCH64_RAY_SDL_LDLIBS="$(pkg-config --libs sdl2)"
export AARCH64_RAY_GL_CFLAGS="$(pkg-config --cflags libdrm gbm egl glesv2)"
export AARCH64_RAY_GL_LDLIBS="$(pkg-config --libs libdrm gbm egl glesv2)"
export AARCH64_RAY_CFLAGS="$AARCH64_RAY_SDL_CFLAGS $AARCH64_RAY_GL_CFLAGS"
export AARCH64_RAY_LDLIBS="$AARCH64_RAY_SDL_LDLIBS $AARCH64_RAY_GL_LDLIBS"
export AARCH64_RAY_SDL_INCLUDE_DIR=/usr/include/SDL2
export AARCH64_KRYON_CURL_CFLAGS="$(pkg-config --cflags libcurl)"
export AARCH64_KRYON_CURL_LDLIBS="$(pkg-config --libs libcurl)"
export AARCH64_CLICK_RUNTIME_LIBS="/usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 /usr/lib/aarch64-linux-gnu/libcurl.so.4 /usr/lib/aarch64-linux-gnu/libssl.so.3 /usr/lib/aarch64-linux-gnu/libcrypto.so.3 /usr/lib/aarch64-linux-gnu/libdrm.so.2 /usr/lib/aarch64-linux-gnu/libgbm.so.1 /usr/lib/aarch64-linux-gnu/libEGL.so.1 /usr/lib/aarch64-linux-gnu/libGLESv2.so.2 /usr/lib/aarch64-linux-gnu/libz.so.1"
make CLICK_ARCH=arm64 click
# Search bundled TLS and SDL before the SDK's older system copies.
export AARCH64_RAY_LDLIBS="-L/opt/inbe-openssl/lib $AARCH64_RAY_SDL_LDLIBS $AARCH64_RAY_GL_LDLIBS"
export AARCH64_RAY_SDL_INCLUDE_DIR="$(pkg-config --variable=includedir sdl2)/SDL2"
click_curl_dir="$PWD/vendor-builds/click/arm64/curl"
export AARCH64_KRYON_CURL_CFLAGS="-DCURL_STATICLIB -I$click_curl_dir/include"
export AARCH64_KRYON_CURL_LDLIBS="$click_curl_dir/lib/libcurl.a -L/opt/inbe-openssl/lib -lssl -lcrypto -lz -lpthread"
# The framework supplies graphics libraries for the device's GPU.
atomic_runtime="$("$AARCH64_CC" -print-file-name=libatomic.so.1)"
export AARCH64_CLICK_RUNTIME_LIBS="$(pkg-config --variable=libdir sdl2)/libSDL2-2.0.so.0 /opt/inbe-sdl2/lib/SDL2-LICENSE.txt /opt/inbe-openssl/lib/libssl.so.3 /opt/inbe-openssl/lib/libcrypto.so.3 /opt/inbe-openssl/lib/OpenSSL-LICENSE.txt $atomic_runtime /usr/lib/aarch64-linux-gnu/libz.so.1"
for runtime_file in $AARCH64_CLICK_RUNTIME_LIBS; do
test -f "$runtime_file"
done
# Make otherwise prefers the SDK's older /usr/bin/cmake.
export CMAKE="$(python3 -c 'import cmake; print(cmake.CMAKE_BIN_DIR + "/cmake")')"
"$CMAKE" --version
make CMAKE="$CMAKE" LDFLAGS="-Wl,--gc-sections -s -L/opt/inbe-openssl/lib" CLICK_ARCH=arm64 click
python3 scripts/check-click-abi.py build/dist/click/*.click
- name: Show package contents
run: |
@@ -143,7 +284,11 @@ jobs:
- name: Publish to OpenStore
if: ${{ !inputs.build_only }}
env:
OPENSTORE_API_KEY: ${{ secrets.OPENSTORE_API_KEY }}
run: |
set -euo pipefail
version="$(python3 scripts/check-version.py --print-version)"
python3 scripts/check-phone-check.py "$version" --revision "$(git rev-parse HEAD)"
click_file="$(ls -t build/dist/click/*.click | head -1)"
scripts/publish-openstore.sh "$click_file"
+5
View File
@@ -1,5 +1,10 @@
# Changelog
## [2.1.52] - 2026-10-27
- Set an account alias with capitals, an @ or spaces; a taken alias now says so.
- Restore audio playback and account sync on Ubuntu Touch.
## [2.1.51] - 2026-10-27
- Open Link to reliably while choosing a new habit's icon.
+2
View File
@@ -34,6 +34,8 @@ account to sync across devices.
changing your app. Offline commands work without an AI connection.
- **Your apps:** arrange Apps as a list or grid, choose colours and icons,
listen to ambient Radio, and explore Arcade games and achievements.
- **Profile:** compare practice and game rankings with friends in Leaderboard.
Only installed apps, ranked practices and installed games appear there.
## A look inside
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## [1.3.16] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
## [1.3.15] - 2026-10-26
- Maintenance release for Inner Breeze 2.1.51.
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## [1.3.7] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
## [1.3.6] - 2026-10-27
- Open Link to reliably with the expanded icon picker.
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## [2.1.52] - 2026-10-27
- Bring Lumi 1.5.19, Habits 1.3.7, Practices 1.6.1, Lists 1.1.20, Diary 1.3.16 and Leaderboard 1.0.21 for Inner Breeze 2.1.52.
## [2.1.51] - 2026-10-26
- Bring Lumi 1.5.18, Habits 1.3.6, Practices 1.6.0, Lists 1.1.19, Diary 1.3.15 and Leaderboard 1.0.20 for Inner Breeze 2.1.51.
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## [1.0.21] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
## [1.0.20] - 2026-10-26
- Maintenance release for Inner Breeze 2.1.51.
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## [1.1.20] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
## [1.1.19] - 2026-10-26
- Maintenance release for Inner Breeze 2.1.51.
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## [1.5.19] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
## [1.5.18] - 2026-10-26
- Maintenance release for Inner Breeze 2.1.51.
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## [1.6.1] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
## [1.6.0] - 2026-10-27
- Offer a linked habit after the first saved session of a practice.
+23 -23
View File
@@ -1,66 +1,66 @@
{
"host_api": 38,
"host_api": 39,
"oldest_host_api": 12,
"package_format": "zx",
"module_api": 2,
"apps": {
"inbe": {
"id": "inbe",
"version": "2.1.51",
"sequence": 48,
"version": "2.1.52",
"sequence": 49,
"bundled": true,
"host_api": 38,
"release": "2.1.51"
"host_api": 39,
"release": "2.1.52"
},
"habits": {
"id": "inbe.habits",
"version": "1.3.6",
"sequence": 29,
"version": "1.3.7",
"sequence": 30,
"bundled": true,
"host_api": 38,
"oldest_host_api": 30,
"release": "2.1.51"
"release": "2.1.52"
},
"practices": {
"id": "inbe.practices",
"version": "1.6.0",
"sequence": 29,
"version": "1.6.1",
"sequence": 30,
"bundled": true,
"host_api": 37,
"oldest_host_api": 31,
"release": "2.1.51"
"release": "2.1.52"
},
"lists": {
"id": "inbe.lists",
"version": "1.1.19",
"sequence": 27,
"version": "1.1.20",
"sequence": 28,
"bundled": true,
"host_api": 27,
"release": "2.1.51"
"release": "2.1.52"
},
"diary": {
"id": "inbe.diary",
"version": "1.3.15",
"sequence": 32,
"version": "1.3.16",
"sequence": 33,
"bundled": true,
"host_api": 21,
"release": "2.1.51"
"release": "2.1.52"
},
"lumi": {
"id": "inbe.lumi",
"version": "1.5.18",
"sequence": 36,
"version": "1.5.19",
"sequence": 37,
"bundled": true,
"host_api": 20,
"release": "2.1.51"
"release": "2.1.52"
},
"leaderboard": {
"id": "inbe.leaderboard",
"version": "1.0.20",
"sequence": 21,
"version": "1.0.21",
"sequence": 22,
"bundled": true,
"host_api": 25,
"release": "2.1.51"
"release": "2.1.52"
}
},
"node_apps": {
+10
View File
@@ -964,6 +964,16 @@ A release names one fixed commit while peers keep working on master:
Subsequent master commits cannot cancel its release. Only the workflow
creates the release tag after all required gates pass.
For a fixed release, publish the `release_commit` from
`build/release-candidate.json` at its `release_ref` before dispatching the
workflow: `git push origin RELEASE_COMMIT:refs/heads/release-candidates/X.Y.Z`.
Keep that reference on the tested commit; do not move an existing candidate
to different content. The checkout stays on master. GitHub requires a branch
head or tag reference when its release token targets an older commit with
different workflow files, so the candidate reference lets the workflow publish
that exact tested snapshot with its existing permissions. It does not create
a release tag or grant new credentials.
When an earlier Release run already passed every test, platform and
F-Droid reproducibility job for the source, supply its run ID as `reuse_run`.
The identical source must also pass CI, including browser add-on smoke tests.
+2 -2
View File
@@ -67,8 +67,8 @@ android {
minSdk 21
targetSdk 36
testInstrumentationRunner "android.test.InstrumentationTestRunner"
versionCode 188
versionName "2.1.51"
versionCode 189
versionName "2.1.52"
manifestPlaceholders = [
inbeAppLabel: "Inner Breeze",
inbeUsesCleartextTraffic: "false"
@@ -0,0 +1,2 @@
- Set an account alias with capitals, an @ or spaces; a taken alias now says so.
- Restore audio playback and account sync on Ubuntu Touch.
+5
View File
@@ -7497,3 +7497,8 @@ Načítání obrázků
---
[app_loading_apps]
Otevírání aplikací
---
[leaderboard_refresh_failed]
Žebříček se nepodařilo aktualizovat.
---
+5
View File
@@ -7491,3 +7491,8 @@ Bilder werden geladen
---
[app_loading_apps]
Apps werden geöffnet
---
[leaderboard_refresh_failed]
Die Rangliste konnte nicht aktualisiert werden.
---
+5
View File
@@ -7515,3 +7515,8 @@ Loading pictures
---
[app_loading_apps]
Opening apps
---
[leaderboard_refresh_failed]
Could not refresh the leaderboard.
---
+5
View File
@@ -7491,3 +7491,8 @@ Cargando imágenes
---
[app_loading_apps]
Abriendo aplicaciones
---
[leaderboard_refresh_failed]
No se pudo actualizar la clasificación.
---
+5
View File
@@ -7479,3 +7479,8 @@ Chargement des images
---
[app_loading_apps]
Ouverture des applications
---
[leaderboard_refresh_failed]
Impossible de mettre à jour le classement.
---
+5
View File
@@ -7480,3 +7480,8 @@ Memuat gambar
---
[app_loading_apps]
Membuka aplikasi-aplikasi
---
[leaderboard_refresh_failed]
Papan peringkat tidak dapat diperbarui.
---
+5
View File
@@ -7480,3 +7480,8 @@ Caricamento immagini
---
[app_loading_apps]
Apertura delle app
---
[leaderboard_refresh_failed]
Impossibile aggiornare la classifica.
---
+5
View File
@@ -7476,3 +7476,8 @@ Lumi や日記など、Inner Breeze 内のアプリを waozi.xyz から自動で
---
[app_loading_apps]
アプリを読み込み中
---
[leaderboard_refresh_failed]
ランキングを更新できませんでした。
---
+5
View File
@@ -7486,3 +7486,8 @@ Lumi, 일기 등 Inner Breeze 안의 앱을 waozi.xyz에서 자동으로 업데
---
[app_loading_apps]
앱 불러오는 중
---
[leaderboard_refresh_failed]
순위표를 새로 고칠 수 없습니다.
---
+5
View File
@@ -7489,3 +7489,8 @@ Carregando imagens
---
[app_loading_apps]
Abrindo aplicativos
---
[leaderboard_refresh_failed]
Não foi possível atualizar a classificação.
---
+5
View File
@@ -7485,3 +7485,8 @@ Inner Breeze обновлён до версии %s.
---
[app_loading_apps]
Открытие приложений
---
[leaderboard_refresh_failed]
Не удалось обновить таблицу лидеров.
---
+5
View File
@@ -7491,3 +7491,8 @@ Inner Breeze 已更新至 %s 版本。
---
[app_loading_apps]
正在打开各个应用
---
[leaderboard_refresh_failed]
无法刷新排行榜。
---
+27 -2
View File
@@ -23,6 +23,30 @@ GENERATED_CLICK_C = $(shell find $(CLICK_GEN_DIR) -type f -name '*.c' 2>/dev/nul
CLICK_APP_INCLUDE = $(filter-out -iquote$(KRY_GEN_DIR)%,$(APP_INCLUDE)) \
-iquote$(CLICK_GEN_DIR) \
$(foreach dir,$(sort $(dir $(ZI_SRCS))),-iquote$(CLICK_GEN_DIR)/$(dir))
CLICK_CURL_BUILD_DIR := $(VENDOR_BUILD_DIR)/click/$(CLICK_ARCH)/curl
CLICK_CURL_A := $(CLICK_CURL_BUILD_DIR)/lib/libcurl.a
# Focal's system curl predates WebSocket support. Build the locked curl for
# the same target as the app rather than borrowing a newer distribution's ABI.
$(CLICK_CURL_A): $(KRYON_CURL_DIR)/CMakeLists.txt mk/packaging.mk
$(CMAKE) -S $(KRYON_CURL_DIR) -B $(CLICK_CURL_BUILD_DIR) \
-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 \
-DCMAKE_C_COMPILER=$(AARCH64_CC) \
-DCMAKE_AR=$(AARCH64_AR) -DCMAKE_RANLIB=$(AARCH64_RANLIB) \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=$(abspath $(CLICK_CURL_BUILD_DIR)) \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON \
-DCURL_USE_OPENSSL=ON -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF \
-DCURL_USE_GSSAPI=OFF -DUSE_NGHTTP2=OFF -DUSE_LIBIDN2=OFF \
-DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON -DCURL_DISABLE_SMB=ON \
-DENABLE_CURL_MANUAL=OFF -DBUILD_EXAMPLES=OFF \
-DBUILD_LIBCURL_DOCS=OFF -DBUILD_MISC_DOCS=OFF -DBUILD_TESTING=OFF \
$(KRYON_CURL_EXTRA_CMAKE_FLAGS)
$(CMAKE) --build $(CLICK_CURL_BUILD_DIR) --target libcurl_static --parallel 2
$(CMAKE) --install $(CLICK_CURL_BUILD_DIR)
@sh $(CLICK_CURL_BUILD_DIR)/bin/curl-config --protocols | grep -Eq '(^|[[:space:]])WS([[:space:]]|$$)'
@sh $(CLICK_CURL_BUILD_DIR)/bin/curl-config --protocols | grep -Eq '(^|[[:space:]])WSS([[:space:]]|$$)'
$(CLICK_GEN_STAMP): Makefile mk/packaging.mk ziran.lock $(ZI2C_BIN) $(ZI_SRCS) $(KRYON_ZI_MODULES) $(GAME2D_MODULES) $(DAOCHI_CLIENT_MODULES) $(wildcard build/packages/entity/src/*.zi) $(ZIRAN_STD_MODULES) $(SYNC_RETRY_SOURCE) | build-laws zi-check
rm -rf $(CLICK_GEN_DIR)
@@ -78,8 +102,9 @@ $(CLICK_LIBOQS_A): $(LIBOQS_DIR)/CMakeLists.txt mk/sync.mk Makefile
-DOQS_MINIMAL_BUILD="$(KRYON_LIBOQS_MINIMAL_BUILD)"
$(CMAKE) --build $(CLICK_LIBOQS_BUILD_DIR) --target oqs
$(CLICK_BIN): Makefile mk/packaging.mk $(APP_SRCS) $(CLICK_GEN_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_FILES) $(EMBEDDED_ASSETS_C) $(CLICK_RAYLIB_A) $(CLICK_LIBOQS_A) | $(CLICK_BIN_DIR)
$(CLICK_BIN): Makefile mk/packaging.mk $(APP_SRCS) $(CLICK_GEN_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_FILES) $(EMBEDDED_ASSETS_C) $(CLICK_RAYLIB_A) $(CLICK_LIBOQS_A) $(CLICK_CURL_A) | $(CLICK_BIN_DIR)
$(AARCH64_CC) $(CLICK_CFLAGS) \
-DCURL_STATICLIB -I$(CLICK_CURL_BUILD_DIR)/include \
$(CLICK_APP_INCLUDE) \
$(KRYON_INCLUDE) \
$(SQLITE_INCLUDE) \
@@ -97,7 +122,7 @@ $(CLICK_BIN): Makefile mk/packaging.mk $(APP_SRCS) $(CLICK_GEN_STAMP) $(SQLITE_S
$(CLICK_RAYLIB_A) \
$(CLICK_LIBOQS_A) \
$(AARCH64_RAY_LDLIBS) \
$(AARCH64_KRYON_CURL_LDLIBS) \
$(CLICK_CURL_A) -lssl -lcrypto \
-lm -lpthread -ldl -lrt -latomic -lz \
$(LDFLAGS)
@if command -v patchelf >/dev/null; then \
+1 -1
View File
@@ -1,5 +1,5 @@
Package: inbe.waozi
Version: 2.1.51
Version: 2.1.52
Architecture: arm64
Maintainer: Waozi <[email protected]>
Click-Version: 0.4
+1 -1
View File
@@ -1,4 +1,4 @@
{
"policy_groups": [],
"policy_groups": ["audio", "networking"],
"policy_version": 20.04
}
+1 -1
View File
@@ -28,7 +28,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.51" date="2026-10-27"/>
<release version="2.1.52" date="2026-10-27"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "inbe",
"title": "Inner Breeze",
"version": "2.1.51",
"version": "2.1.52",
"architecture": "arm64",
"framework": "ubuntu-sdk-20.04",
"description": "Syncable breathing, meditation, and habit practice app.",
+1 -1
View File
@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Inner Breeze",
"short_name": "Inbe",
"version": "2.1.51",
"version": "2.1.52",
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
"permissions": [
"contextMenus"
+1 -1
View File
@@ -22,7 +22,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.51" date="2026-10-27"/>
<release version="2.1.52" date="2026-10-27"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -22,7 +22,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.51" date="2026-10-27"/>
<release version="2.1.52" date="2026-10-27"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -6,7 +6,7 @@ description: |
meditation, and habit tracking with visual and audio cues, meditation
timers, habit counters, session history, and optional sync.
version: '2.1.51'
version: '2.1.52'
license: BSD-3-Clause
base: core22
confinement: strict
+42
View File
@@ -0,0 +1,42 @@
{
"schema": 2,
"version": "2.1.52",
"app_tree": "620ced935953a53f8a23e862779c23b7baa9c97b2e0694ba4bc5ca9d91927353",
"source_commit": "82383c3d5dc3dba4e3800f209037796805c19e67",
"uncommitted": [],
"apk": {
"sha256": "5f0595f74d1e3e9b53186ac0769f846fbc5a3ccab6efbf642a652cc455e9fb0b",
"package": "xyz.waozi.inbe.verification",
"version_code": 189,
"version_name": "2.1.52"
},
"device": {
"model": "moto e6 play",
"android": "9"
},
"practice": {
"name": "Wim Hof",
"seconds": 59.49,
"frames": 3435,
"refresh_hz": 58.4,
"fps": 57.7,
"late_percent": 0.03,
"p95_frame_ms": 17.4,
"worst_frame_ms": 34.6,
"resume_layout_shift": 0.7
},
"limits": {
"minimum_refresh_share": 0.94,
"maximum_late_percent": 3.0,
"maximum_frame_ms": 250.0,
"maximum_resume_layout_shift": 2.0
},
"checks": [
"installed without clearing existing data",
"launch",
"Wim Hof frame timing",
"background and resume"
],
"passed": true,
"checked_at": "2026-10-27T08:24:36+00:00"
}
+56
View File
@@ -0,0 +1,56 @@
#!/usr/bin/env python3
"""Reject Click binaries that require a newer runtime than their framework."""
import argparse
import json
from pathlib import Path
import re
import subprocess
import tempfile
def verify(package):
with tempfile.TemporaryDirectory(prefix="click-abi-") as temporary:
root = Path(temporary)
subprocess.run(["dpkg-deb", "-x", str(package), str(root)], check=True)
subprocess.run(["dpkg-deb", "-e", str(package), str(root / "DEBIAN")], check=True)
manifest = json.loads((root / "DEBIAN/manifest").read_text())
if manifest["framework"] != "ubuntu-sdk-20.04" or manifest["architecture"] != "arm64":
raise ValueError("expected the ARM64 ubuntu-sdk-20.04 package")
policy_file = manifest["hooks"]["inbe"]["apparmor"]
policy = json.loads((root / policy_file).read_text())
if not {"audio", "networking"}.issubset(policy.get("policy_groups", [])):
raise ValueError("Ubuntu Touch audio and account sync require audio/networking policies")
for name in ("libEGL.so.1", "libGLESv2.so.2", "libGLdispatch.so.0"):
if (root / "usr/lib" / name).exists():
raise ValueError(f"{name}: use the framework's device graphics driver")
if not (root / "usr/lib/libatomic.so.1").is_file():
raise ValueError("package must include the target compiler's libatomic runtime")
checked = 0
for path in sorted(root.rglob("*")):
if not path.is_file() or path.is_symlink():
continue
with path.open("rb") as stream:
if stream.read(4) != b"\x7fELF":
continue
relative = path.relative_to(root)
header = subprocess.check_output(["readelf", "-h", str(path)], text=True)
if not re.search(r"Machine:\s+AArch64\b", header):
raise ValueError(f"{relative}: expected an AArch64 ELF")
versions = subprocess.check_output(["readelf", "--version-info", str(path)], text=True)
required = [tuple(map(int, match.split(".")))
for match in re.findall(r"\bGLIBC_(\d+\.\d+(?:\.\d+)?)\b", versions)]
newest = max(required, default=(0, 0))
if newest > (2, 31):
raise ValueError(f"{relative}: GLIBC_{'.'.join(map(str, newest))} exceeds Focal's 2.31")
print(f"{relative}: ARM64, newest GLIBC_{'.'.join(map(str, newest))}")
checked += 1
if not checked:
raise ValueError("package contains no ELF executables or libraries")
print(f"Click ABI: {checked} ELF files match the Focal ARM64 framework")
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("package", type=Path)
verify(parser.parse_args().package.resolve())
+10 -2
View File
@@ -35,7 +35,12 @@ import tempfile
import time
ROOT = Path(__file__).resolve().parents[1]
READY_STAMP = ROOT / "build/release-ready/stamp.json"
# RELEASE_READY_OUTPUT names a separate release-ready run's outputs, as in
# scripts/release-ready.sh.
READY_OUTPUT = os.environ.get("RELEASE_READY_OUTPUT", "build/release-ready")
if not re.fullmatch(r"build/release-ready(-[a-z0-9][a-z0-9-]*)?", READY_OUTPUT):
raise SystemExit("RELEASE_READY_OUTPUT must be build/release-ready-NAME")
READY_STAMP = ROOT / READY_OUTPUT / "stamp.json"
SUBJECT = "Release Inner Breeze {version}"
# What ./update_version.sh writes; only these may join the release commit.
VERSION_FILES = ("droid/app/build.gradle", "src/core/version.h", "src/core/version.zi", "windows/inbe.rc",
@@ -279,7 +284,8 @@ def fixed_release_commit(base, version, details):
output = ROOT / "build/release-candidate.json"
output.parent.mkdir(parents=True, exist_ok=True)
output.write_text(json.dumps(dict(version=version, source_commit=base,
release_commit=release, master_commit=target), indent=2) + "\n")
release_commit=release, master_commit=target,
release_ref=f"refs/heads/release-candidates/{version}"), indent=2) + "\n")
return release
raise Refused("master advanced repeatedly; the immutable release object is saved and no peer work was changed")
@@ -320,6 +326,8 @@ def release_fixed(args):
release = fixed_release_commit(revision, version, details)
gate.validate(ROOT, version, release)
print("Fixed release commit prepared; master and peer working files are preserved. Nothing was pushed.")
print(f"Before dispatching Release, publish its immutable candidate reference: "
f"git push origin {release}:refs/heads/release-candidates/{version}")
return 0
+5 -2
View File
@@ -103,7 +103,10 @@ export async function verifyMusicAcrossTabs({ evaluate, click, scroll, resize, c
await settle();
const scrollableAction = action === 0 || action === 1 || (action >= 2 && action <= 5) || action === 8;
let point;
for (let attempt = 0; attempt < 4; attempt++) {
// The last attempt never scrolls: a click must use a position read after
// the list's last move. Apps the node offers can lengthen the list.
const attempts = 6;
for (let attempt = 0; attempt < attempts; attempt++) {
// Entering Audio can suspend the first draw while cue files decode.
// Wait for that draw and its actual control before choosing a position.
const deadline = Date.now() + 10000;
@@ -136,7 +139,7 @@ export async function verifyMusicAcrossTabs({ evaluate, click, scroll, resize, c
await delay(600);
continue;
}
if (point.rawX < 0 || point.rawY < 0 ||
if (point.rawX < 0 || point.rawY < 0 || attempt === attempts - 1 ||
(!scrollableAction || point.y <= point.bottom * 0.75)) break;
await scroll(point.x, point.bottom * 0.6, point.y - point.bottom * 0.65 + 100);
await delay(600);
+23 -1
View File
@@ -2,6 +2,8 @@
// keys and specialized screens behind its native host services.
Entity :: #import "entity/model";
#import "entity/dew_model"
#import "entity/leaderboard_model"
#import, file "../screens/leaderboard_screen.zi";
Provider :: #import "entity/native_management";
#import "kryon/app_context_host"
Portable :: #import "kryon/app_protocol";
@@ -51,6 +53,7 @@ entity_inner_breeze: bool;
entity_reload_after_route: bool;
entity_account_route: bool;
entity_snapshot: string;
entity_leaderboard_route: bool;
InbeEntityRead :: (app: *InnerBreeze) -> string {
Entity.EntityFree(entity_document)
@@ -138,7 +141,7 @@ EntityHostAllows :: (context: *void, name: string) -> bool {
return name == "ReadStoreHost" || name == "WriteStoreHost" ||
name == "AppLocaleHost" || name == "ClipboardCopyHost" ||
name == "AppServiceHost" || name == "entity.management" || name == "entity.text_height" ||
name == "entity.achievements" || name == "entity.activity" || (name == "entity.dew" && DewAvailable())
name == "entity.achievements" || name == "entity.activity" || name == LEADERBOARD_SERVICE || (name == "entity.dew" && DewAvailable())
}
// The node-confirmed Dew account and Inner Breeze's own summaries for the
@@ -245,6 +248,10 @@ EntityHostText :: (text: string) -> HostValue {
}
EntityHostLocale :: (key: string) -> string {
if key == "leaderboard_title" || key == "leaderboard_refresh_failed" || key == "profile_friends_title" ||
key == "profile_no_leaderboard_data" || key == "profile_updating_status" {
return LocaleText(key)
}
if key == "achievements_title" || (key.count >= 12 && key[:12] == "achievement_") {
return LocaleText(key)
}
@@ -310,6 +317,10 @@ EntityHostCall :: (context: *void, module: *u8, function: *u8,
arguments: *HostValue, count: s32, result: *HostValue) -> s32 {
app := cast(*InnerBreeze)context
name := TextFromCString(function)
if name == "AppServiceHost" && count == 2 && AppArgumentText(arguments[0]) == LEADERBOARD_SERVICE {
result.* = EntityHostText(InbeLeaderboardSnapshot(app, AppArgumentText(arguments[1])))
return 1
}
if AchievementEntityCall(cast(*void)app, name, arguments, count, result) {
return 1
}
@@ -396,6 +407,11 @@ EntityHostFrame :: (app: *InnerBreeze, bounds: Rectangle) -> bool {
unused AppContextRun(*entity_context, Portable.APP_COMMAND)
}
entity_account_route = account_route
if entity_leaderboard_route {
entity_context.command = "leaderboard"
unused AppContextRun(*entity_context, Portable.APP_COMMAND)
entity_leaderboard_route = false
}
entity_context.session = app.ui.session
entity_context.bounds = bounds
entity_context.dark = app.dark_mode != 0
@@ -457,4 +473,10 @@ EntityHostReset :: () {
entity_inner_breeze = false
entity_account_route = false
entity_reload_after_route = true
entity_leaderboard_route = false
}
#program_export
EntityHostOpenLeaderboard :: () {
entity_leaderboard_route = true
}
+4 -4
View File
@@ -7,19 +7,19 @@ using AppNavRoute;
// Storage follows the app catalog; there is no separate favorites quota.
// The bundled apps, then one route for each slot of an app the node offers.
LAUNCHER_APP_COUNT :: 14
LAUNCHER_APP_COUNT :: 13
LauncherRoutes :: () -> [LAUNCHER_APP_COUNT]s32 {
// Leaderboard comes last of the bundled apps, so adding it moved none.
// The leaderboard belongs to the permanent Profile control.
return .{APP_NAV_ROUTE_DIARY, APP_NAV_ROUTE_HABITS,
APP_NAV_ROUTE_ELIST, APP_NAV_ROUTE_LUMI, APP_NAV_ROUTE_PRACTICE,
APP_NAV_ROUTE_LEADERBOARD, AppNavNodeRoute(0), AppNavNodeRoute(1),
AppNavNodeRoute(0), AppNavNodeRoute(1),
AppNavNodeRoute(2), AppNavNodeRoute(3), AppNavNodeRoute(4),
AppNavNodeRoute(5), AppNavNodeRoute(6), AppNavNodeRoute(7)}
}
// A new profile pins Lumi, Habits and Practice in this order. Lists and
// Leaderboard are also preinstalled and appear below the pinned section.
// Diary are also preinstalled and appear below the pinned section.
LauncherDefaults :: (routes: []s32) -> s32 {
defaults: [3]s32 = .{APP_NAV_ROUTE_LUMI,
APP_NAV_ROUTE_HABITS, APP_NAV_ROUTE_PRACTICE}
+1 -1
View File
@@ -1,5 +1,5 @@
// Generated from apps/versions.json. This host runs packages built for host
// interfaces from the oldest to the current one; module interfaces must match.
PackageHostAPI :: 38
PackageHostAPI :: 39
PackageHostAPIOldest :: 12
PackageModuleAPI :: 2
+11
View File
@@ -380,6 +380,17 @@ NodeInstalledVisible :: (entry: *NodeInstalledLeaf) -> bool {
return NodeTreeState(null, NodeTreeAccount(), *entry.identity, *state) && state.installed
}
// A retained game score does not prove its app is still installed.
NodeAppInstalledIdentity :: (root: string, id: string) -> bool {
for entry: node_installed_leaves {
if TextUntilNul(entry.root[:]) == root && TextUntilNul(entry.identity.id[:]) == id &&
NodeInstalledVisible(*entry) {
return true
}
}
return false
}
// Keep independent verified copies for each installed root, and project one
// visible definition per identity. Removing one root never hides another.
NodeInstalledRepresentative :: (at: s64) -> bool {
+16 -1
View File
@@ -59,6 +59,8 @@ using HostValueKind;
// its own instance and never overwrites a live slot or persists its handles.
node_tree_hosts: [NodeAppSlots * 2]AppHost;
node_tree_validating: bool;
node_tree_profile_requested: bool;
node_tree_profile_account: [65]u8;
node_tree_widget_node: *AppNode;
NodeTreeImage :: struct {
path: string
@@ -164,7 +166,7 @@ NodeTreeAllows :: (context: *void, node: *AppNode, name: string) -> bool {
return false
}
if name == "AppServiceHost" || name == "entity.records" || name == "entity.dew" || name == PublicationsService || name == "leaderboard" ||
name == "arcade.navigation" || name == "tile_map.sampling" { return true }
name == "arcade.navigation" || name == "entity.profile" || name == "tile_map.sampling" { return true }
if name == "AppRecordHost" || name == "SaveAppRecordHost" || name == "AppLocaleHost" ||
name == "SmoothFramesHost" || name == "ClipboardCopyHost" || name == "ReadStoreHost" ||
name == "WriteStoreHost" || name == "AppNowHost" || name == "AppLocalOffsetHost" ||
@@ -193,6 +195,12 @@ NodeTreeCall :: (context: *void, node: *AppNode, module: *u8, function: *u8,
}
if name == "AppServiceHost" && count == 2 && HostScalarValid(arguments[0], "string", cast(s32)HostString) &&
HostScalarValid(arguments[1], "string", cast(s32)HostString) {
if AppArgumentText(arguments[0]) == "entity.profile" && AppArgumentText(arguments[1]) == "open" &&
!node_tree_validating && !node_snapshot_scanning {
node_tree_profile_requested = CopyCString(NodeTreeAccount(), node_tree_profile_account[:])
result.* = NodeAppString(ifx node_tree_profile_requested then "queued" else "unavailable")
return 1
}
if AppArgumentText(arguments[0]) == "arcade.navigation" && AppArgumentText(arguments[1]) == "back" &&
!node_tree_validating && !node_snapshot_scanning && runner.nested != null {
// Queue the parent transition until the guest frame returns.
@@ -519,6 +527,13 @@ NodeTreeRuntime :: (slot: s32) -> *AppRuntime {
return AppHostActiveRuntime(node_runners[slot].nested)
}
// Consume only after the guest VM returns; Profile must never re-enter it.
NodeTreeTakeProfile :: () -> bool {
requested := node_tree_profile_requested && TextUntilNul(node_tree_profile_account[:]) == NodeTreeAccount()
node_tree_profile_requested = false
return requested
}
NodeTreeRunMessage :: (slot: s32, message: Legacy.AppMessage) -> Legacy.AppMessage {
message.succeeded = false
host := node_runners[slot].nested
+2 -2
View File
@@ -3,7 +3,7 @@ PackageBundledVersion :: (index: s32) -> string {
if index < 0 || index >= 7 {
return ""
}
versions: [7]string = .["2.1.51", "1.1.19", "1.3.6", "1.6.0", "1.3.15", "1.5.18", "1.0.20"]
versions: [7]string = .["2.1.52", "1.1.20", "1.3.7", "1.6.1", "1.3.16", "1.5.19", "1.0.21"]
return versions[index]
}
@@ -11,7 +11,7 @@ PackageBundledSequence :: (index: s32) -> s32 {
if index < 0 || index >= 7 {
return 0
}
sequences: [7]s32 = .[48, 27, 29, 29, 32, 36, 21]
sequences: [7]s32 = .[49, 28, 30, 30, 33, 37, 22]
return sequences[index]
}
+2 -2
View File
@@ -3,7 +3,7 @@
#define APP_VERSION_MAJOR 2
#define APP_VERSION_MINOR 1
#define APP_VERSION_PATCH 51
#define APP_VERSION_STRING "2.1.51"
#define APP_VERSION_PATCH 52
#define APP_VERSION_STRING "2.1.52"
#endif
+2 -2
View File
@@ -1,5 +1,5 @@
// Generated by update_version.sh from CHANGELOG.md. Do not edit by hand.
VersionMajor :: 2
VersionMinor :: 1
VersionPatch :: 51
VersionString :: "2.1.51"
VersionPatch :: 52
VersionString :: "2.1.52"
+124 -107
View File
@@ -1,6 +1,9 @@
#import, file "../../apps/leaderboard/leaderboard_achievements.zi";
// Leaderboard ranks you with your friends. Saved and fetched results are
// parsed and ranked once when they change, never on every frame.
#import "entity/leaderboard_model"
EntityProfile :: #import "entity/model";
#import, file "../apps/node_app_snapshot.zi";
#import "keys"
#import "bundle_host"
#import "byte_text_linux"
@@ -566,117 +569,131 @@ LeaderboardUiCall :: (context: *void, module: *u8, function: *u8,
return 0
}
// Opening the app shows saved results at once and fetches fresh ones.
// The old route remains a redirect for saved navigation and older packages.
// Profile owns the screen; Inner Breeze supplies its installed boards/data.
leaderboard_projection: string;
EntityHostOpenLeaderboard :: () #foreign c;
InbeLeaderboardSnapshot :: (app: *InnerBreeze, request: string) -> string {
page: ProfileLeaderboard
account: AccountKeys
if sync_account_load(*account) != 0 {
unused AppCopyText(TextUntilNul(account.public_id[:]), page.owner[:])
}
if page.owner[0] == cast(u8)0 {
unused AppCopyText("local", page.owner[:])
}
installed := LeaderboardInstalledPractices()
LeaderboardListApps(app, installed)
for index: cast(s32)0..leaderboard_app_count - 1 {
name := TextUntilNul(leaderboard_app_names[index][:])
title := TextUntilNul(leaderboard_app_titles[index][:])
if name == "practices" {
for item: cast(s32)0..installed.practice_count - 1 {
if page.board_count >= LEADERBOARD_BOARDS { break }
practice := installed.practices[item]
board := *page.boards[page.board_count]
unused AppCopyText(name, board.app[:])
unused AppCopyText(title, board.app_title[:])
unused AppCopyText(LeaderboardPracticeId(practice), board.id[:])
key := ifx practice == EXERCISE_MEDITATION then "exercise_meditation" else "exercise_wim_hof"
unused AppCopyText(LocaleText(key), board.title[:])
unused AppCopyText(LocaleText("profile_metric_streak"), board.primary[:])
unused AppCopyText(LocaleText(ifx practice == EXERCISE_MEDITATION then "profile_metric_avg_time" else "profile_metric_avg_hold"), board.average[:])
page.board_count += 1
}
} else {
games: [GAME_SCORES_MAX]s32
count := GameScoresFor(name, games[:])
for item: cast(s32)0..count - 1 {
score := *game_scores[games[item]]
game := TextUntilNul(score.game[:])
if page.board_count >= LEADERBOARD_BOARDS || !NodeAppInstalledIdentity(name, game) { continue }
board := *page.boards[page.board_count]
unused AppCopyText(name, board.app[:])
unused AppCopyText(title, board.app_title[:])
unused AppCopyText(game, board.id[:])
unused AppCopyText(TextUntilNul(score.title[:]), board.title[:])
unused AppCopyText(LocaleText("leaderboard_levels"), board.primary[:])
page.board_count += 1
}
}
}
current := ifx LeaderboardAppName(app) == "practices" then LeaderboardPracticeId(app.leaderboard_practice) else LeaderboardBoardName(app)
page.selected = ProfileBoardFind(*page, current)
if page.selected < 0 && page.board_count > 0 { page.selected = 0 }
owner: [97]u8
board_id: [65]u8
metric := ReadNumber(request, FieldAt(request, 0, "metric"))
if ReadStringText(request, FieldAt(request, 0, "owner"), owner[:]) > 0 &&
TextUntilNul(owner[:]) == TextUntilNul(page.owner[:]) &&
ReadStringText(request, FieldAt(request, 0, "board"), board_id[:]) > 0 &&
metric.valid && (metric.value == 0 || metric.value == 1) {
chosen := ProfileBoardFind(*page, TextUntilNul(board_id[:]))
if chosen >= 0 {
page.selected = chosen
app.leaderboard_metric = ifx page.boards[chosen].average[0] != cast(u8)0 then cast(s32)metric.value else 0
}
}
if page.selected >= 0 {
board := *page.boards[page.selected]
chosen := TextUntilNul(board.id[:])
changed := chosen != current
if board.average[0] == cast(u8)0 {
app.leaderboard_metric = LEADERBOARD_STREAK
}
unused AppCopyText(TextUntilNul(board.app[:]), app.leaderboard_app[:])
if TextUntilNul(board.app[:]) == "practices" {
for item: cast(s32)0..installed.practice_count - 1 {
practice := installed.practices[item]
if LeaderboardPracticeId(practice) == chosen { app.leaderboard_practice = practice }
}
} else {
unused AppCopyText(chosen, app.leaderboard_game[:])
}
// Refresh only the selected, currently installed board.
LeaderboardListApps(app, installed)
if changed || request == "refresh" {
if changed { app.leaderboard_metric = LEADERBOARD_STREAK }
LeaderboardLoadCache(app)
app_request_social_refresh(app)
}
if app.leaderboard_loaded == 0 || leaderboard_built_revision != app.leaderboard_revision ||
leaderboard_built_practice != app.leaderboard_practice || leaderboard_built_metric != app.leaderboard_metric ||
TextUntilNul(leaderboard_built_app[:]) != LeaderboardAppName(app) ||
TextUntilNul(leaderboard_built_board[:]) != LeaderboardBoardName(app) {
LeaderboardRebuild(app)
}
page.metric = app.leaderboard_metric
page.loading = app_social_refresh_loading() != 0
page.row_count = leaderboard_count
for index: cast(s32)0..leaderboard_count - 1 {
source := *leaderboard_entries[index]
row := *page.rows[index]
unused AppCopyText(TextUntilNul(source.name[:]), row.name[:])
unused AppCopyText(TextUntilNul(source.streak[:]), row.value[:])
unused AppCopyText(TextUntilNul(source.average[:]), row.average[:])
row.own = source.own
if row.own && TextUntilNul(board.app[:]) == "practices" {
AchievementLeaderboardViewed(chosen)
}
}
}
EntityProfile.EntityFree(leaderboard_projection)
leaderboard_projection = ProfileLeaderboardEncode(*page)
return leaderboard_projection
}
#program_export
leaderboard_screen_enter :: (app: *InnerBreeze) {
if app == null {
return
}
load_friends_cache(app)
LeaderboardListApps(app, LeaderboardInstalledPractices())
unused LeaderboardKeepInstalled(app, LeaderboardInstalledPractices())
LeaderboardLoadCache(app)
app_request_social_refresh(app)
if app == null { return }
app_open_profile_tab(app, PROFILE_TAB_OVERVIEW)
EntityHostOpenLeaderboard()
}
#program_export
leaderboard_screen_draw :: (app: *InnerBreeze) {
if app == null {
return
}
installed := LeaderboardInstalledPractices()
LeaderboardListApps(app, installed)
if LeaderboardKeepInstalled(app, installed) {
LeaderboardLoadCache(app)
app_request_social_refresh(app)
}
if app.leaderboard_practice < 0 || app.leaderboard_practice >= EXERCISE_COUNT {
app.leaderboard_practice = EXERCISE_WIM_HOF
app.leaderboard_loaded = 0
}
if app.leaderboard_metric != LEADERBOARD_STREAK &&
(app.leaderboard_metric != LEADERBOARD_AVERAGE || !LeaderboardHasAverage(app.leaderboard_practice)) {
app.leaderboard_metric = LEADERBOARD_STREAK
}
if app.leaderboard_loaded == 0 || leaderboard_built_revision != app.leaderboard_revision ||
leaderboard_built_practice != app.leaderboard_practice ||
leaderboard_built_metric != app.leaderboard_metric ||
TextUntilNul(leaderboard_built_app[:]) != LeaderboardAppName(app) ||
TextUntilNul(leaderboard_built_board[:]) != LeaderboardBoardName(app) {
LeaderboardRebuild(app)
}
leaderboard_ui.session = app.ui.session
leaderboard_ui.width = app.ui.view_width
leaderboard_ui.height = app.ui.view_height
leaderboard_ui.bottom = app_content_bottom_reserved(app)
leaderboard_ui.scale = MetricsScale()
leaderboard_ui.font = AppFontSize()
leaderboard_ui.app_count = leaderboard_app_count
for index: cast(s32)0..leaderboard_app_count - 1 {
if TextUntilNul(leaderboard_app_names[index][:]) == LeaderboardAppName(app) {
leaderboard_ui.app_index = index
}
}
leaderboard_ui.board_count = leaderboard_board_count
leaderboard_ui.board_index = 0
for index: cast(s32)0..leaderboard_board_count - 1 {
if TextUntilNul(game_scores[leaderboard_boards[index]].game[:]) == LeaderboardBoardName(app) {
leaderboard_ui.board_index = index
}
}
state := LeaderboardMessage.{.action = LEADERBOARD_FRAME,
.practice = app.leaderboard_practice, .metric = app.leaderboard_metric,
.row_count = leaderboard_count, .signed_in = leaderboard_signed_in,
.loading = app_social_refresh_loading() != 0,
.has_average = LeaderboardAppName(app) == "practices" && LeaderboardHasAverage(app.leaderboard_practice),
.app = LeaderboardAppName(app), .board = LeaderboardBoardName(app),
.practices_listed = true, .practice_count = installed.practice_count,
.practices = installed.practices}
WidgetHostBegin(app.ui.session, HostedAssetAllowed)
AppsUiBegin(LeaderboardUiCall, cast(*void)app)
state = LeaderboardRun(state)
AppsUiEnd()
WidgetHostEnd()
if !state.succeeded {
return
}
if state.app != LeaderboardAppName(app) {
for index: cast(s32)0..leaderboard_app_count - 1 {
if state.app == TextUntilNul(leaderboard_app_names[index][:]) {
unused AppCopyText(state.app, app.leaderboard_app[:])
app.leaderboard_metric = LEADERBOARD_STREAK
leaderboard_ui.scroll = 0
LeaderboardLoadCache(app)
app_request_social_refresh(app)
return
}
}
}
if state.board != LeaderboardBoardName(app) {
for index: cast(s32)0..leaderboard_board_count - 1 {
if state.board == TextUntilNul(game_scores[leaderboard_boards[index]].game[:]) {
unused AppCopyText(state.board, app.leaderboard_game[:])
leaderboard_ui.scroll = 0
LeaderboardLoadCache(app)
app_request_social_refresh(app)
return
}
}
}
if state.practice != app.leaderboard_practice && state.practice >= 0 &&
state.practice < EXERCISE_COUNT {
app.leaderboard_practice = state.practice
app.leaderboard_metric = LEADERBOARD_STREAK
leaderboard_ui.scroll = 0
LeaderboardLoadCache(app)
app_request_social_refresh(app)
return
}
if state.metric == LEADERBOARD_STREAK ||
(state.metric == LEADERBOARD_AVERAGE && LeaderboardHasAverage(app.leaderboard_practice)) {
app.leaderboard_metric = state.metric
}
if state.refresh {
app_request_social_refresh(app)
}
if app == null { return }
app_open_profile_tab(app, PROFILE_TAB_OVERVIEW)
EntityHostOpenLeaderboard()
}
+3
View File
@@ -447,5 +447,8 @@ node_app_screen_draw :: (app: *InnerBreeze) {
}
if clip.opened { unused End(app.ui.session) }
WidgetHostEnd()
if NodeTreeTakeProfile() {
app_open_profile_tab(app, PROFILE_TAB_OVERVIEW)
}
NodeScreenMediaPicker(app)
}
-5
View File
@@ -17,11 +17,6 @@ host_load_friends_cache :: (app: *void) {
unused app
}
#program_export "leaderboard_screen_enter"
host_enter_leaderboard :: (app: *void) {
unused app
}
#program_export "node_app_screen_enter"
host_enter_node_app :: (app: *void) {
unused app
+9
View File
@@ -0,0 +1,9 @@
// The habit editor's leave check, for tests that reach navigation without
// linking the editor: leaving is always allowed.
#program_export "habit_edit_request_leave"
host_habit_edit_request_leave :: (app: *void, route: s32) -> bool {
unused app
unused route
return true
}
+1 -1
View File
@@ -21,7 +21,7 @@ mkdir -p "$work/generated"
--module-path "$root/build/packages/daochi-client" \
--entry habit_form_behavior:Check \
-o "$work/generated" "$root/tests/habit_form_behavior.zi" \
"$root/tests/sync_test_host.zi" "$root/tests/app_hooks_host.zi"
"$root/tests/sync_test_host.zi" "$root/tests/app_hooks_host.zi" "$root/tests/leaderboard_hooks_host.zi"
cat > "$work/generated/main.c" <<'C'
#include "habit_form_behavior.h"
#include <stdio.h>
+1 -1
View File
@@ -22,7 +22,7 @@ mkdir -p "$work/generated"
--entry habit_sessions_behavior:Check \
-o "$work/generated" "$root/tests/habit_sessions_behavior.zi" \
"$root/tests/sync_test_host.zi" \
"$root/tests/app_hooks_host.zi"
"$root/tests/app_hooks_host.zi" "$root/tests/leaderboard_hooks_host.zi"
cat > "$work/generated/main.c" <<'C'
#include "habit_sessions_behavior.h"
#include <stdio.h>
+7 -8
View File
@@ -23,9 +23,9 @@ Answer :: () -> s32 {
}
// Every app round-trips by name; unknown and repeated names drop out.
read: [LAUNCHER_APP_COUNT]s32
if LauncherOrderRoutes("diary,chess,lumi,,diary,leaderboard,lists", read[:]) != 4 ||
if LauncherOrderRoutes("diary,chess,lumi,,diary,leaderboard,lists", read[:]) != 3 ||
read[0] != APP_NAV_ROUTE_DIARY || read[1] != APP_NAV_ROUTE_LUMI ||
read[2] != APP_NAV_ROUTE_LEADERBOARD || read[3] != APP_NAV_ROUTE_ELIST {
read[2] != APP_NAV_ROUTE_ELIST {
return 22
}
if LauncherOrderRoutes("", read[:]) != 0 || LauncherOrderText(read[:], 0, order[:]) != 0 ||
@@ -37,11 +37,11 @@ Answer :: () -> s32 {
PackageSetNodeApp(0, "chess")
every := LauncherRoutes()
length = LauncherOrderText(every[:], cast(s32)every.count, order[:])
if TextView(order[:length]) != "diary,habits,lists,lumi,practices,leaderboard,chess" ||
LauncherOrderRoutes(TextView(order[:length]), read[:]) != 7 {
if TextView(order[:length]) != "diary,habits,lists,lumi,practices,chess" ||
LauncherOrderRoutes(TextView(order[:length]), read[:]) != 6 {
return 24
}
for index: cast(s32)0..6 {
for index: cast(s32)0..5 {
if read[index] != every[index] { return 25 }
}
PackageSetNodeApp(0, "")
@@ -96,9 +96,8 @@ Answer :: () -> s32 {
count = LauncherPlaceFavorite(favorites[:], count, APP_NAV_ROUTE_PRACTICE, count)
if count != LAUNCHER_APP_COUNT || favorites[count - 1] != APP_NAV_ROUTE_PRACTICE ||
favorites[0] != APP_NAV_ROUTE_DIARY { return 14 }
// Leaderboard is listed after the apps that existed before it, and the
// slots of the apps the node offers after the bundled apps.
if LauncherRoutes()[5] != APP_NAV_ROUTE_LEADERBOARD || LauncherRoutes()[6] != AppNavNodeRoute(0) ||
// Leaderboard is reached through Profile; node app slots follow the five bundled apps.
if LauncherRoutes()[5] != AppNavNodeRoute(0) ||
LauncherRoutes()[LAUNCHER_APP_COUNT - 1] != AppNavNodeRoute(7) { return 21 }
count = LauncherToggleFavorite(favorites[:], count, APP_NAV_ROUTE_HABITS)
count = LauncherPlaceFavorite(favorites[:], count, APP_NAV_ROUTE_HABITS, 1)
+2 -1
View File
@@ -782,7 +782,8 @@ with contextlib.ExitStack() as stack:
wait_setting(profile, "package_updates_allowed", 0)
driver.wait_gone(label="Don't allow", role="button")
assert not driver.find(label="More apps"), "The old section heading remains"
for label in ("Lists", "Diary", "Leaderboard"):
assert not any(card["label"] == "Leaderboard" for card in cards()[1]), "Leaderboard still has its own app card"
for label in ("Lists", "Diary"):
card = next(node for node in cards()[1] if node["label"] == label)
assert corner(card, driver.tree())["label"] == "App options", f"{label} is not preinstalled"
# Practice is the third pinned card in the same grid as the rest.
+8
View File
@@ -0,0 +1,8 @@
// The leaderboard route, for tests whose program does not link the
// leaderboard screen. Profile's host links it, so tests that reach Profile
// use the real one.
#program_export "leaderboard_screen_enter"
host_enter_leaderboard :: (app: *void) {
unused app
}
+20 -7
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
"""Leaderboard opens as its own unpinned app, offers every installed practice
and ranks saved friend results."""
"""Profile owns the leaderboard, offers installed ranked boards and preserves friend results."""
import json
import os
from pathlib import Path
@@ -94,6 +93,20 @@ def choose(label):
driver.wait_idle(frames=2, timeout=2)
def open_leaderboard():
driver.press(label="Apps", role="button")
driver.wait(label="Pinned")
driver.press(focus_id=6792, role="button")
driver.wait(label="Change picture", role="button")
for _ in range(12):
if driver.find(label="Leaderboard", role="button", visible=True):
break
driver.pointer(WIDTH // 2, HEIGHT // 2, wheel=-3)
driver.wait_idle(frames=2, timeout=2)
driver.press(label="Leaderboard", role="button")
driver.wait(label="Leaderboard", role="text")
def stop(process):
if process.poll() is None:
process.terminate()
@@ -151,11 +164,9 @@ with tempfile.TemporaryDirectory(prefix="inbe-leaderboard-") as directory:
"apps_setup_done": 1, "app_used_leaderboard": 1, "main_tab": 5, "tutorial_seen": 1,
"habits_guide_seen": 1, "lumi_guides_seen": 127, "launcher_guide_seen": 1, "package_updates_allowed": 0,
"apps_last_update_check": 1900000000,
# Pinned here, so the page has no "back to Apps" bar and
# the controls keep fixed positions.
"launcher_favorite_count": 4, "launcher_favorite_0": 12,
# Profile remains a permanent control; Leaderboard has no app pin.
"launcher_favorite_count": 3, "launcher_favorite_0": 12,
"launcher_favorite_1": 1, "launcher_favorite_2": 2,
"launcher_favorite_3": LEADERBOARD_ROUTE,
# Astral Projection first in the saved Practice order.
"practice_order": 1503124}
for key, value in settings.items():
@@ -196,6 +207,7 @@ with tempfile.TemporaryDirectory(prefix="inbe-leaderboard-") as directory:
shutil.copyfile(root / "build/practice-content/taichi.zx", packages / "practice-taichi.zx")
app, window = launch(profile, "board")
try:
open_leaderboard()
# Only Wim Hof and Meditation are ranked, in Practice's order, side by side on phones.
expected = [["Wim Hof Breathing", "Meditation"]]
grid = practice_grid(expected)
@@ -227,6 +239,7 @@ with tempfile.TemporaryDirectory(prefix="inbe-leaderboard-") as directory:
shutil.copyfile(root / "build/practice-content/sunsalutation.zx", packages / "practice-sunsalutation.zx")
app, window = launch(profile, "with-sun-salutation")
try:
open_leaderboard()
expected = [["Wim Hof Breathing", "Meditation"]]
grid = practice_grid(expected)
assert grid == expected, f"after download: {grid}"
@@ -252,5 +265,5 @@ with tempfile.TemporaryDirectory(prefix="inbe-about-") as directory:
assert about.returncode == 0 and shot.exists(), stdout[-4000:] + stderr[-2000:]
assert "out of bounds" not in stdout + stderr, stdout[-4000:]
driver_directory.cleanup()
print("Leaderboard: preinstalled and unpinned, only Wim Hof and Meditation ranked, saved ranks, average hold, "
print("Leaderboard: shared Profile route, only Wim Hof and Meditation ranked, saved ranks, average hold, "
"meditation time, only ranked apps offered, a downloaded practice staying unranked and About passed")
+1 -1
View File
@@ -21,7 +21,7 @@ mkdir -p "$work/generated"
--module-path "$root/build/packages/daochi-client" \
--entry session_results_behavior:Check \
-o "$work/generated" "$root/tests/session_results_behavior.zi" \
"$root/tests/app_hooks_host.zi" "$root/tests/clock_host.zi"
"$root/tests/app_hooks_host.zi" "$root/tests/habit_edit_hooks_host.zi" "$root/tests/clock_host.zi"
cat > "$work/generated/main.c" <<'C'
#include "session_results_behavior.h"
#include <stdio.h>
+4 -4
View File
@@ -6,8 +6,8 @@ IDI_APP_ICON ICON "inbe.ico"
IDI_NOTIFICATION_ICON ICON "inbe.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,1,51,0
PRODUCTVERSION 2,1,51,0
FILEVERSION 2,1,52,0
PRODUCTVERSION 2,1,52,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -24,11 +24,11 @@ BEGIN
BEGIN
VALUE "CompanyName", "waozi"
VALUE "FileDescription", "Inner Breeze"
VALUE "FileVersion", "2.1.51"
VALUE "FileVersion", "2.1.52"
VALUE "InternalName", "breeze"
VALUE "OriginalFilename", "breeze-windows-x86_64.exe"
VALUE "ProductName", "Inner Breeze"
VALUE "ProductVersion", "2.1.51"
VALUE "ProductVersion", "2.1.52"
END
END
BLOCK "VarFileInfo"
+30 -30
View File
@@ -1,14 +1,6 @@
{
"format": 1,
"packages": [
{
"commit": "dc1cfe389905c63c0bb453727d06d72afc1fa0b0",
"dependencies": {"crypto": "pc23fbf455e97614d", "kryon": "pa7d5e0ee3b284d04"},
"id": "p00b93f1ddcd2802f",
"name": "Apps",
"ref": "master",
"url": "https://github.com/waozixyz/apps.git"
},
{
"commit": "b31299434c785d0f2bd82f36b5bfd2fd36ba1216",
"dependencies": {},
@@ -26,9 +18,17 @@
"ref": "master",
"url": "https://github.com/ziranlang/qrcode.git"
},
{
"commit": "ca637d08b0d6b54ab6bb56bbfd9a25d7fb70f56c",
"dependencies": {"daochi_client": "p9972fcdd2d5ba999", "kryon": "p78e3cb7d22b3e56c", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
"id": "p52862c0351d05875",
"name": "Entity",
"ref": "master",
"url": "https://github.com/waozixyz/entity.git"
},
{
"commit": "1cb9df183089a77c8a16448a556186f30b261a98",
"dependencies": {"kryon": "pa7d5e0ee3b284d04"},
"dependencies": {"kryon": "p78e3cb7d22b3e56c"},
"id": "p1b13dda539ed2a39",
"name": "Kss",
"ref": "master",
@@ -36,12 +36,20 @@
},
{
"commit": "bad2caaa84ef3eae61e40c99bf572d2b060d0ca2",
"dependencies": {"kryon": "pa7d5e0ee3b284d04"},
"dependencies": {"kryon": "p78e3cb7d22b3e56c"},
"id": "p20eb23d3e6db3711",
"name": "Game2D",
"ref": "master",
"url": "https://github.com/kryonlabs/game2d.git"
},
{
"commit": "b1e4ed4b0f7283e2b7a8ae7740f283d5729b3b04",
"dependencies": {"crypto": "pc23fbf455e97614d", "kryon": "p78e3cb7d22b3e56c"},
"id": "p4158fd507db6061e",
"name": "Apps",
"ref": "b1e4ed4b0f7283e2b7a8ae7740f283d5729b3b04",
"url": "https://github.com/waozixyz/apps.git"
},
{
"commit": "e1f480f382d9443c4412133b55948374c77a5c21",
"dependencies": {},
@@ -68,6 +76,14 @@
"ref": "master",
"url": "https://github.com/ziranlang/oqs.git"
},
{
"commit": "1fd45c1fea2e76e69cac0e09f774e6f63ed75eff",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "p78e3cb7d22b3e56c",
"name": "kryon",
"ref": "master",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "f5f0a19a5dc6c14a49adb3cd63ea79a60f6ba77b",
"dependencies": {},
@@ -94,17 +110,9 @@
"ref": "master",
"url": "https://github.com/ziranlang/daochi-client.git"
},
{
"commit": "bab522f4edf3dee69827fbd09fafb2639311e1c6",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "pa7d5e0ee3b284d04",
"name": "kryon",
"ref": "master",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "3f888653b6b97010163d824c4cc72476be3214f3",
"dependencies": {"kryon": "pa7d5e0ee3b284d04"},
"dependencies": {"kryon": "p78e3cb7d22b3e56c"},
"id": "pab5377a2950368a2",
"name": "plot",
"ref": "master",
@@ -143,23 +151,15 @@
"ref": "master",
"source": true,
"url": "https://github.com/sqlite/sqlite.git"
},
{
"commit": "e05dbce942cdc40e9ae4878018966a88b2b76b9f",
"dependencies": {"daochi_client": "p9972fcdd2d5ba999", "kryon": "pa7d5e0ee3b284d04", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
"id": "pf12aee7fe9383c11",
"name": "Entity",
"ref": "master",
"url": "https://github.com/waozixyz/entity.git"
}
],
"root": {
"dependencies": {"apps": "p00b93f1ddcd2802f", "crypto": "pc23fbf455e97614d", "curl": "pd4bcd11b7d623073", "daochi_client": "p9972fcdd2d5ba999", "entity": "pf12aee7fe9383c11", "game2d": "p20eb23d3e6db3711", "kryon": "pa7d5e0ee3b284d04", "kss": "p1b13dda539ed2a39", "liboqs": "p4b0a50b49959e674", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "p9079dde0fcc11248", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "peaa43c4b7ef72edf"},
"dependencies": {"apps": "p4158fd507db6061e", "crypto": "pc23fbf455e97614d", "curl": "pd4bcd11b7d623073", "daochi_client": "p9972fcdd2d5ba999", "entity": "p52862c0351d05875", "game2d": "p20eb23d3e6db3711", "kryon": "p78e3cb7d22b3e56c", "kss": "p1b13dda539ed2a39", "liboqs": "p4b0a50b49959e674", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "p9079dde0fcc11248", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "peaa43c4b7ef72edf"},
"name": "Inbe"
},
"toolchain": {
"commit": "5efa24f818485cf265bdd5c066a4e2150175ac0e",
"ref": "master",
"commit": "5a1ce92f921be670c9777b7d46fa86ead3062519",
"ref": "5a1ce92f921be670c9777b7d46fa86ead3062519",
"url": "https://github.com/ziranlang/ziran.git"
}
}
+2 -2
View File
@@ -5,7 +5,7 @@ module_roots = ["src", "src/apps", "src/app", "src/core", "src/habits", "src/pra
[toolchain]
git = "https://github.com/ziranlang/ziran.git"
ref = "master"
ref = "5a1ce92f921be670c9777b7d46fa86ead3062519"
[dependencies.kryon]
git = "https://github.com/kryonlabs/kryon.git"
@@ -74,7 +74,7 @@ ref = "master"
[dependencies.apps]
git = "https://github.com/waozixyz/apps.git"
ref = "master"
ref = "b1e4ed4b0f7283e2b7a8ae7740f283d5729b3b04"
# The practices' pictures, course data and recordings (scripts/practice_media.py).
[dependencies.practices]