Compare commits

...
76 Commits
Author SHA1 Message Date
waozi 8bb5135cd7 Retry FreeBSD package dependency installs 2026-08-21 21:20:47 -03:00
waozi 8931999778 Fix Android OpenURI link references 2026-08-21 21:08:23 -03:00
waozi 17713b6a49 Fix 1.9.8 CI release build 2026-08-21 20:57:58 -03:00
waozi 76b69263fd Fix donation wallet URI handling 2026-08-21 19:58:07 -03:00
waozi 6a7be61ec0 Update Kryon read-only text behavior 2026-08-21 17:11:07 -03:00
waozi bd2ae932bd Fix web smoke onboarding persistence 2026-08-21 17:03:41 -03:00
waozi b9e74d6c9d Add donation modal 2026-08-21 16:56:48 -03:00
waozi e401f237de Release 1.9.9 2026-08-21 16:41:33 -03:00
waozi ff69fa71b3 Make image asset test portable 2026-08-21 16:24:17 -03:00
waozi 75b41115af Fix embedded practice banner assets 2026-08-21 16:20:08 -03:00
waozi f7efa49a6b Update practice imagery and Kryon integration 2026-08-21 16:03:39 -03:00
waozi ccdeb5ae61 Release 1.9.8 2026-08-21 13:26:00 -03:00
waozi 69f91ae928 Fix web startup readiness 2026-08-19 23:10:48 -03:00
waozi 2f66434a44 Merge remote master and release Inbe 1.9.7 2026-08-19 22:58:30 -03:00
waozi a6910f76b7 Release Inbe 1.9.6 2026-08-19 22:48:20 -03:00
waozi 33ddd5aea5 Fix practice banner spacing and order 2026-08-19 22:36:03 -03:00
waozi 90e3ba03a7 Clean up music settings and leaderboard sorting 2026-08-19 22:29:39 -03:00
waozi 88b89b3b90 Remove Aero style and fix styled banners 2026-08-19 22:16:20 -03:00
waozi 4161a481b7 Fix leaderboard refresh and styled banners 2026-08-19 21:43:42 -03:00
waozi 5dcf41016c Keep break timer windows on all workspaces 2026-08-19 20:44:42 -03:00
waozi 0f54ce97ba Release Inner Breeze 1.9.6 2026-08-19 20:36:33 -03:00
waozi 9bb4af9545 Update guide overlay test stubs 2026-08-19 20:21:11 -03:00
waozi fb9decdd85 Fix non-desktop Breaks guards 2026-08-19 20:17:14 -03:00
waozi 031dcc29aa Make donation reminder practice-based 2026-08-19 20:12:28 -03:00
waozi 13aacab312 Limit release appcast submodule checkout 2026-08-19 19:42:15 -03:00
waozi 9458c1e4b2 Use Canvas fallback when WebGL is unavailable 2026-08-19 19:25:44 -03:00
waozi 72736b010f Fetch submodules for release appcast 2026-08-19 19:15:05 -03:00
waozi 8aa253d4d6 Disable stale GitHub apt mirrorlist 2026-08-19 18:59:42 -03:00
waozi 97f303be23 Pin CI apt installs to Ubuntu archive 2026-08-19 18:37:24 -03:00
waozi 0928bd1012 Harden release workflow installs 2026-08-19 18:10:29 -03:00
waozi d9d2485e83 Delay support prompt and bump Canvas fixes 2026-08-19 17:47:13 -03:00
waozi a763b582d7 Fix release appcast publishing 2026-08-19 17:40:07 -03:00
waozi 0c2156154f Use Kryon helpers and enable Canvas sync parity 2026-08-19 17:27:42 -03:00
waozi 1a124cb444 Add web renderer comparison gate 2026-08-19 17:14:43 -03:00
waozi 2fd164865d Fix Android release build 2026-08-19 17:01:48 -03:00
waozi 74a5cda45d Fix non-desktop SDL guards 2026-08-19 16:44:56 -03:00
waozi b51e7403c3 Speed up CI workflow checkouts 2026-08-19 16:22:01 -03:00
waozi 97cc83ab2f Speed up release workflow checkouts 2026-08-19 16:15:46 -03:00
waozi 4c95be8e09 Add monthly donation reminder 2026-08-19 15:56:01 -03:00
waozi 4ecc53c052 HUD drag follows the pointer exactly; assert it in the e2e suite
Vendor kryon diffs the global pointer position during borderless-
window drags instead of accumulating motion events (pointer batching
ate the last step), baselines the drag at the true press position
(the first step was lost between press and the first pump frame), and
captures the mouse for the drag duration. The desktop window-mode
suite now asserts the HUD lands within 2px of the exact drag path.
2026-08-19 15:31:55 -03:00
waozi e3de8ec99d CI: gate on public-HTTPS submodule URLs
A guard job with a plain checkout fails the run when any .gitmodules
URL is not https:// — SSH URLs work only with a developer key and
break fresh clones and CI instead. The test job needs the guard.
2026-08-19 15:28:53 -03:00
waozi 5f08aa12b1 Close the window for real; drag the break HUD; e2e window-mode tests
The title-bar close button did nothing: SDL2 delivers the close
request as SDL_WINDOWEVENT_CLOSE and raylib's SDL backend only
latches SDL_QUIT. The main loop now consumes the close request
kryon's window pump records (StealUICoreWindowClose) and runs the
normal close flow, so every mode works again: ask prompts, keep-
running hides to the tray, quit exits.

raylib also asks SDL for mouse capture at window creation; the
resulting active pointer grab on the main window swallowed every
click and drag aimed at the break HUD. The grab is released right
after InitWindow.

Adds scripts/test-desktop-windows.sh (make test-desktop-windows):
end-to-end coverage on a private Xvfb display for the window-close
matrix (startup, keep-running, ask+quit, ask+keep-running) and
break-HUD dragging.

Vendor kryon brings the close bridge, SDL-path drag support and the
StealUICoreWindowClose API.
2026-08-19 15:18:53 -03:00
waozi f2f8107352 Drop leftover startup-diagnostic logging from app_update_draw 2026-08-19 14:29:06 -03:00
waozi 668ccaf628 Start hidden only with a live tray; throttle the break HUD
The 'Start minimized' desktop startup mode hid the window even when
the tray failed to initialize - the fallback minimized a window with
nothing to restore it from, leaving the app running completely
unreachable: no window, no taskbar entry, nothing to click or close.
Hidden startup is now honored only when the tray is actually ready,
and both hidden startup and tray hides say so in the log.

The break HUD now presents at ~2 Hz instead of every frame: each
present swaps GL contexts and stalls the main context with a
glFinish, which kept a core busy and widened the multi-window race
window for content that changes once per second.

Vendor kryon ignores systray XEMBED-handshake activations, which
could toggle the window hidden right after launch, and resolves
gtk_status_icon_is_embedded through the lazy GTK table.
2026-08-19 14:28:46 -03:00
waozi aa1dc4e451 Add Windows installer and winget publishing (1.9.5)
make windows-setup builds an NSIS installer (both portable exes,
shortcuts, ARP entries, silent /S installs) beside the zip; verified
by running a silent install under wine. The release workflow builds
and ships it, and a gated publish-winget job keeps the winget manifest
current on each release (needs the WINGET_TOKEN secret; the one-time
new-package submission uses the template in packaging/winget).
2026-08-19 14:22:08 -03:00
waozi 169835e3af Bump kryon: Go bindings, arch-aware AppImage appcast key
The appcast appimage channel is now appimage-<dpkg arch> so multi-arch
publishers list one channel per arch and each machine resolves its own.
Also brings the kry_update_flow kryui bindings (not yet used by inbe).
2026-08-19 14:15:50 -03:00
waozi c6ce731acb Fix Windows build: guard setenv in screenshot mode
KRYON_SHOT_ARM armed via POSIX setenv in a path that compiles on
Windows; every other env write in main.c already branches to _putenv.
Older mingw gcc let it slide as a warning, gcc 14+ makes the implicit
declaration an error. Found by cross-compiling with gcc 15; the exe
then builds and runs under wine.
2026-08-19 14:13:40 -03:00
waozi ae419fb8ae Ride the shared kry_update_flow for the desktop updater
app_update_check.c keeps only inbe's persistence (daily check stamp in
settings), locale strings, the toast, and the miniz zip extractor
handed to the flow as a callback; check/channel/download/verify/apply
now come from kryon's kry_update_flow so every kryon app embeds the
same lifecycle. The release workflow generates appcast.json through
kryon's scripts/make_appcast.py instead of inline python. Verified end
to end against a local appcast server: available -> staged+verified.
2026-08-19 14:03:28 -03:00
waozi 9dcacc26c7 Add in-app self-update for AppImage and Windows portable (1.9.5)
Settings -> About now walks the whole update for self-service channels:
Download (checksum-verified, progress in the row), then one click on
Restart to update. On AppImage the verified file is staged next to the
running image and atomically swapped in before re-exec; on Windows the
zip is extracted beside the install and a detached swap script waits
for exit, swaps directories, and relaunches. Packaged, Snap, Flatpak
and source installs keep the link-only row. The AppImage build also
embeds AppImageUpdate (zsync) delta information now.

Vendor kryon brings kry_http_download, kry_sha256 and the kry_update
download/verify/apply primitives. The tray main loop now honors
app->request_quit so a confirmed update restart exits without the
keep-running prompt. INBE_UPDATE_AUTO_DOWNLOAD drives the flow for
tests (verified end to end against a local appcast server).
2026-08-19 13:49:33 -03:00
waozi 7077d5aaa4 Add desktop update notifications (1.9.5)
The app checks the release appcast once a day on desktop and surfaces a
new version with a toast plus a download link in Settings -> About.
AppImage and Windows users get the direct artifact URL; deb/rpm, Snap
and Flatpak installs are left to the system updater. The release
workflow now publishes appcast.json (version, notes, per-channel URL,
SHA-256, size) alongside the release artifacts, and the vendor kryon
pointer brings in the new kry_update module. INBE_UPDATE_APPCAST_OVERRIDE
overrides the URL for testing.
2026-08-19 13:26:23 -03:00
waozi 81de6ff998 Ship a true 512px desktop icon
The packaging icon was a 256px image, but the desktop install suite (make install / install-user, deb, AppImage) stages it into icons/hicolor/512x512. Replace it with the canonical 512px artwork so installed menu icons match their hicolor size slot.
2026-08-19 12:20:10 -03:00
waozi 2996fcadef Follow the system theme by default on every platform
Fresh installs now default the theme source to System on desktop, Android and web instead of the Sky app palette. The web theme settings no longer hide the System option, so the default is not clamped back to the app palette when the appearance screen opens. Includes the kryon bump that makes GetDefaultPlatformThemeSource() return SYSTEM everywhere.
2026-08-19 12:14:25 -03:00
waozi 1e0c81dbf7 web: exclude canvas backend sources from the raylib web build
The web build's src sweep picked up kryon's canvas backend, which
defines the same public surface as the generated raylib wrappers and
broke the wasm link with duplicate symbols. KRYON_WEB_SRCS now filters
canvas_*.c, mirroring how web-canvas drops the wrappers instead.

Bump vendor/kryon: the canvas backend is now split into per-concern
sources (window/input/draw/texture/text/os/audio) with deduplicated JS
glue and a zero-initialized LoadFont failure return; kryon's node
call-sequence gate records an identical trace before and after.
2026-08-19 09:48:11 -03:00
waozi d26cdd72a6 Add web-canvas target: the web build on kryon's Canvas2D backend
Vendor kryon forward to master, which now carries the canvas Tier A
backend (HTML5 Canvas2D through EM_JS: no libraylib.web.a, no GLFW, no
WebGL). make web-canvas compiles the same generated app sources with
kryon's src tree + canvas_backend.c under emcc (-sASYNCIFY so the
while-loop frame pacing survives, -fexceptions for the set_main_loop
unwind) and preloads locales and assets.

Sync-account crypto and audio are not carried in this target:
scripts/ksync-canvas-shim.c reports sync unavailable (the app runs
local-only) and kryon's canvas audio is null-grade. The host page
(web-assets/canvas_index.html) drives requestAnimationFrame from timers
because embedded webviews suspend RAF while timers keep running.

Verified in a real browser: full boot, storage, fonts, icons, theming,
tinting, and input all render on the canvas backend.
2026-08-18 20:57:09 -03:00
waozi f5bde88490 Localize the theme section and follow the system locale
The theme settings UI shipped English in every language: the locale
files carried none of kryon's theme_* keys, and the picker's label
fallbacks bypassed the locale catalog entirely (kryon b969d0f fixes
that side). Add the full theme-section key set to all 13 locale files
and default the language to the system locale (kryon's new
GetDefaultLocaleCode) instead of hardcoded English; a saved language
choice still wins. Verified by rendering the theme screen under de and
pt_BR system locales - Modus/Hell/Dunkel/Farbschema/Stil and
Tema/Modo/Claro/Escuro/Esquema de cores/Estilo all come through.
2026-08-18 18:57:50 -03:00
waozi 204f4dc0d3 Vendor kryon with the dropdown click-vs-drag fix
Bump vendored kryon to master (79d4fed): wobbled and slow clicks now
select from dropdown popups instead of being swallowed as drags - the
press-Dark-and-nothing-happens case. Verified end to end against the
running app with synthetic X clicks and the persisted settings.
2026-08-18 18:42:27 -03:00
waozi 6d064565c4 Vendor kryon without the dedicated Aero palette
Bump vendored kryon to master (eb9967c): the Aero style is
palette-agnostic and defaults to Sky; the 13th palette entry is gone.
A previously saved palette id beyond the new count falls back through
the normal out-of-range clamp.
2026-08-18 18:14:35 -03:00
waozi 9217d9e98f Vendor kryon with dropdown Escape/focus dismissal
Bump vendored kryon to master (0adf507): open dropdown popups now also
close on Escape and on window focus loss, on top of the popup flip
fix.
2026-08-18 18:04:57 -03:00
waozi cac6a7d540 Vendor kryon with the tall-dropdown popup fix
Bump vendored kryon to master (54a71e6): dropdown popups that do not
fit below the control now flip above it instead of running off-screen,
so the tail options of long lists (the palette picker) are reachable
and clickable again.
2026-08-18 17:54:10 -03:00
waozi 79e9bd73a1 Vendor kryon with self-arming screenshot capture
Bump vendored kryon to master (112ebe3). Screenshot mode now arms
kryon's pre-swap capture itself (no wrapper-script env needed) and
writes the PNG through kryon's own writer, which works on this GL
stack where raylib's ExportImage silently drops the image.

Aero renders verified across home, practice config, WHM session,
calendar, habits stats, my practices, settings and theme selection,
light and dark, at 1080x1920.
2026-08-18 17:12:26 -03:00
waozi 2bdcb8911d Vendor kryon with the Aero widget style
Bump the vendored kryon to master (cba5140) which adds the Aero
(Vista/7 glass) widget style and the Aero palette, and widen the theme
style clamps so the style and palette are selectable in theme settings.
Existing Retro/Material/Mono picks are unaffected.
2026-08-18 16:15:28 -03:00
waozi fed87680e0 Harden CI and Release workflows against apt stalls
Add timeout-minutes to every job and apt retry/timeout options
(Acquire::Retries, Acquire::http/https::Timeout) to all apt-get
update/install calls, so a stalled package download fails fast
instead of hanging until the 6-hour job limit cancels the run.
2026-08-18 15:57:02 -03:00
waozi 70a805be76 Release 1.9.4 with corrected secondary windows 2026-08-17 22:10:42 -03:00
waozi b72c87380e Update Kryon secondary window texture sync 2026-08-17 21:42:46 -03:00
waozi af3d46ed32 Update Kryon Linux multi-window renderer 2026-08-17 21:39:41 -03:00
waozi fd74ec0bc9 Update Kryon tray path overflow fix 2026-08-17 20:23:25 -03:00
waozi 46bad17ccc Fix web build platform flags 2026-08-17 20:14:42 -03:00
waozi e2ed1b9f9f Update Kryon direct GNOME icon path 2026-08-17 20:10:27 -03:00
waozi 8baa7e81f0 release: add Android custom music support 2026-08-17 19:54:15 -03:00
waozi 722d8538b2 Update Kryon GNOME tray icon fix 2026-08-17 19:49:52 -03:00
waozi e11823cadc Finish WHM declaration modernization 2026-08-17 19:47:17 -03:00
waozi 0d1e6caeb4 Modernize WHM Kry declarations 2026-08-17 19:44:34 -03:00
waozi 2f66466ff8 Update Kryon code generator fix 2026-08-17 19:42:58 -03:00
waozi ed1564da24 Show break window separately on Wayland 2026-08-17 19:30:16 -03:00
waozi 7543d78fd8 Improve Wayland tray and break support 2026-08-17 19:11:24 -03:00
waozi 7ae492e1e5 site: use Kryon monospace stack 2026-08-17 13:51:25 -03:00
167 changed files with 7851 additions and 1619 deletions

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
# Copy to .env.play when you want to upload screenshots.
# Do not commit .env.play or the service-account JSON.
PLAY_PACKAGE_NAME=xyz.waozi.inbe
PLAY_SERVICE_ACCOUNT_JSON=/absolute/path/to/google-play-service-account.json
PLAY_LANGUAGE=en-US
PLAY_METADATA_IMAGES_DIR=fastlane/metadata/android/en-US/images
PLAY_IMAGE_TYPES=phoneScreenshots,sevenInchScreenshots,tenInchScreenshots
PLAY_DELETE_EXISTING=1
# Default is validate-only and discards the draft edit.
# Set to 1 only when you want the uploaded screenshots committed to Play.
PLAY_COMMIT=0
+1
View File
@@ -1 +1,2 @@
unpackaged_assets/**/*.ogg filter=lfs diff=lfs merge=lfs -text
test-fixtures/audio/*.mp3 filter=lfs diff=lfs merge=lfs -text
+1
View File
@@ -0,0 +1 @@
+2
View File
@@ -23,4 +23,6 @@ patchelf
pkg-config
podman
rpm
x11-utils
xvfb
zip
+1
View File
@@ -3,3 +3,4 @@ gcc-mingw-w64-i686-win32
gcc-mingw-w64-x86-64-win32
zlib1g-dev
zip
nsis
+68
View File
@@ -0,0 +1,68 @@
#!/usr/bin/env bash
set -euo pipefail
if [ "$#" -lt 1 ]; then
echo "usage: $0 PACKAGE_FILE [EXTRA_PACKAGE ...]" >&2
exit 2
fi
package_file="$1"
shift
if [ ! -f "$package_file" ]; then
echo "package file not found: $package_file" >&2
exit 2
fi
APT_CACHE_DIR="${APT_CACHE_DIR:-/tmp/apt-cache}"
codename="$(
. /etc/os-release
printf '%s' "${VERSION_CODENAME:-jammy}"
)"
# GitHub-hosted Ubuntu runners sometimes use an Azure mirrorlist that stalls.
# Pin Ubuntu packages to the canonical archive before running apt.
if [ -f /etc/apt/apt-mirrors.txt ]; then
printf '%s\n' 'https://archive.ubuntu.com/ubuntu' | sudo tee /etc/apt/apt-mirrors.txt >/dev/null
fi
while IFS= read -r -d '' source_file; do
sudo sed -i \
-e 's|mirror+file:/etc/apt/apt-mirrors.txt|https://archive.ubuntu.com/ubuntu|g' \
-e 's|http://azure.archive.ubuntu.com/ubuntu|https://archive.ubuntu.com/ubuntu|g' \
-e 's|http://archive.ubuntu.com/ubuntu|https://archive.ubuntu.com/ubuntu|g' \
"$source_file"
done < <(find /etc/apt -type f \( -name '*.list' -o -name '*.sources' \) -print0)
sudo tee /etc/apt/sources.list.d/ubuntu.sources >/dev/null <<EOF
Types: deb
URIs: https://archive.ubuntu.com/ubuntu
Suites: $codename ${codename}-updates ${codename}-backports ${codename}-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
EOF
mapfile -t raw_packages < "$package_file"
packages=()
for package in "${raw_packages[@]}" "$@"; do
if [ -z "$package" ] || [[ "$package" == \#* ]]; then
continue
fi
packages+=("$package")
done
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get \
-o Acquire::Retries=3 \
-o Acquire::http::Timeout=20 \
-o Acquire::https::Timeout=20 \
update
if [ "${#packages[@]}" -gt 0 ]; then
sudo apt-get \
-o Acquire::Retries=3 \
-o Acquire::http::Timeout=20 \
-o Acquire::https::Timeout=20 \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
fi
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
+45 -34
View File
@@ -17,9 +17,32 @@ concurrency:
cancel-in-progress: true
jobs:
guard-submodule-urls:
name: Submodule URLs are public HTTPS
runs-on: ubuntu-latest
steps:
# Plain checkout on purpose: the guard must not depend on fetching
# the submodules it validates (an SSH URL would break that fetch).
- name: Checkout Repository
uses: actions/checkout@v4
- name: Reject non-HTTPS submodule URLs
run: |
set -eu
if [ ! -f .gitmodules ]; then echo "no submodules - ok"; exit 0; fi
bad=$(grep -nE '^[[:space:]]*url[[:space:]]*=' .gitmodules \
| grep -vE '^[0-9]+:[[:space:]]*url[[:space:]]*=[[:space:]]*https://' || true)
if [ -n "$bad" ]; then
echo "::error::Non-HTTPS submodule URL(s) break fresh clones and CI:$bad"
exit 1
fi
echo "all submodule URLs HTTPS - ok"
test:
name: Test
runs-on: ubuntu-latest
needs: guard-submodule-urls
timeout-minutes: 60
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -28,7 +51,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
lfs: true
- name: Cache Test apt packages
@@ -40,15 +63,8 @@ jobs:
test-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Test Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/test-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
- name: Run Tests
run: make test
@@ -56,6 +72,7 @@ jobs:
build-chrome-extension:
name: Build Chrome Extension
runs-on: ubuntu-latest
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -65,7 +82,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
lfs: true
- name: Cache Web apt packages
@@ -77,15 +94,8 @@ jobs:
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Node.js
uses: actions/setup-node@v4
@@ -115,9 +125,16 @@ jobs:
set -euo pipefail
make web-smoke-test
- name: Run Canvas Web Smoke Test
run: |
set -euo pipefail
make web-canvas
make web-canvas-smoke-test
build-firefox-addons:
name: Build Firefox Add-on
runs-on: ubuntu-latest
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -127,7 +144,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
lfs: true
- name: Cache Web apt packages
@@ -139,15 +156,8 @@ jobs:
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Node.js
uses: actions/setup-node@v4
@@ -174,14 +184,15 @@ jobs:
make firefox-addons-lint
- name: Install Firefox (Mozilla build)
timeout-minutes: 15
run: |
set -euo pipefail
sudo apt-get install -y --no-install-recommends xvfb \
libgl1-mesa-dri libgl1 libegl1 mesa-utils || true
sudo apt-get install -y --no-install-recommends \
.github/scripts/install-apt-packages.sh .github/apt/empty-packages.txt \
xvfb libgl1-mesa-dri libgl1 libegl1 mesa-utils || true
.github/scripts/install-apt-packages.sh .github/apt/empty-packages.txt \
libgtk-3-0t64 libx11-xcb1 libxcb-shm0 libasound2t64 libdbus-glib-1-2 \
libxt6t64 libxtst6 libpci3 || \
sudo apt-get install -y --no-install-recommends \
.github/scripts/install-apt-packages.sh .github/apt/empty-packages.txt \
libgtk-3-0 libx11-xcb1 libxcb-shm0 libasound2 libdbus-glib-1-2 libxt6 libxtst6 libpci3
curl -sL "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US" \
-o "$HOME/firefox.tar.xz"
+3 -12
View File
@@ -27,11 +27,8 @@ jobs:
lfs: true
- name: Install Packages
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
sudo apt-get update
sudo apt-get install -y "${packages[@]}" tcl
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set Up Emscripten
run: |
@@ -105,18 +102,12 @@ jobs:
name: inbe-site
path: build/site
- name: Install Packages
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y zip
- name: Package Site
run: |
set -euo pipefail
test -f build/site/index.html
cd build/site
zip -qr ../inbe-site.zip .
python3 -m zipfile -c ../inbe-site.zip .
test -s ../inbe-site.zip
- name: Deploy Production To Netlify
+156 -110
View File
@@ -17,6 +17,7 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 60
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -25,7 +26,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
lfs: true
- name: Cache Test apt packages
@@ -37,15 +38,8 @@ jobs:
test-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Test Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/test-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
- name: Run Tests
run: make test
@@ -53,6 +47,7 @@ jobs:
build-web:
name: Build Web
runs-on: ubuntu-latest
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -62,7 +57,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
lfs: true
- name: Cache Web apt packages
@@ -74,15 +69,8 @@ jobs:
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Node.js
uses: actions/setup-node@v4
@@ -118,6 +106,7 @@ jobs:
build-chrome-extension:
name: Build Chrome Extension
runs-on: ubuntu-latest
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -127,7 +116,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
lfs: true
- name: Cache Web apt packages
@@ -139,15 +128,8 @@ jobs:
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Emscripten
run: |
@@ -178,6 +160,7 @@ jobs:
build-firefox-addons:
name: Build Firefox Add-on
runs-on: ubuntu-latest
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -187,7 +170,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
lfs: true
- name: Cache Web apt packages
@@ -199,15 +182,8 @@ jobs:
web-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Web Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/web-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
- name: Set up Node.js
uses: actions/setup-node@v4
@@ -244,6 +220,7 @@ jobs:
build-linux-appimage:
name: Build Linux AppImage
runs-on: ubuntu-22.04
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -253,7 +230,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
- name: Cache Linux apt packages
uses: actions/cache@v4
@@ -264,15 +241,8 @@ jobs:
linux-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Linux Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/linux-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/linux-packages.txt
- name: Install AppImage Tools
run: |
@@ -304,13 +274,12 @@ jobs:
test -n "$(find build/release/linux -type f -print -quit)"
- name: Smoke Test Linux AppImage
timeout-minutes: 5
env:
APPIMAGE_EXTRACT_AND_RUN: "1"
DISPLAY: ":99"
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y xvfb x11-utils
appimage="$(find build/release/linux -maxdepth 1 -type f -name '*.AppImage' | head -n 1)"
chmod +x "$appimage"
Xvfb "$DISPLAY" -screen 0 800x600x24 >/tmp/inbe-xvfb.log 2>&1 &
@@ -344,6 +313,7 @@ jobs:
build-linux-deb:
name: Build Linux Deb
runs-on: ubuntu-22.04
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -353,7 +323,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
- name: Cache Linux apt packages
uses: actions/cache@v4
@@ -364,15 +334,8 @@ jobs:
linux-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Linux Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/linux-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/linux-packages.txt
- name: Build Debian Package
run: |
@@ -395,6 +358,7 @@ jobs:
build-linux-rpm:
name: Build Linux RPM
runs-on: ubuntu-22.04
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -404,7 +368,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
- name: Cache Linux apt packages
uses: actions/cache@v4
@@ -415,15 +379,8 @@ jobs:
linux-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Linux Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/linux-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/linux-packages.txt
- name: Build RPM Package
run: |
@@ -446,6 +403,7 @@ jobs:
build-linux-snap:
name: Build Linux Snap
runs-on: ubuntu-22.04
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -455,7 +413,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
- name: Cache Linux apt packages
uses: actions/cache@v4
@@ -466,15 +424,8 @@ jobs:
linux-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Linux Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/linux-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/linux-packages.txt
- name: Build Snap Package
run: |
@@ -494,6 +445,7 @@ jobs:
build-linux-flatpak:
name: Build Linux Flatpak
runs-on: ubuntu-22.04
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -503,7 +455,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
- name: Cache Linux apt packages
uses: actions/cache@v4
@@ -514,15 +466,8 @@ jobs:
linux-apt-${{ runner.os }}-${{ runner.arch }}-
- name: Install Linux Dependencies
run: |
set -euo pipefail
mapfile -t packages < .github/apt/linux-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/linux-packages.txt
- name: Build Flatpak Bundle
run: |
@@ -542,6 +487,7 @@ jobs:
build-freebsd:
name: Build FreeBSD Package
runs-on: ubuntu-latest
timeout-minutes: 60
needs: test
steps:
@@ -549,7 +495,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
- name: Build FreeBSD .pkg
uses: vmactions/freebsd-vm@v1
@@ -557,7 +503,14 @@ jobs:
release: "14.3"
usesh: true
prepare: |
pkg install -y gmake cmake pkgconf sdl2 gtk3 curl sqlite3 mesa-libs libdrm hicolor-icon-theme desktop-file-utils
for attempt in 1 2 3; do
pkg install -y gmake cmake pkgconf sdl2 gtk3 curl sqlite3 mesa-libs libdrm hicolor-icon-theme desktop-file-utils && break
if [ "$attempt" -eq 3 ]; then
exit 1
fi
pkg update -f
sleep 10
done
run: |
set -eu
gmake package-freebsd
@@ -575,6 +528,7 @@ jobs:
build-windows:
name: Build Windows
runs-on: ubuntu-latest
timeout-minutes: 60
needs: test
env:
APT_CACHE_DIR: /tmp/apt-cache
@@ -584,7 +538,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
- name: Cache Windows apt packages
uses: actions/cache@v4
@@ -605,15 +559,10 @@ jobs:
windows-vendor-${{ runner.os }}-${{ runner.arch }}-
- name: Install Windows Dependencies
timeout-minutes: 15
run: |
set -euo pipefail
mapfile -t packages < .github/apt/windows-packages.txt
mkdir -p "$APT_CACHE_DIR/partial"
sudo apt-get update
sudo apt-get \
-o Dir::Cache::archives="$APT_CACHE_DIR" \
install -y "${packages[@]}"
sudo chown -R "$USER:$USER" "$APT_CACHE_DIR"
.github/scripts/install-apt-packages.sh .github/apt/windows-packages.txt
if [ -x /usr/bin/x86_64-w64-mingw32-gcc-win32 ]; then
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-win32
fi
@@ -621,12 +570,12 @@ jobs:
sudo update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-win32
fi
- name: Build Windows ZIP
- name: Build Windows ZIP and Setup
run: |
set -euo pipefail
make windows
make windows windows-setup
mkdir -p build/release/windows
find build/dist/windows -maxdepth 1 -type f -name '*.zip' -exec cp {} build/release/windows/ \;
find build/dist/windows -maxdepth 1 -type f \( -name '*.zip' -o -name '*-setup-*.exe' \) -exec cp {} build/release/windows/ \;
test -n "$(find build/release/windows -type f -print -quit)"
- name: Upload Windows Artifact
@@ -639,6 +588,7 @@ jobs:
build-android:
name: Build Android
runs-on: ubuntu-latest
timeout-minutes: 60
needs: test
steps:
@@ -646,7 +596,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
- name: Set up JDK 21
uses: actions/setup-java@v4
@@ -745,6 +695,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- build-web
- build-chrome-extension
@@ -768,6 +719,12 @@ jobs:
with:
fetch-depth: 0
- name: Checkout Kryon Appcast Tool
run: |
set -euo pipefail
git submodule update --init --depth 1 vendor/kryon
test -f vendor/kryon/scripts/make_appcast.py
- name: Download Release Artifacts
uses: actions/download-artifact@v4
with:
@@ -782,6 +739,8 @@ jobs:
- name: Create and Push Tag If Version Is New
id: tag_version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
VERSION=$(sed -n 's/^#define INBE_VERSION_STRING "\([^"]*\)".*/\1/p' src/core/version.h)
@@ -793,8 +752,13 @@ jobs:
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "tag_name=$TAG" >> "$GITHUB_OUTPUT"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag $TAG exists, skipping release"
echo "tag_pushed=false" >> "$GITHUB_OUTPUT"
if gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
echo "Tag $TAG and its GitHub release already exist, skipping release"
echo "tag_pushed=false" >> "$GITHUB_OUTPUT"
else
echo "Tag $TAG exists but its GitHub release is missing; publishing release"
echo "tag_pushed=true" >> "$GITHUB_OUTPUT"
fi
else
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
@@ -803,6 +767,37 @@ jobs:
echo "tag_pushed=true" >> "$GITHUB_OUTPUT"
fi
- name: Generate Update Appcast
if: steps.tag_version.outputs.tag_pushed == 'true'
run: |
set -euo pipefail
VERSION='${{ steps.tag_version.outputs.version }}'
TAG="v$VERSION"
BASE="https://github.com/waozixyz/inbe/releases/download/$TAG"
APPIMAGE="$(find build/release -maxdepth 2 -name '*.AppImage' -print -quit || true)"
WINZIP="$(find build/release -maxdepth 2 -name '*-windows.zip' -print -quit || true)"
DEB="$(find build/release -maxdepth 2 -name '*.deb' -print -quit || true)"
RPM="$(find build/release -maxdepth 2 -name '*.rpm' -print -quit || true)"
channels=()
if [ -n "$APPIMAGE" ]; then
ARCH_NAME="$(dpkg --print-architecture 2>/dev/null || echo amd64)"
channels+=("--channel" "appimage-$ARCH_NAME=$APPIMAGE")
fi
[ -n "$WINZIP" ] && channels+=("--channel" "windows=$WINZIP")
[ -n "$DEB" ] && channels+=("--channel" "deb=$DEB")
[ -n "$RPM" ] && channels+=("--channel" "rpm=$RPM")
if [ ${#channels[@]} -eq 0 ]; then
echo "no release artifacts found for the appcast"
exit 1
fi
python3 vendor/kryon/scripts/make_appcast.py \
--version "$VERSION" \
--base-url "$BASE" \
--notes-url "https://github.com/waozixyz/inbe/releases/tag/$TAG" \
--changelog CHANGELOG.md \
--out build/release/appcast.json \
"${channels[@]}"
- name: Create GitHub Release
if: steps.tag_version.outputs.tag_pushed == 'true'
uses: softprops/action-gh-release@v2
@@ -817,6 +812,7 @@ jobs:
publish-itch:
name: Publish itch.io
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- build-web
- release
@@ -833,6 +829,9 @@ jobs:
exit 1
fi
- name: Checkout Repository
uses: actions/checkout@v4
- name: Download Release Artifacts
uses: actions/download-artifact@v4
with:
@@ -841,10 +840,10 @@ jobs:
merge-multiple: true
- name: Install Butler
timeout-minutes: 15
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y unzip
.github/scripts/install-apt-packages.sh .github/apt/empty-packages.txt unzip
curl -fsSL \
https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default \
-o "$RUNNER_TEMP/butler.zip"
@@ -909,6 +908,7 @@ jobs:
publish-google-play:
name: Publish Google Play Production
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- build-android
- release
@@ -943,6 +943,7 @@ jobs:
publish-amazon:
name: Publish Amazon Appstore
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- build-android
- release
@@ -995,6 +996,7 @@ jobs:
publish-chrome-web-store:
name: Publish Chrome Web Store
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- build-chrome-extension
- release
@@ -1119,6 +1121,7 @@ jobs:
publish-firefox-addons:
name: Publish Firefox Add-ons
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- build-firefox-addons
- release
@@ -1176,3 +1179,46 @@ jobs:
--api-secret "$AMO_JWT_SECRET"; then
echo "::warning::Firefox Add-ons publish failed; release artifacts were still created"
fi
publish-winget:
name: Publish winget manifest
runs-on: ubuntu-latest
timeout-minutes: 15
needs: release
if: needs.release.outputs.tag_pushed == 'true'
env:
WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
steps:
- name: Check winget Token
run: |
if [ -z "${WINGET_TOKEN:-}" ]; then
echo "WINGET_TOKEN secret not set; skipping winget manifest update"
exit 0
fi
- name: Download wingetcreate
if: env.WINGET_TOKEN != ''
run: |
set -euo pipefail
curl -fsSL \
https://github.com/russellbanks/wingetcreate/releases/latest/download/wingetcreate-linux-x64.tar.gz \
-o /tmp/wingetcreate.tar.gz
tar -xzf /tmp/wingetcreate.tar.gz -C "$HOME"
chmod +x "$HOME/wingetcreate"
- name: Submit winget manifest update
if: env.WINGET_TOKEN != ''
run: |
set -euo pipefail
VERSION='${{ needs.release.outputs.version }}'
SETUP_URL="https://github.com/waozixyz/inbe/releases/download/v$VERSION/inbe-windows-setup-$VERSION.exe"
if ! curl -fsSL -o /dev/null "$SETUP_URL"; then
echo "::warning::setup exe not published yet; skipping winget update"
exit 0
fi
"$HOME/wingetcreate" update xyz.waozi.inbe \
--version "$VERSION" \
--urls "$SETUP_URL#x64" "$SETUP_URL#x86" \
--submit \
--token "$WINGET_TOKEN"
+3
View File
@@ -24,6 +24,9 @@ node_modules
.claude.json
.bash_history
.env
.env.play
.secrets/
/inbe.log
*.exe
+7
View File
@@ -0,0 +1,7 @@
# Inbe Agent Instructions
- Never edit files under `vendor/` from this repository.
- Kryon changes must be made in the core Kryon repository, committed there, pushed there, and then brought into Inbe by updating the Kryon submodule pointer.
- Do not add tests, policy checks, wrappers, compatibility aliases, or generated changes inside `vendor/` from Inbe.
- If a task appears to require a vendor change, stop and switch to the upstream project workflow first.
- Run `make no-vendor-edits` or `make test` before handing work back when a task touches Kryon or other vendored code.
+65
View File
@@ -1,4 +1,69 @@
# Changelog
## [1.9.8] - 2026-08-21
### Added
- Desktop break reminders now include a Habits action beside the practice launch buttons, so habits can be managed directly from a break window.
### Changed
- Store screenshots now focus on Android-relevant practice and habit screens, including Pattern Breathing, Meditation, Sun Salutation and multiple Material color themes.
- Fastlane screenshot exports now use compressed PNG files consistently for Google Play and F-Droid metadata.
- Regenerated Google Play and F-Droid screenshots with the corrected practice artwork, Pattern Breathing, Habits, Wim Hof how-to and Cobalt dark screens.
### Fixed
- Screenshot scene setup now opens the intended Habits overview, Habits statistics, Meditation and Sun Salutation screens.
- Native screenshot capture now exits cleanly and writes valid PNG rows for downstream image tooling.
- Practice banner images now resolve from the embedded asset table on Android/native builds, preventing missing or faded-looking artwork in packaged releases.
- Donation wallet buttons now open Bitcoin and Monero URI intents through Kryon and show a clear toast when no wallet app is installed.
- Monero and Bitcoin donation links now use minimal address-plus-amount wallet URIs for better compatibility with Cake Wallet and other wallet apps.
- Web and browser-extension builds are available again after fixing secure donation-link handling.
## [1.9.7] - 2026-08-20
### Added
- Pattern Breathing is now available wherever practice-specific options are shown, including the leaderboard, habits and music assignment.
- Every practice can now have background music assigned directly from its practice settings.
### Changed
- Audio settings now use one music import action and show the practices that already have music assigned.
- Practices are ordered consistently as Wim Hof, Pattern Breathing, Meditation and Sun Salutation.
- Practice banners now follow the active visual style, sit cleanly inside their rounded borders and keep a small bottom gap from the controls below.
### Fixed
- Leaderboard filtering keeps showing the last loaded rows while fresh data loads, instead of replacing the table with a loading placeholder.
- Breathing-pattern leaderboards now keep the full friends list visible instead of collapsing to only the current user.
- Leaderboard streak ties now use the secondary stat when one exists, such as average hold for Wim Hof.
- Music download, install and playback-test status messages are now translated.
## [1.9.6] - 2026-08-19
### Changed
- Donation reminders now wait until 30 completed practices, repeat only after another 30 practices, and offer Donate, Skip, or Dismiss forever without a separate remind-later option.
### Fixed
- Web builds now fall back to the Canvas renderer automatically when WebGL is unavailable, instead of stopping on a WebGL-disabled message.
- Canvas hover cursors now update consistently while using the Canvas renderer.
- Break reminders and break settings stay desktop-only and no longer appear in the Web settings sidebar.
- Desktop break timer windows now stay visible when switching workspaces.
## [1.9.5] - 2026-08-19
### Added
- Desktop update notifications: the app checks once a day for a new release and shows a toast plus a row in Settings → About. AppImage and Windows users can download and install the update from there — the download is checksum-verified and, with one click on "Restart to update", replaces the app in place. Linux package, Snap and Flatpak installs are left to the system's own updater, and AppImage builds now also carry AppImageUpdate delta-update information.
- Windows releases now also ship a classic installer (inbe-windows-setup) beside the portable zip, and a winget manifest is submitted on each release, so Windows 10/11 users can install and auto-update Inner Breeze through winget.
- A gentle monthly donation reminder can now be postponed, skipped for the month, dismissed forever, or opened directly in a wallet on native builds.
## [1.9.4] - 2026-08-17
### Fixed
- Desktop break, timer and other auxiliary windows now render upright and stay visually in sync when more than one window is open.
## [1.9.3] - 2026-08-17
### Added
- Custom MP3 music can be imported and selected independently for Wim Hof, Meditation and Sun Salutation practices.
### Changed
- Running sessions now provide separate top-left controls for sound effects and background-music volume.
### Fixed
- Custom MP3 tracks now decode and play during Wim Hof sessions, including after restarting the app; previewing music no longer starts a practice.
- Music download failures now offer clear Cancel and Retry actions instead of ambiguous buttons.
- Daily break progress and skipped state persist across app restarts and reset only at the configured daily boundary.
## [1.9.2] - 2026-08-17
### Added
- Breathing Patterns with Box, 4-7-8, coherent, extended-exhale and custom timed breathing sessions.
+194 -53
View File
@@ -107,6 +107,8 @@ APP_ORIGIN := games/inbe
APP_LICENSE := BSD3CLAUSE
APP_DESKTOP := $(LINUX_APPIMAGE_DESKTOP)
APP_ICON := $(LINUX_APPIMAGE_ICON)
APP_DESKTOP_ID := $(APP_ID)
APP_ICON_NAME := $(APP_ID)
APP_ICON_SIZE := 512x512
APP_METAINFO := $(LINUX_APPIMAGE_APPDATA)
FREEBSD_PKG_DEPS := curl:ftp/curl gtk3:x11-toolkits/gtk30 hicolor-icon-theme:misc/hicolor-icon-theme libdrm:graphics/libdrm mesa-libs:graphics/mesa-libs sdl2:devel/sdl20 sqlite3:databases/sqlite3
@@ -157,6 +159,7 @@ WIN64_CC ?= $(or $(WIN_CC),x86_64-w64-mingw32-gcc)
WIN64_AR ?= $(or $(WIN_AR),x86_64-w64-mingw32-ar)
WIN64_RANLIB ?= $(or $(WIN_RANLIB),x86_64-w64-mingw32-ranlib)
WIN64_STRIP ?= $(or $(WIN_STRIP),x86_64-w64-mingw32-strip)
WIN64_WINDRES ?= x86_64-w64-mingw32-windres
WIN64_CMAKE_SYSTEM_PROCESSOR ?= x86_64
WIN64_CC_PATH := $(shell command -v $(WIN64_CC) 2>/dev/null || printf '%s' $(WIN64_CC))
WIN64_AR_PATH := $(shell command -v $(WIN64_AR) 2>/dev/null || printf '%s' $(WIN64_AR))
@@ -166,6 +169,7 @@ WIN32_CC ?= i686-w64-mingw32-gcc
WIN32_AR ?= i686-w64-mingw32-ar
WIN32_RANLIB ?= i686-w64-mingw32-ranlib
WIN32_STRIP ?= i686-w64-mingw32-strip
WIN32_WINDRES ?= i686-w64-mingw32-windres
WIN32_CMAKE_SYSTEM_PROCESSOR ?= x86
WIN32_CC_PATH := $(shell command -v $(WIN32_CC) 2>/dev/null || printf '%s' $(WIN32_CC))
WIN32_AR_PATH := $(shell command -v $(WIN32_AR) 2>/dev/null || printf '%s' $(WIN32_AR))
@@ -186,6 +190,8 @@ WIN32_CURL_A := $(WIN32_CURL_BUILD_DIR)/lib/libcurl.a
WIN32_LIBOQS_BUILD_DIR := $(VENDOR_BUILD_DIR)/windows/$(WIN32_ARCH)/liboqs
WIN32_LIBOQS_A := $(WIN32_LIBOQS_BUILD_DIR)/lib/liboqs.a
WIN32_LIBOQS_INCLUDE := -I$(WIN32_LIBOQS_BUILD_DIR)/include
WIN64_RESOURCE := $(BUILD_OBJ_DIR)/windows/$(WIN64_ARCH)/inbe.res
WIN32_RESOURCE := $(BUILD_OBJ_DIR)/windows/$(WIN32_ARCH)/inbe.res
WEB_RAYLIB_BUILD_DIR := $(VENDOR_BUILD_DIR)/web/raylib
WEB_RAYLIB_A := $(WEB_RAYLIB_BUILD_DIR)/libraylib.web.a
RAYLIB_SOURCES := $(shell find $(RAYLIB_DIR) -type f \( -name '*.c' -o -name '*.h' \))
@@ -195,7 +201,10 @@ KRYON_ICON_FILES := $(foreach dir,$(KRYON_ICON_DIRS),$(wildcard $(KRYON_DIR)/$(d
KRYON_ICON_ASSETS_C := $(KRYON_DIR)/src/ui/ui_icon_assets.c
KRYON_ICON_STAMP := $(BUILD_OBJ_DIR)/kryon-icons.sha256
KRYON_SRCS := $(filter-out $(KRYON_ICON_ASSETS_C),$(shell find $(KRYON_DIR)/src -type f -name '*.c' | LC_ALL=C sort)) $(KRYON_ICON_ASSETS_C)
KRYON_WEB_SRCS := $(KRYON_SRCS)
# The raylib web build links the generated raylib wrappers; the canvas
# backend sources define the same public surface and belong only to the
# web-canvas target (which drops the wrappers instead).
KRYON_WEB_SRCS := $(filter-out $(KRYON_DIR)/src/backend/canvas_%.c,$(KRYON_SRCS))
KRYON_WINDOWS_SRCS := $(filter-out $(KRYON_DIR)/src/file_dialog/file_dialog.c,$(KRYON_SRCS))
KRYON_CLICK_SRCS := $(filter-out $(KRYON_DIR)/src/file_dialog/file_dialog.c,$(KRYON_SRCS))
KRYON_INCLUDE := -I$(KRYON_DIR)/include
@@ -293,13 +302,12 @@ SYNC_ACCOUNT_TEST := $(TEST_BIN_DIR)/sync_account_test
SYNC_REVIEW_TEST := $(TEST_BIN_DIR)/sync_review_test
FONT_LOCALE_TEST := $(TEST_BIN_DIR)/font_locale_test
FONT_GLYPH_COVERAGE_TEST := $(TEST_BIN_DIR)/font_glyph_coverage_test
GUIDE_OVERLAY_TEST := $(TEST_BIN_DIR)/guide_overlay_test
APP_BOTTOM_NAV_TEST := $(TEST_BIN_DIR)/app_bottom_nav_test
BREATH_TIMING_TEST := $(TEST_BIN_DIR)/breath_timing_test
BREAK_ENGINE_TEST := $(TEST_BIN_DIR)/break_engine_test
ACTIVITY_MONITOR_TEST := $(TEST_BIN_DIR)/activity_monitor_test
SETTINGS_KEYS_TEST := $(TEST_BIN_DIR)/settings_keys_test
TESTS := $(STORAGE_IMPORT_TEST) $(LOCALE_KEYS_TEST) $(SYNC_URL_TEST) $(SYNC_ACCOUNT_TEST) $(SYNC_REVIEW_TEST) $(FONT_LOCALE_TEST) $(FONT_GLYPH_COVERAGE_TEST) $(GUIDE_OVERLAY_TEST) $(APP_BOTTOM_NAV_TEST) $(BREATH_TIMING_TEST) $(BREAK_ENGINE_TEST) $(ACTIVITY_MONITOR_TEST) $(SETTINGS_KEYS_TEST)
TESTS := $(STORAGE_IMPORT_TEST) $(LOCALE_KEYS_TEST) $(SYNC_URL_TEST) $(SYNC_ACCOUNT_TEST) $(SYNC_REVIEW_TEST) $(FONT_LOCALE_TEST) $(FONT_GLYPH_COVERAGE_TEST) $(APP_BOTTOM_NAV_TEST) $(BREATH_TIMING_TEST) $(BREAK_ENGINE_TEST) $(ACTIVITY_MONITOR_TEST) $(SETTINGS_KEYS_TEST)
RUNTIME_ASSET_CFLAGS := -DHAS_LIBCURL=1 $(KRYON_CURL_CFLAGS)
RUNTIME_ASSET_LDLIBS := $(KRYON_CURL_LDLIBS)
@@ -351,7 +359,7 @@ SYSTEM_THEME_CFLAGS :=
SYSTEM_THEME_LDLIBS :=
LOCALE_FILES := $(wildcard locales/*.txt)
IMAGE_FILES := assets/app/icon.png assets/easteregg/art.png assets/easteregg/waozi.png assets/practices/whm/1.png assets/practices/whm/2.png assets/practices/meditation/1.png assets/pet/egg1.png $(wildcard assets/practices/*/banner.png) assets/practices/sunsalutation/poses_man_sheet.png assets/practices/sunsalutation/poses_woman_sheet.png
IMAGE_FILES := assets/app/icon.png assets/easteregg/art.png assets/easteregg/waozi.png assets/practices/whm/1.png assets/practices/whm/2.png assets/practices/meditation/1.png assets/pet/egg1.png $(wildcard assets/practices/*/banner.png) assets/practices/sunsalutation/poses_man_sheet.png assets/practices/sunsalutation/poses_woman_sheet.png assets/practices/sunsalutation/transition_01_01_to_02_man_sheet.png assets/practices/sunsalutation/transition_02_02_to_03_man_sheet.png
SOUND_FILES := $(wildcard assets/sounds/*.ogg)
FONT_SUBSET_DIR := assets/fonts/subset
FONT_SUBSET_CORPUS := locales assets/fonts/input_common.txt
@@ -371,6 +379,7 @@ KRY_PROJECT_HDR := $(KRY_GEN_DIR)/kryon_project.h
KRY_PROJECT_C := $(KRY_GEN_DIR)/kryon_project.c
KRY_GEN_STAMP := $(KRY_GEN_DIR)/.fresh
SRC := $(APP_SRCS) $(KRY_GEN_SRCS) $(EMBEDDED_ASSETS_C)
WINDOWS_SRC := $(filter-out src/platform/inbe_desktop_tray.c,$(SRC)) src/platform/inbe_desktop_tray.c
KRYON_HOST_APP_SRCS := $(filter-out src/main.c src/platform/inbe_desktop_tray.c,$(APP_SRCS)) $(KRY_GEN_SRCS) $(KRY_PROJECT_C)
KRYON_HOST_RUNTIME_SRCS := $(KRYON_DIR)/src/core/embedded_assets.c
KRYON_HOST_SRC := $(KRYON_HOST_APP_SRCS) $(KRYON_HOST_RUNTIME_SRCS) $(EMBEDDED_ASSETS_C)
@@ -397,11 +406,11 @@ endif
KRYON_RAYLIB_AUDIO_PERIOD_CONFIG := $(if $(strip $(KRYON_RAYLIB_AUDIO_PERIOD_FRAMES)),-DAUDIO_DEVICE_PERIOD_SIZE_IN_FRAMES=$(KRYON_RAYLIB_AUDIO_PERIOD_FRAMES),)
KRYON_RAYLIB_AUDIO_PERIODS_CONFIG := $(if $(strip $(KRYON_RAYLIB_AUDIO_PERIODS)),-DAUDIO_DEVICE_PERIODS=$(KRYON_RAYLIB_AUDIO_PERIODS),)
APP_RAYLIB_CONFIG := $(filter-out -DSUPPORT_MODULE_RAUDIO=0 -DSUPPORT_FILEFORMAT_PNG=0 -DSUPPORT_FILEFORMAT_JPG=0 -DSUPPORT_FILEFORMAT_OGG=0 -DSUPPORT_FILEFORMAT_MP3=%,$(RAY_RAYLIB_CONFIG)) -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1 -DSUPPORT_FILEFORMAT_MP3=0 $(KRYON_RAYLIB_AUDIO_PERIOD_CONFIG) $(KRYON_RAYLIB_AUDIO_PERIODS_CONFIG)
COMMON_CFLAGS := -Wall -Wextra -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DUI_EMBEDDED_ONLY=1
COMMON_CFLAGS := -Wall -Wextra -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DUI_EMBEDDED_ONLY=1 -DUI_WINDOW_HAVE_SDL
CFLAGS := $(COMMON_CFLAGS) -std=c99 $(RUNTIME_ASSET_CFLAGS) $(SYSTEM_THEME_CFLAGS) $(DESKTOP_TRAY_CFLAGS) $(KRYON_NOTIFICATION_CPPFLAGS) $(KRYON_NOTIFICATION_CFLAGS)
NATIVE_SYSTEM_LDLIBS := $(KRYON_NOTIFICATION_LDLIBS) -lm -lpthread $(if $(filter linux,$(NATIVE_PLATFORM)),-ldl -lrt,) $(SYSTEM_THEME_LDLIBS)
WINDOWS_CFLAGS := -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DUI_EMBEDDED_ONLY=1
WEB_CFLAGS := $(filter-out -Os,$(COMMON_CFLAGS)) -O1 -std=gnu99
WINDOWS_CFLAGS := -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DUI_EMBEDDED_ONLY=1 -DINBE_DESKTOP_TRAY_ENABLED
WEB_CFLAGS := $(filter-out -Os -DUI_WINDOW_HAVE_SDL,$(COMMON_CFLAGS)) -O1 -std=gnu99
CLICK_CFLAGS := -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES -DUI_EMBEDDED_ONLY=1 -DINBE_DISABLE_KRYON_FILE_DIALOG -DHAS_LIBCURL=1 $(AARCH64_KRYON_CURL_CFLAGS)
LDFLAGS := -Wl,--gc-sections -s
WINDOWS_LDFLAGS := -Wl,--gc-sections -static -static-libgcc -mwindows
@@ -431,9 +440,14 @@ WINDOWS_DIST := $(WINDOWS_DIST_DIR)/$(APP_NAME)-windows.zip
APPIMAGE_NAME := $(APP_NAME)-linux-$(ARCH).AppImage
APPIMAGE_TARGET := $(LINUX_DIST_DIR)/$(APPIMAGE_NAME)
LINUXDEPLOY ?= linuxdeploy
WEB_CC ?= emcc
WEB_AR ?= emar
WEB_RANLIB ?= emranlib
WEB_EMSDK_BIN ?= $(HOME)/emsdk/upstream/emscripten
WEB_CC ?= $(if $(wildcard $(WEB_EMSDK_BIN)/emcc),$(WEB_EMSDK_BIN)/emcc,emcc)
WEB_AR ?= $(if $(wildcard $(WEB_EMSDK_BIN)/emar),$(WEB_EMSDK_BIN)/emar,emar)
WEB_RANLIB ?= $(if $(wildcard $(WEB_EMSDK_BIN)/emranlib),$(WEB_EMSDK_BIN)/emranlib,emranlib)
WEB_EMCMAKE ?= $(if $(wildcard $(WEB_EMSDK_BIN)/emcmake),$(WEB_EMSDK_BIN)/emcmake,emcmake)
ifneq ($(wildcard $(WEB_EMSDK_BIN)/emcc),)
export PATH := $(WEB_EMSDK_BIN):$(PATH)
endif
include $(KRYON_DIR)/mk/raylib.mk
KRYON_SRCS += $(KRYON_RAYLIB_WRAPPERS_C)
KRYON_WEB_SRCS += $(KRYON_RAYLIB_WRAPPERS_C)
@@ -441,9 +455,16 @@ KRYON_WINDOWS_SRCS += $(KRYON_RAYLIB_WRAPPERS_C)
KRYON_CLICK_SRCS += $(KRYON_RAYLIB_WRAPPERS_C)
WEB_CACHE_BUSTER ?= $(shell if git diff --quiet --ignore-submodules HEAD -- 2>/dev/null; then git rev-parse --short HEAD 2>/dev/null; else date +%s; fi)
WEB_TARGET := $(WEB_DIST_DIR)/index.html
WEB_APP_SCRIPT := <script>window.__inbeLoadApp("index.js?v=$(WEB_CACHE_BUSTER)")</script>
WEB_APP_SCRIPT := <script>window.__inbeRenderer="raylib";window.__inbeLoadApp("index.js?v=$(WEB_CACHE_BUSTER)")</script>
WEB_JS_TARGET := $(WEB_DIST_DIR)/index.js
WEB_BOOT_JS := src/web_boot.js
# Canvas-backend web build: kryon's HTML5 Canvas2D Tier A backend instead of
# raylib+GLFW - no libraylib.web.a, no WebGL. The app and support libraries
# are still Emscripten/WASM, including ksync/liboqs for sync-account parity.
WEB_CANVAS_DIR := $(BUILD_DIST_DIR)/web-canvas
WEB_CANVAS_TARGET := $(WEB_CANVAS_DIR)/index.html
WEB_CANVAS_APP_SCRIPT := <script>window.__inbeRenderer="canvas";window.__inbeLoadApp("index.js?v=$(WEB_CACHE_BUSTER)")</script>
KRYON_CANVAS_SRCS := $(filter-out $(KRYON_RAYLIB_WRAPPERS_C),$(KRYON_SRCS))
WEB_DIST_ZIP := $(BUILD_DIST_DIR)/$(APP_NAME)-web.zip
WEB_SMOKE_BROWSER ?= auto
WEB_SMOKE_TEST := scripts/web-smoke-test.mjs
@@ -451,6 +472,9 @@ WEB_APP_URL ?= https://inbe.waozi.xyz/
CHROME_WEB_STORE_ZIP := $(BUILD_DIST_DIR)/$(APP_NAME)-chrome-web-store.zip
CHROME_WEB_STORE_MANIFEST := packaging/chrome-web-store/manifest.json
CHROME_WEB_STORE_WORKER := packaging/chrome-web-store/service_worker.js
CHROME_WEB_STORE_EXTENSION_BOOT := packaging/chrome-web-store/extension_boot.js
CHROME_WEB_STORE_EXTENSION_APP := packaging/chrome-web-store/extension_app.js
CHROME_WEB_STORE_EXTENSION_CANVAS_APP := packaging/chrome-web-store/extension_canvas_app.js
CHROME_WEB_STORE_ICON_DIR := packaging/chrome-web-store/icons
CHROME_WEB_STORE_ICONS := \
$(CHROME_WEB_STORE_ICON_DIR)/icon-16.png \
@@ -479,7 +503,8 @@ MEDITATION_AUDIO_TRACKS := \
include $(KRYON_DIR)/mk/package-freebsd.mk
.PHONY: all native kryon-host install install-user uninstall stage package-freebsd deb package-deb deb-check rpm package-rpm rpm-check snap package-snap snap-cache-clean flatpak package-flatpak podman-check validate-desktop run run-fresh screenshot test ci dist appimage click click-verify vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows font-subsets font-bundle-check clean clean-linux clean-native clean-vendor-builds android-avd android-check-keystore android-copy-assets android-copy-debug-apks android-copy-release-apks android-copy-bundle android-smoke android-local-properties android-debug android-release android-bundle android-install android-install-release android-clean validate-meditation-audio package-unpackaged-assets windows-runtime-assets-check windows windows64 windows32 web web-tools-check web-smoke-test web-smoke-test-firefox web-smoke-test-librewolf site chrome-web-store firefox-addons firefox-addons-lint firefox-addons-source-zip verify-firefox-addons
.PHONY: web-canvas web-canvas-smoke-test web-compare-test all native kryon-host install install-user uninstall stage package-freebsd deb package-deb deb-check rpm package-rpm rpm-check snap package-snap snap-cache-clean flatpak package-flatpak podman-check validate-desktop run run-fresh screenshot test ci dist appimage click click-verify vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows font-subsets font-bundle-check clean clean-linux clean-native clean-vendor-builds windows-setup windows-setup-check android-avd android-audio-e2e android-check-keystore android-copy-assets android-copy-debug-apks android-copy-release-apks android-copy-bundle android-smoke android-local-properties android-debug android-release android-bundle android-install android-install-release android-clean validate-meditation-audio package-unpackaged-assets windows-runtime-assets-check windows windows64 windows32 web web-tools-check web-smoke-test web-smoke-test-firefox web-smoke-test-librewolf site chrome-web-store chrome-web-store-test firefox-addons firefox-addons-lint firefox-addons-source-zip verify-firefox-addons
.PHONY: no-vendor-edits
.NOTPARALLEL: dist windows windows64 windows32 android-release android-bundle click deb package-deb rpm package-rpm snap package-snap flatpak package-flatpak
all: native
@@ -552,7 +577,7 @@ click-verify: $(CLICK_TARGET)
web-tools-check:
@missing=0; \
for tool in "$(WEB_CC)" "$(WEB_AR)" "$(WEB_RANLIB)" emcmake; do \
for tool in "$(WEB_CC)" "$(WEB_AR)" "$(WEB_RANLIB)" "$(WEB_EMCMAKE)"; do \
if ! command -v "$$tool" >/dev/null 2>&1; then \
echo "Missing web build tool: $$tool"; \
missing=1; \
@@ -562,7 +587,7 @@ web-tools-check:
echo ""; \
echo "Install Emscripten for this host or run the web build from an environment where Emscripten is on PATH."; \
echo ""; \
echo "Required tools: WEB_CC=$(WEB_CC), WEB_AR=$(WEB_AR), WEB_RANLIB=$(WEB_RANLIB), emcmake."; \
echo "Required tools: WEB_CC=$(WEB_CC), WEB_AR=$(WEB_AR), WEB_RANLIB=$(WEB_RANLIB), WEB_EMCMAKE=$(WEB_EMCMAKE)."; \
exit 1; \
fi
@@ -586,14 +611,27 @@ screenshot: $(TARGET)
./scripts/generate-screenshots.sh "$(TARGET)"
.SILENT: test $(TESTS) font-bundle-check
.SILENT: no-vendor-edits test $(TESTS) font-bundle-check audio-test-fixture-check embedded-image-assets-check
## Local parity with the ci.yml gate: unit tests plus the web build (emcc).
## Run before pushing to catch web-only breakage -- e.g. code under
## #if defined(PLATFORM_WEB) -- that `make test` (desktop-native) misses.
ci: test web
test: $(TESTS) font-bundle-check
## End-to-end desktop window-mode tests on a private Xvfb display: window
## close across startup/keep-running/ask modes plus break-HUD dragging.
## Requires Xvfb, xfwm4, xdotool, x11-utils, imagemagick and sqlite3.
test-desktop-windows:
./scripts/test-desktop-windows.sh "$(TARGET)"
no-vendor-edits:
bash ./scripts/check-no-vendor-edits.sh
embedded-image-assets-check: $(EMBEDDED_ASSETS_C)
bash ./tests/embedded_image_assets_test.sh
test: no-vendor-edits $(TESTS) font-bundle-check audio-test-fixture-check embedded-image-assets-check
bash ./tests/screenshot_scene_test.sh
echo "== Inbe tests =="; \
status=0; \
for test_bin in $(TESTS); do \
@@ -618,6 +656,11 @@ test: $(TESTS) font-bundle-check
fi; \
exit "$$status"
audio-test-fixture-check:
printf '%s %s\n' \
d1f25feccd8af5cfe22ca1ed6afa901a5f97cbf976b93fc46096a2bd83315034 \
test-fixtures/audio/autumn-sunset.mp3 | sha256sum -c - >/dev/null
font-bundle-check:
for font in $(FONT_FILES); do \
case "$$font" in \
@@ -683,17 +726,12 @@ $(FONT_GLYPH_COVERAGE_TEST): tests/font_glyph_coverage_test.c $(FONT_FILES) $(LO
-o $@ \
tests/font_glyph_coverage_test.c
$(GUIDE_OVERLAY_TEST): tests/guide_overlay_test.c $(KRYON_DIR)/src/ui/guide.c $(KRYON_DIR)/include/ui.h | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE \
-I$(KRYON_DIR) $(KRYON_INCLUDE) \
-o $@ \
tests/guide_overlay_test.c
$(APP_BOTTOM_NAV_TEST): tests/app_bottom_nav_test.c src/app/app_nav.h src/app/app.h $(KRY_GEN_DIR)/src/app/app_nav.c $(KRY_GEN_DIR)/src/app/customize_nav.c $(KRY_GEN_DIR)/src/widgets/bottom_nav.c $(KRYON_DIR)/include/ui.h | $(TEST_BIN_DIR)
$(APP_BOTTOM_NAV_TEST): tests/app_bottom_nav_test.c src/app/app_nav.h src/app/app.h $(KRY_GEN_DIR)/src/app/app_nav.c $(KRY_GEN_DIR)/src/app/customize_nav.c $(KRY_GEN_DIR)/src/widgets/bottom_nav.c $(KRYON_DIR)/include/ui.h $(KRYON_DIR)/src/core/app_shell.c $(KRYON_DIR)/include/app_shell.h | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE \
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src $(SQLITE_INCLUDE) \
-o $@ \
tests/app_bottom_nav_test.c \
$(KRYON_DIR)/src/core/app_shell.c \
$(KRY_GEN_DIR)/src/app/customize_nav.c \
$(KRY_GEN_DIR)/src/widgets/bottom_nav.c
@@ -712,11 +750,12 @@ $(BREAK_ENGINE_TEST): tests/break_engine_test.c $(KRY_GEN_DIR)/src/breaks/break_
$(KRY_GEN_DIR)/src/breaks/break_engine.c
# Plain C (no generated code): dlopen-based X idle monitor with stub fallback.
$(ACTIVITY_MONITOR_TEST): tests/activity_monitor_test.c src/platform/inbe_activity_monitor.c src/platform/inbe_activity_monitor.h | $(TEST_BIN_DIR)
$(ACTIVITY_MONITOR_TEST): tests/activity_monitor_test.c src/platform/inbe_activity_monitor.c src/platform/inbe_activity_monitor.h $(KRYON_DIR)/src/platform/kry_activity_monitor.c $(KRYON_DIR)/include/kry_activity_monitor.h | $(TEST_BIN_DIR)
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE \
-Isrc \
-Isrc $(KRYON_INCLUDE) \
-o $@ \
tests/activity_monitor_test.c src/platform/inbe_activity_monitor.c \
$(KRYON_DIR)/src/platform/kry_activity_monitor.c \
$(if $(filter linux,$(NATIVE_PLATFORM)),-ldl,)
$(sort $(BUILD_OBJ_DIR) $(NATIVE_OBJ_DIR) $(NATIVE_BIN_DIR) $(NATIVE_DIST_DIR) $(LINUX_BIN_DIR) $(LINUX_DIST_DIR) $(LINUX_APPIMAGE_BUILD_DIR) $(DEB_BUILD_DIR) $(DEB_DIST_DIR) $(RPM_BUILD_DIR) $(RPM_DIST_DIR) $(SNAP_BUILD_DIR) $(SNAP_DIST_DIR) $(FLATPAK_BUILD_DIR) $(FLATPAK_DIST_DIR) $(CLICK_BIN_DIR) $(CLICK_BUILD_DIR) $(CLICK_DIST_DIR) $(WINDOWS_DIST_DIR) $(ANDROID_BUILD_DIR) $(TEST_BIN_DIR) $(WEB_OBJ_DIR) $(WEB_DIST_DIR) $(CHROME_WEB_STORE_DIR) $(FIREFOX_ADDONS_DIR)):
@@ -997,7 +1036,15 @@ $(CLICK_TARGET): Makefile $(CLICK_BIN_INPUT) $(CLICK_DIR)/inbe.apparmor $(CLICK_
fi
test -f $@
$(WIN64_TARGET): Makefile $(SRC) $(KRYON_WINDOWS_SRCS) $(KRYON_ICON_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_FILES) $(EMBEDDED_ASSETS_C) $(WIN64_RAYLIB_A) $(WIN64_CURL_A) $(WIN64_LIBOQS_A) | $(WINDOWS_BIN_DIR)/$(WIN64_ARCH)
$(WIN64_RESOURCE): windows/inbe.rc windows/inbe.ico
mkdir -p $(dir $@)
$(WIN64_WINDRES) -Iwindows -O coff $< $@
$(WIN32_RESOURCE): windows/inbe.rc windows/inbe.ico
mkdir -p $(dir $@)
$(WIN32_WINDRES) -Iwindows -O coff $< $@
$(WIN64_TARGET): Makefile $(WINDOWS_SRC) $(KRYON_WINDOWS_SRCS) $(KRYON_ICON_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_FILES) $(EMBEDDED_ASSETS_C) $(WIN64_RAYLIB_A) $(WIN64_CURL_A) $(WIN64_LIBOQS_A) $(WIN64_RESOURCE) | $(WINDOWS_BIN_DIR)/$(WIN64_ARCH)
$(WIN64_CC) $(WINDOWS_CFLAGS) \
$(APP_INCLUDE) \
$(KRYON_INCLUDE) \
@@ -1008,18 +1055,18 @@ $(WIN64_TARGET): Makefile $(SRC) $(KRYON_WINDOWS_SRCS) $(KRYON_ICON_STAMP) $(SQL
-DPLATFORM_DESKTOP \
-DCURL_STATICLIB \
-o $@ \
$(SRC) \
$(WINDOWS_SRC) \
$(KRYON_WINDOWS_SRCS) \
$(SQLITE_SRC) \
$(WIN64_RAYLIB_A) \
$(WIN64_CURL_A) \
$(WIN64_LIBOQS_A) \
$(WINDOWS_LDLIBS) \
$(WIN64_RESOURCE) $(WINDOWS_LDLIBS) \
$(WIN64_THREAD_LDFLAGS) \
$(WINDOWS_LDFLAGS)
$(WIN64_STRIP) $@
$(WIN32_TARGET): Makefile $(SRC) $(KRYON_WINDOWS_SRCS) $(KRYON_ICON_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_FILES) $(EMBEDDED_ASSETS_C) $(WIN32_RAYLIB_A) $(WIN32_CURL_A) $(WIN32_LIBOQS_A) | $(WINDOWS_BIN_DIR)/$(WIN32_ARCH)
$(WIN32_TARGET): Makefile $(WINDOWS_SRC) $(KRYON_WINDOWS_SRCS) $(KRYON_ICON_STAMP) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_FILES) $(EMBEDDED_ASSETS_C) $(WIN32_RAYLIB_A) $(WIN32_CURL_A) $(WIN32_LIBOQS_A) $(WIN32_RESOURCE) | $(WINDOWS_BIN_DIR)/$(WIN32_ARCH)
$(WIN32_CC) $(WINDOWS_CFLAGS) \
$(APP_INCLUDE) \
$(KRYON_INCLUDE) \
@@ -1030,13 +1077,13 @@ $(WIN32_TARGET): Makefile $(SRC) $(KRYON_WINDOWS_SRCS) $(KRYON_ICON_STAMP) $(SQL
-DPLATFORM_DESKTOP \
-DCURL_STATICLIB \
-o $@ \
$(SRC) \
$(WINDOWS_SRC) \
$(KRYON_WINDOWS_SRCS) \
$(SQLITE_SRC) \
$(WIN32_RAYLIB_A) \
$(WIN32_CURL_A) \
$(WIN32_LIBOQS_A) \
$(WINDOWS_LDLIBS) \
$(WIN32_RESOURCE) $(WINDOWS_LDLIBS) \
$(WIN32_THREAD_LDFLAGS) \
$(WIN32_WINDOWS_LDFLAGS)
$(WIN32_STRIP) $@
@@ -1077,12 +1124,14 @@ $(APPIMAGE_TARGET): $(TARGET) $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPIMAGE_DESKTOP)
else \
echo "Not bundling glibc; build interpreter is $$loader"; \
fi
cp $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPDIR)/$(APP_NAME).desktop
cp $(LINUX_APPIMAGE_DESKTOP) $(LINUX_APPDIR)/usr/share/applications/$(APP_NAME).desktop
cp $(LINUX_APPIMAGE_APPDATA) $(LINUX_APPDIR)/usr/share/metainfo/$(ANDROID_APP_ID).metainfo.xml
cp $(LINUX_APPIMAGE_APPDATA) $(LINUX_APPDIR)/usr/share/appdata/$(ANDROID_APP_ID).appdata.xml
cp $(LINUX_APPIMAGE_ICON) $(LINUX_APPDIR)/$(APP_NAME).png
cp $(LINUX_APPIMAGE_ICON) $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps/$(APP_NAME).png
sed -e 's/^Icon=.*/Icon=$(APP_ICON_NAME)/' $(LINUX_APPIMAGE_DESKTOP) > $(LINUX_APPDIR)/$(APP_DESKTOP_ID).desktop
cp $(LINUX_APPDIR)/$(APP_DESKTOP_ID).desktop $(LINUX_APPDIR)/usr/share/applications/$(APP_DESKTOP_ID).desktop
sed -e 's/<release version="[^"]*"/<release version="$(APP_VERSION)"/' \
-e 's#<launchable type="desktop-id">[^<]*</launchable>#<launchable type="desktop-id">$(APP_DESKTOP_ID).desktop</launchable>#' \
$(LINUX_APPIMAGE_APPDATA) > $(LINUX_APPDIR)/usr/share/metainfo/$(ANDROID_APP_ID).metainfo.xml
cp $(LINUX_APPDIR)/usr/share/metainfo/$(ANDROID_APP_ID).metainfo.xml $(LINUX_APPDIR)/usr/share/appdata/$(ANDROID_APP_ID).appdata.xml
cp $(LINUX_APPIMAGE_ICON) $(LINUX_APPDIR)/$(APP_ICON_NAME).png
cp $(LINUX_APPIMAGE_ICON) $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps/$(APP_ICON_NAME).png
@# Manually copy critical X11/OpenGL libraries that linuxdeploy might miss
@for lib in libX11.so.6 libXext.so.6 libdrm.so.2 libgbm.so.1 libEGL.so.1 libGLESv2.so.2 libGLdispatch.so.0 libglapi.so.0; do \
found=$$(find /usr/lib /lib -name "$$lib" 2>/dev/null | head -n 1); \
@@ -1100,11 +1149,11 @@ $(APPIMAGE_TARGET): $(TARGET) $(LINUX_APPIMAGE_APPRUN) $(LINUX_APPIMAGE_DESKTOP)
LIBRARY_FLAGS=""; \
echo "Building on FHS system - linuxdeploy will auto-detect libraries"; \
fi; \
cd $(LINUX_APPIMAGE_BUILD_DIR) && env -u SOURCE_DATE_EPOCH ARCH=$(ARCH) LDAI_OUTPUT=$(abspath $(APPIMAGE_TARGET)) $(LINUXDEPLOY) \
cd $(LINUX_APPIMAGE_BUILD_DIR) && env -u SOURCE_DATE_EPOCH ARCH=$(ARCH) LDAI_OUTPUT=$(abspath $(APPIMAGE_TARGET)) LDAI_UPDATE_INFORMATION='gh-releases-zsync|waozixyz|inbe|latest|$(APPIMAGE_NAME)' $(LINUXDEPLOY) \
--appdir $(APP_NAME).AppDir \
--executable $(abspath $(LINUX_APPDIR)/usr/bin/$(APP_NAME)) \
--desktop-file $(abspath $(LINUX_APPIMAGE_DESKTOP)) \
--icon-file $(abspath $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps/$(APP_NAME).png) \
--desktop-file $(abspath $(LINUX_APPDIR)/usr/share/applications/$(APP_DESKTOP_ID).desktop) \
--icon-file $(abspath $(LINUX_APPDIR)/usr/share/icons/hicolor/512x512/apps/$(APP_ICON_NAME).png) \
$$LIBRARY_FLAGS \
--output appimage
test -f $@
@@ -1126,9 +1175,11 @@ $(DEB_TARGET): $(DEB_TARGET_PREREQS) deb-check | $(DEB_BUILD_DIR) $(DEB_DIST_DIR
mkdir -p $(DEB_ROOT)/DEBIAN $(DEB_ROOT)/usr/bin $(DEB_ROOT)/usr/share/applications $(DEB_ROOT)/usr/share/icons/hicolor/512x512/apps $(DEB_ROOT)/usr/share/metainfo
cp $(DEB_BIN_INPUT) $(DEB_ROOT)/usr/bin/$(APP_NAME)
chmod 755 $(DEB_ROOT)/usr/bin/$(APP_NAME)
cp $(LINUX_APPIMAGE_DESKTOP) $(DEB_ROOT)/usr/share/applications/$(APP_NAME).desktop
cp $(LINUX_APPIMAGE_ICON) $(DEB_ROOT)/usr/share/icons/hicolor/512x512/apps/$(APP_NAME).png
sed -e 's/^Icon=.*/Icon=$(APP_ICON_NAME)/' \
$(LINUX_APPIMAGE_DESKTOP) > $(DEB_ROOT)/usr/share/applications/$(APP_DESKTOP_ID).desktop
cp $(LINUX_APPIMAGE_ICON) $(DEB_ROOT)/usr/share/icons/hicolor/512x512/apps/$(APP_ICON_NAME).png
sed -e 's/<release version="[^"]*"/<release version="$(APP_VERSION)"/' \
-e 's#<launchable type="desktop-id">[^<]*</launchable>#<launchable type="desktop-id">$(APP_DESKTOP_ID).desktop</launchable>#' \
$(LINUX_APPIMAGE_APPDATA) > $(DEB_ROOT)/usr/share/metainfo/$(ANDROID_APP_ID).metainfo.xml
@installed_size=$$(find $(DEB_ROOT)/usr -type f -exec wc -c {} + | awk '$$2 != "total" { bytes += $$1 } END { print int((bytes + 1023) / 1024) }'); \
{ \
@@ -1184,14 +1235,14 @@ $(RPM_TARGET): $(RPM_TARGET_PREREQS) rpm-check | $(RPM_BUILD_DIR) $(RPM_DIST_DIR
printf '%s\n' 'mkdir -p %{buildroot}/usr/bin %{buildroot}/usr/share/applications %{buildroot}/usr/share/icons/hicolor/512x512/apps %{buildroot}/usr/share/metainfo'; \
printf '%s\n' 'cp "$(abspath $(RPM_BIN_INPUT))" %{buildroot}/usr/bin/$(APP_NAME)'; \
printf '%s\n' 'chmod 755 %{buildroot}/usr/bin/$(APP_NAME)'; \
printf '%s\n' 'cp "$(abspath $(LINUX_APPIMAGE_DESKTOP))" %{buildroot}/usr/share/applications/$(APP_NAME).desktop'; \
printf '%s\n' 'cp "$(abspath $(LINUX_APPIMAGE_ICON))" %{buildroot}/usr/share/icons/hicolor/512x512/apps/$(APP_NAME).png'; \
printf '%s\n' 'sed -e '\''s/<release version="[^"]*"/<release version="$(APP_VERSION)"/'\'' "$(abspath $(LINUX_APPIMAGE_APPDATA))" > %{buildroot}/usr/share/metainfo/$(ANDROID_APP_ID).metainfo.xml'; \
printf '%s\n' 'sed -e '\''s/^Icon=.*/Icon=$(APP_ICON_NAME)/'\'' "$(abspath $(LINUX_APPIMAGE_DESKTOP))" > %{buildroot}/usr/share/applications/$(APP_DESKTOP_ID).desktop'; \
printf '%s\n' 'cp "$(abspath $(LINUX_APPIMAGE_ICON))" %{buildroot}/usr/share/icons/hicolor/512x512/apps/$(APP_ICON_NAME).png'; \
printf '%s\n' 'sed -e '\''s/<release version="[^"]*"/<release version="$(APP_VERSION)"/'\'' -e '\''s#<launchable type="desktop-id">[^<]*</launchable>#<launchable type="desktop-id">$(APP_DESKTOP_ID).desktop</launchable>#'\'' "$(abspath $(LINUX_APPIMAGE_APPDATA))" > %{buildroot}/usr/share/metainfo/$(ANDROID_APP_ID).metainfo.xml'; \
printf '%s\n' ''; \
printf '%s\n' '%files'; \
printf '%s\n' '/usr/bin/$(APP_NAME)'; \
printf '%s\n' '/usr/share/applications/$(APP_NAME).desktop'; \
printf '%s\n' '/usr/share/icons/hicolor/512x512/apps/$(APP_NAME).png'; \
printf '%s\n' '/usr/share/applications/$(APP_DESKTOP_ID).desktop'; \
printf '%s\n' '/usr/share/icons/hicolor/512x512/apps/$(APP_ICON_NAME).png'; \
printf '%s\n' '/usr/share/metainfo/$(ANDROID_APP_ID).metainfo.xml'; \
} > $(RPM_SPEC)
rpmbuild -bb $(RPM_SPEC) \
@@ -1261,21 +1312,55 @@ $(WEB_JS_TARGET): Makefile $(WEB_SRC) $(KRYON_WEB_SRCS) $(KRYON_ICON_STAMP) $(SQ
-sSTACK_SIZE=33554432 \
-sGLOBAL_BASE=67108864 \
-sASYNCIFY_STACK_SIZE=1048576 \
-sEXPORTED_FUNCTIONS=_main,_malloc,_free,_app_web_get_play_in_background,_app_web_set_backgrounded,_app_web_background_tick,_app_web_launch_practice,_app_web_test_save_onboarding_state,_app_web_test_onboarding_state,_app_web_test_sync_key_state,_app_web_test_import_sync_key \
-sEXPORTED_FUNCTIONS=_main,_malloc,_free,_app_web_get_play_in_background,_app_web_set_backgrounded,_app_web_background_tick,_app_web_launch_practice,_app_web_extension_host,_app_web_extension_break_now,_app_web_extension_breaks_enabled,_app_web_extension_break_timer_enabled,_app_web_extension_break_timer_limit_s,_app_web_extension_break_timer_duration_s,_app_web_extension_break_timer_postpone_s,_app_web_extension_break_timer_max_prompts,_app_web_extension_break_timer_show_skip,_app_web_extension_break_timer_show_postpone,_app_web_extension_open_break_settings,_app_web_extension_open_habits,_app_web_test_save_onboarding_state,_app_web_test_onboarding_state,_app_web_test_sync_key_state,_app_web_test_import_sync_key,_app_web_test_enable_extension_breaks \
-lidbfs.js \
-lm
$(WEB_TARGET): src/web_shell.html $(WEB_BOOT_JS) $(WEB_JS_TARGET) vendor/kryon/web/kryon-web-present.js manifest.json $(WEB_ASSET_FILES) $(MEDITATION_AUDIO_ZIP) validate-meditation-audio | $(WEB_DIST_DIR)
$(WEB_TARGET): src/web_shell.html $(WEB_BOOT_JS) $(WEB_JS_TARGET) $(WEB_CANVAS_TARGET) vendor/kryon/web/kryon-web-present.js manifest.json $(WEB_ASSET_FILES) $(MEDITATION_AUDIO_ZIP) validate-meditation-audio | $(WEB_DIST_DIR)
perl -0pe 's#\{\{\{ APP_SCRIPT \}\}\}#$(WEB_APP_SCRIPT)#g; s/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' src/web_shell.html > $@
cp $(WEB_BOOT_JS) $(WEB_DIST_DIR)/index_boot.js
perl -0pi -e 's/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' $(WEB_DIST_DIR)/index_boot.js
cp vendor/kryon/web/kryon-web-present.js $(WEB_DIST_DIR)/kryon-web-present.js
perl -0pi -e 's/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' $(WEB_DIST_DIR)/kryon-web-present.js
rm -rf $(WEB_DIST_DIR)/canvas
cp -R $(WEB_CANVAS_DIR) $(WEB_DIST_DIR)/canvas
rm -rf $(WEB_DIST_DIR)/web-assets $(WEB_DIST_DIR)/site-icons
cp -R web-assets $(WEB_DIST_DIR)/
cp -R site-icons $(WEB_DIST_DIR)/
cp manifest.json $(WEB_DIST_DIR)/webmanifest.json
web-canvas: $(WEB_CANVAS_TARGET)
$(WEB_CANVAS_DIR):
mkdir -p $@
$(WEB_CANVAS_TARGET): Makefile $(WEB_SRC) $(KRYON_CANVAS_SRCS) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H) $(FONT_FILES) $(EMBEDDED_ASSETS_C) $(KRY_GEN_STAMP) $(WEB_LIBOQS_A) src/web_shell.html $(WEB_BOOT_JS) vendor/kryon/web/kryon-web-present.js manifest.json $(WEB_ASSET_FILES) web-tools-check | $(WEB_CANVAS_DIR)
rm -f $(WEB_CANVAS_DIR)/index.data
$(WEB_CC) $(WEB_CFLAGS) \
$(APP_INCLUDE) -I$(KRYON_DIR)/include \
-I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src -I$(SQLITE_BUILD_DIR) \
$(WEB_LIBOQS_INCLUDE) \
-DKRYON_BACKEND_CANVAS=1 \
-DHAS_LIBOQS=1 \
-DPLATFORM_WEB \
-o $(WEB_CANVAS_DIR)/index.js \
$(WEB_SRC) $(KRYON_CANVAS_SRCS) $(SQLITE_SRC) \
$(WEB_LIBOQS_A) \
-sASYNCIFY -sASYNCIFY_STACK_SIZE=1048576 -fexceptions \
-sFORCE_FILESYSTEM=1 -sFETCH=1 -lidbfs.js \
-sALLOW_MEMORY_GROWTH=1 -sINITIAL_MEMORY=268435456 -sSTACK_SIZE=33554432 \
-sEXPORTED_FUNCTIONS=_main,_malloc,_free,_app_web_get_play_in_background,_app_web_set_backgrounded,_app_web_background_tick,_app_web_launch_practice,_app_web_extension_host,_app_web_extension_break_now,_app_web_extension_breaks_enabled,_app_web_extension_break_timer_enabled,_app_web_extension_break_timer_limit_s,_app_web_extension_break_timer_duration_s,_app_web_extension_break_timer_postpone_s,_app_web_extension_break_timer_max_prompts,_app_web_extension_break_timer_show_skip,_app_web_extension_break_timer_show_postpone,_app_web_extension_open_break_settings,_app_web_extension_open_habits,_app_web_test_save_onboarding_state,_app_web_test_onboarding_state,_app_web_test_sync_key_state,_app_web_test_import_sync_key,_app_web_test_enable_extension_breaks \
--preload-file locales --preload-file assets
perl -0pe 's#\{\{\{ APP_SCRIPT \}\}\}#$(WEB_CANVAS_APP_SCRIPT)#g; s/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' src/web_shell.html > $@
cp $(WEB_BOOT_JS) $(WEB_CANVAS_DIR)/index_boot.js
perl -0pi -e 's/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' $(WEB_CANVAS_DIR)/index_boot.js
cp vendor/kryon/web/kryon-web-present.js $(WEB_CANVAS_DIR)/kryon-web-present.js
perl -0pi -e 's/WEB_CACHE_BUSTER/$(WEB_CACHE_BUSTER)/g' $(WEB_CANVAS_DIR)/kryon-web-present.js
rm -rf $(WEB_CANVAS_DIR)/web-assets $(WEB_CANVAS_DIR)/site-icons
cp -R web-assets $(WEB_CANVAS_DIR)/
cp -R site-icons $(WEB_CANVAS_DIR)/
cp manifest.json $(WEB_CANVAS_DIR)/webmanifest.json
android-copy-assets:
$(MAKE) $(FONT_FILES)
$(MAKE) $(EMBEDDED_ASSETS_C)
@@ -1423,6 +1508,9 @@ android-smoke:
@mkdir -p build/android
sh scripts/android-smoke-test.sh "$(ANDROID_SDK)" "$(ANDROID_APP_ID)" "$(ANDROID_ACTIVITY)"
android-audio-e2e:
bash scripts/android-audio-e2e.sh
android-clean:
$(GRADLE) -p droid clean $(ANDROID_GRADLE_ARGS)
rm -rf $(ANDROID_BUILD_DIR)
@@ -1469,6 +1557,23 @@ windows:
$(WIN64_ARCH)/$(WIN64_BINARY_NAME) \
$(WIN32_ARCH)/$(WIN32_BINARY_NAME)
WINDOWS_SETUP := $(WINDOWS_DIST_DIR)/$(APP_NAME)-windows-setup-$(APP_VERSION).exe
WINDOWS_SETUP_SCRIPT := packaging/windows/inbe-setup.nsi
windows-setup-check:
@command -v makensis >/dev/null || { \
echo "makensis is missing. Install NSIS (apt install nsis)."; \
exit 1; \
}
windows-setup: windows windows-setup-check
rm -f $(WINDOWS_SETUP)
makensis -DVERSION=$(APP_VERSION) \
-DWIN64_EXE=$(abspath $(WINDOWS_BIN_DIR)/$(WIN64_ARCH)/$(WIN64_BINARY_NAME)) \
-DWIN32_EXE=$(abspath $(WINDOWS_BIN_DIR)/$(WIN32_ARCH)/$(WIN32_BINARY_NAME)) \
-DOUT=$(abspath $(WINDOWS_SETUP)) $(WINDOWS_SETUP_SCRIPT)
test -f $(WINDOWS_SETUP)
web:
$(MAKE) validate-meditation-audio
$(MAKE) $(WEB_TARGET)
@@ -1477,23 +1582,59 @@ web:
cd $(WEB_DIST_DIR) && zip -9 -r $(abspath $(WEB_DIST_ZIP)) .
web-smoke-test: $(WEB_SMOKE_TEST)
WEB_SMOKE_BROWSER="$(WEB_SMOKE_BROWSER)" node $(WEB_SMOKE_TEST) $(WEB_DIST_DIR)
WEB_SMOKE_RENDERER=raylib WEB_SMOKE_BROWSER="$(WEB_SMOKE_BROWSER)" node $(WEB_SMOKE_TEST) $(WEB_DIST_DIR)
web-canvas-smoke-test: $(WEB_SMOKE_TEST)
WEB_SMOKE_RENDERER=canvas WEB_SMOKE_BROWSER="$(WEB_SMOKE_BROWSER)" node $(WEB_SMOKE_TEST) $(WEB_CANVAS_DIR)
web-compare-test:
$(MAKE) $(WEB_TARGET)
$(MAKE) web-smoke-test
$(MAKE) web-canvas
$(MAKE) web-canvas-smoke-test
web-smoke-test-firefox: $(WEB_SMOKE_TEST)
WEB_SMOKE_BROWSER="firefox" node $(WEB_SMOKE_TEST) $(WEB_DIST_DIR)
WEB_SMOKE_RENDERER=raylib WEB_SMOKE_BROWSER="firefox" node $(WEB_SMOKE_TEST) $(WEB_DIST_DIR)
web-smoke-test-librewolf: $(WEB_SMOKE_TEST)
WEB_SMOKE_BROWSER="librewolf" WEB_SMOKE_ALLOW_WEBGL_DISABLED=1 node $(WEB_SMOKE_TEST) $(WEB_DIST_DIR)
WEB_SMOKE_RENDERER=raylib WEB_SMOKE_BROWSER="librewolf" WEB_SMOKE_ALLOW_WEBGL_DISABLED=1 node $(WEB_SMOKE_TEST) $(WEB_DIST_DIR)
site: web
sh site/build.sh
chrome-web-store: $(CHROME_WEB_STORE_ZIP)
$(CHROME_WEB_STORE_ZIP): $(WEB_TARGET) $(CHROME_WEB_STORE_MANIFEST) $(CHROME_WEB_STORE_WORKER) $(CHROME_WEB_STORE_ICONS) | $(CHROME_WEB_STORE_DIR)
chrome-web-store-test: chrome-web-store
node scripts/chrome-extension-breaks-test.mjs
node scripts/chrome-extension-live-test.mjs $(CHROME_WEB_STORE_DIR)
unzip -t $(CHROME_WEB_STORE_ZIP) >/dev/null
test -f $(CHROME_WEB_STORE_DIR)/web-assets/icons/chromewebstore.png
test -f $(CHROME_WEB_STORE_DIR)/extension_boot.js
test -f $(CHROME_WEB_STORE_DIR)/canvas/extension_boot.js
test -f $(CHROME_WEB_STORE_DIR)/extension_app.js
test -f $(CHROME_WEB_STORE_DIR)/canvas/extension_app.js
grep -q 'src="extension_boot.js"' $(CHROME_WEB_STORE_DIR)/index.html
grep -q 'src="extension_boot.js"' $(CHROME_WEB_STORE_DIR)/canvas/index.html
grep -q 'src="extension_app.js"' $(CHROME_WEB_STORE_DIR)/index.html
grep -q 'src="extension_app.js"' $(CHROME_WEB_STORE_DIR)/canvas/index.html
! grep -q '<script>window.__inbeRenderer' $(CHROME_WEB_STORE_DIR)/index.html
! grep -q '<script>window.__inbeRenderer' $(CHROME_WEB_STORE_DIR)/canvas/index.html
grep -q 'notifications' $(CHROME_WEB_STORE_DIR)/manifest.json
$(CHROME_WEB_STORE_ZIP): $(WEB_TARGET) $(CHROME_WEB_STORE_MANIFEST) $(CHROME_WEB_STORE_WORKER) $(CHROME_WEB_STORE_EXTENSION_BOOT) $(CHROME_WEB_STORE_EXTENSION_APP) $(CHROME_WEB_STORE_EXTENSION_CANVAS_APP) $(CHROME_WEB_STORE_ICONS) | $(CHROME_WEB_STORE_DIR)
rm -rf $(CHROME_WEB_STORE_DIR)
mkdir -p $(CHROME_WEB_STORE_DIR)/icons
cp -R $(WEB_DIST_DIR)/. $(CHROME_WEB_STORE_DIR)/
cp $(CHROME_WEB_STORE_EXTENSION_BOOT) $(CHROME_WEB_STORE_DIR)/extension_boot.js
cp $(CHROME_WEB_STORE_EXTENSION_APP) $(CHROME_WEB_STORE_DIR)/extension_app.js
perl -0pi -e 's#(<script src="index_boot\.js\?v=[^"]+"></script>)#<script src="extension_boot.js"></script>\n $$1#' $(CHROME_WEB_STORE_DIR)/index.html
perl -0pi -e 's#<script>window\.__inbeRenderer="raylib";window\.__inbeLoadApp\("index\.js\?v=[^"]+"\)</script>#<script src="extension_app.js"></script>#' $(CHROME_WEB_STORE_DIR)/index.html
if [ -f $(CHROME_WEB_STORE_DIR)/canvas/index.html ]; then \
cp $(CHROME_WEB_STORE_EXTENSION_BOOT) $(CHROME_WEB_STORE_DIR)/canvas/extension_boot.js; \
cp $(CHROME_WEB_STORE_EXTENSION_CANVAS_APP) $(CHROME_WEB_STORE_DIR)/canvas/extension_app.js; \
perl -0pi -e 's#(<script src="index_boot\.js\?v=[^"]+"></script>)#<script src="extension_boot.js"></script>\n $$1#' $(CHROME_WEB_STORE_DIR)/canvas/index.html; \
perl -0pi -e 's#<script>window\.__inbeRenderer="canvas";window\.__inbeLoadApp\("index\.js\?v=[^"]+"\)</script>#<script src="extension_app.js"></script>#' $(CHROME_WEB_STORE_DIR)/canvas/index.html; \
fi
sed -e 's#__APP_VERSION__#$(APP_VERSION)#g' \
$(CHROME_WEB_STORE_MANIFEST) > $(CHROME_WEB_STORE_DIR)/manifest.json
cp $(CHROME_WEB_STORE_WORKER) $(CHROME_WEB_STORE_DIR)/service_worker.js
+20
View File
@@ -0,0 +1,20 @@
# Web Renderer Tests
Inbe has two web renderer paths:
| Target | Renderer | Purpose |
|---|---|---|
| `make web` | raylib/WebGL | Shipping web build with liboqs sync support. |
| `make web-canvas` | Kryon Canvas2D | No-WebGL fallback build using Kryon's Canvas backend. The app still uses Emscripten/WASM for C code and support libraries. |
| `make web-compare-test` | both | Builds both renderers and runs the browser smoke suite against each. |
The shared smoke test is `scripts/web-smoke-test.mjs`. It is renderer-aware:
- `WEB_SMOKE_RENDERER=raylib` requires a live WebGL context.
- `WEB_SMOKE_RENDERER=canvas` requires a live Canvas2D context and nonblank pixels.
- Both paths require the app runtime-ready hook, a cycling render loop, IDBFS idle/flush behavior, and app settings persistence.
- Both paths require sync-key import to work. Canvas links the same ksync/liboqs account crypto as raylib-web; only the renderer differs.
Current known gap:
- The shared smoke test verifies account crypto/import parity, rendering, storage, and app settings persistence. It does not yet run a real local sync server transaction for either renderer.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

+2 -2
View File
@@ -39,8 +39,8 @@ android {
defaultConfig {
minSdk 21
targetSdk 36
versionCode 101
versionName "1.9.2"
versionCode 110
versionName "1.9.8"
externalNativeBuild {
cmake {
if (System.getProperty('os.name').toLowerCase().contains('freebsd')) {
+42 -5
View File
@@ -13,6 +13,11 @@ set(REPO_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../../../..")
set(SRC_DIR "${REPO_ROOT}/src")
set(KRYON_DIR "${REPO_ROOT}/vendor/kryon")
set(RAYLIB_DIR "${KRYON_DIR}/vendor/raylib/src")
set(KRYON_RAYLIB_GENERATED_DIR "${CMAKE_BINARY_DIR}/kryon/raylib_generated")
set(KRYON_COMPAT_GENERATED_HEADER "${KRYON_RAYLIB_GENERATED_DIR}/kryon_compat.generated.h")
set(KRYON_RAYLIB_BACKEND_RENAME_HEADER "${KRYON_RAYLIB_GENERATED_DIR}/raylib_backend_rename.h")
set(KRYON_RAYLIB_WRAPPERS_C "${KRYON_RAYLIB_GENERATED_DIR}/kryon_raylib_wrappers.c")
set(KRYON_NULL_BACKEND_C "${KRYON_RAYLIB_GENERATED_DIR}/kryon_null_backend.c")
set(SQLITE_DIR "${REPO_ROOT}/vendor/sqlite")
set(SQLITE_BUILD_DIR "${CMAKE_BINARY_DIR}/sqlite")
set(SQLITE_AMALGAMATION_C "${SQLITE_BUILD_DIR}/sqlite3.c")
@@ -34,11 +39,16 @@ if(NOT TARGET oqs)
endif()
file(GLOB_RECURSE KRYON_SOURCES CONFIGURE_DEPENDS "${KRYON_DIR}/src/*.c")
list(REMOVE_ITEM KRYON_SOURCES "${KRYON_DIR}/src/file_dialog/file_dialog.c")
# The src/backend/ software renderer implements raylib-named functions
# (math, input, drawing) for no-raylib hosts; Android links real raylib, so
# compiling both is a duplicate-symbol link error. Only krb.c (cartridge
# tooling) uses the backend API.
# The src/backend/ canvas/software renderers implement raylib-named functions
# for no-raylib hosts; Android links real raylib, so compiling those is a
# duplicate-symbol link error. Keep Kryon's shared front-end backend glue.
list(FILTER KRYON_SOURCES EXCLUDE REGEX "${KRYON_DIR}/src/backend/.*")
list(APPEND KRYON_SOURCES
"${KRYON_DIR}/src/backend/kry_event_wait.c"
"${KRYON_DIR}/src/backend/kry_input.c"
"${KRYON_DIR}/src/backend/kry_instance.c"
"${KRYON_DIR}/src/backend/kry_screenshot.c"
"${KRYON_DIR}/src/backend/kry_surface_math.c")
# inbe is a UI-only app: drop the 2D physics subsystem (Box2D). Mirror the
# KRYON_PHYSICS_SRCS filter the desktop Makefile applies via vendor.mk.
list(REMOVE_ITEM KRYON_SOURCES
@@ -97,6 +107,30 @@ add_custom_target(inbe_kry_generated DEPENDS
${INBE_KRY_GENERATED_HEADERS}
"${INBE_KRY_PROJECT_HEADER}"
)
add_custom_command(
OUTPUT
"${KRYON_COMPAT_GENERATED_HEADER}"
"${KRYON_RAYLIB_BACKEND_RENAME_HEADER}"
"${KRYON_RAYLIB_WRAPPERS_C}"
"${KRYON_NULL_BACKEND_C}"
COMMAND ${CMAKE_COMMAND} -E make_directory "${KRYON_RAYLIB_GENERATED_DIR}"
COMMAND ${CMAKE_COMMAND} -E env KRYON_COMPAT_AUDIO=0
sh "${KRYON_DIR}/tools/generate-kryon-compat.sh"
"${RAYLIB_DIR}/raylib.h"
"${KRYON_COMPAT_GENERATED_HEADER}"
"${KRYON_RAYLIB_BACKEND_RENAME_HEADER}"
"${KRYON_RAYLIB_WRAPPERS_C}"
"${KRYON_NULL_BACKEND_C}"
DEPENDS "${KRYON_DIR}/tools/generate-kryon-compat.sh" "${RAYLIB_DIR}/raylib.h"
VERBATIM
)
add_custom_target(kryon_raylib_generated DEPENDS
"${KRYON_COMPAT_GENERATED_HEADER}"
"${KRYON_RAYLIB_BACKEND_RENAME_HEADER}"
"${KRYON_RAYLIB_WRAPPERS_C}"
"${KRYON_NULL_BACKEND_C}"
)
file(GLOB INBE_LOCALE_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${REPO_ROOT}/locales/*.txt")
file(GLOB INBE_SOUND_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${REPO_ROOT}/assets/sounds/*.ogg")
file(GLOB INBE_PRACTICE_BANNER_ASSETS RELATIVE "${REPO_ROOT}" CONFIGURE_DEPENDS "${REPO_ROOT}/assets/practices/*/banner.png")
@@ -148,6 +182,7 @@ add_library(raylib STATIC
"${RAYLIB_DIR}/rtext.c"
"${RAYLIB_DIR}/raudio.c"
)
add_dependencies(raylib kryon_raylib_generated)
target_compile_definitions(raylib PRIVATE
PLATFORM_ANDROID
@@ -168,6 +203,7 @@ target_compile_definitions(raylib PRIVATE
)
target_compile_options(raylib PRIVATE
-include "${KRYON_RAYLIB_BACKEND_RENAME_HEADER}"
-Os
-ffunction-sections
-fdata-sections
@@ -190,10 +226,11 @@ add_library(main SHARED
"${INBE_EMBEDDED_ASSETS_C}"
${INBE_KRY_GENERATED_SOURCES}
${KRYON_SOURCES}
"${KRYON_RAYLIB_WRAPPERS_C}"
"${SRC_DIR}/platform/android/android_insets.c"
"${NATIVE_APP_GLUE_DIR}/android_native_app_glue.c"
)
add_dependencies(main inbe_kry_generated)
add_dependencies(main inbe_kry_generated kryon_raylib_generated)
target_include_directories(main PRIVATE
"${KRYON_DIR}/include"
@@ -5,6 +5,8 @@ import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.NativeActivity;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.Context;
@@ -24,6 +26,8 @@ import java.util.List;
import org.unifiedpush.android.connector.UnifiedPush;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.webkit.MimeTypeMap;
import android.view.DisplayCutout;
@@ -57,7 +61,11 @@ public class MainActivity extends NativeActivity {
/** Fired by the home-screen widget, the quick-settings tile and the launcher shortcuts. */
public static final String ACTION_START_PRACTICE = "xyz.waozi.inbe.action.START_PRACTICE";
public static final String ACTION_AUDIO_E2E_IMPORT = "xyz.waozi.inbe.action.AUDIO_E2E_IMPORT";
public static final String ACTION_AUDIO_E2E_DOWNLOAD = "xyz.waozi.inbe.action.AUDIO_E2E_DOWNLOAD";
public static final String ACTION_DEBUG_DONATION_REMINDER = "xyz.waozi.inbe.DEBUG_DONATION_REMINDER";
public static final String EXTRA_PRACTICE_ID = "practice_id";
public static final String EXTRA_AUDIO_FILE_NAME = "audio_file_name";
static {
System.loadLibrary("main");
@@ -75,6 +83,9 @@ public class MainActivity extends NativeActivity {
String lastHealthConnectPath = null;
private boolean pendingStartPractice = false;
private int pendingStartPracticeId = -1;
private boolean pendingDebugDonationReminder = false;
private int pendingDebugDonationReminderRetries = 0;
private final Handler mainHandler = new Handler(Looper.getMainLooper());
private native void nativeSetInsets(int status, int nav,
int cutoutLeft, int cutoutTop, int cutoutRight, int cutoutBottom);
@@ -96,6 +107,9 @@ public class MainActivity extends NativeActivity {
private native void nativeTextInputEnter();
private native void nativeInvalidateGraphicsResources();
private native boolean nativeStartPractice(int practiceId);
private native boolean nativeDebugImportMusicForPractice(String path, int practiceId);
private native boolean nativeDebugStartMusicDownload();
private native boolean nativeDebugOpenDonationReminder();
private void requestNotificationPermissionIfNeeded() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU &&
@@ -505,6 +519,69 @@ public class MainActivity extends NativeActivity {
}
}
private void handleAudioE2EIntent(Intent intent) {
boolean debuggable = (getApplicationInfo().flags &
android.content.pm.ApplicationInfo.FLAG_DEBUGGABLE) != 0;
if (!debuggable || intent == null ||
(!ACTION_AUDIO_E2E_IMPORT.equals(intent.getAction()) &&
!ACTION_AUDIO_E2E_DOWNLOAD.equals(intent.getAction()))) {
return;
}
if (ACTION_AUDIO_E2E_DOWNLOAD.equals(intent.getAction())) {
Log.i(TAG, "AUDIO_E2E: download " +
(nativeDebugStartMusicDownload() ? "started" : "failed"));
return;
}
String fileName = sanitizeFileName(intent.getStringExtra(EXTRA_AUDIO_FILE_NAME));
int practiceId = intent.getIntExtra(EXTRA_PRACTICE_ID, 0);
if (fileName == null) {
Log.e(TAG, "AUDIO_E2E: invalid fixture file name");
return;
}
File file = new File(getFilesDir(), fileName);
boolean imported = file.isFile() &&
nativeDebugImportMusicForPractice(file.getAbsolutePath(), practiceId);
Log.i(TAG, "AUDIO_E2E: import " + (imported ? "ready" : "failed") +
" practice=" + practiceId + " path=" + file.getAbsolutePath());
}
private void handleDebugDonationReminderIntent(Intent intent) {
boolean debuggable = (getApplicationInfo().flags &
android.content.pm.ApplicationInfo.FLAG_DEBUGGABLE) != 0;
if (!debuggable || intent == null ||
!ACTION_DEBUG_DONATION_REMINDER.equals(intent.getAction())) {
return;
}
if (nativeDebugOpenDonationReminder()) {
pendingDebugDonationReminder = false;
pendingDebugDonationReminderRetries = 0;
} else {
pendingDebugDonationReminder = true;
scheduleDebugDonationReminderRetry();
}
}
private void scheduleDebugDonationReminderRetry() {
if (!pendingDebugDonationReminder || pendingDebugDonationReminderRetries >= 40) {
return;
}
pendingDebugDonationReminderRetries++;
mainHandler.postDelayed(new Runnable() {
@Override
public void run() {
if (!pendingDebugDonationReminder) {
return;
}
if (nativeDebugOpenDonationReminder()) {
pendingDebugDonationReminder = false;
pendingDebugDonationReminderRetries = 0;
} else {
scheduleDebugDonationReminderRetry();
}
}
}, 250);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
@@ -714,6 +791,23 @@ public class MainActivity extends NativeActivity {
});
}
public void copyTextAndShowToast(final String text, final String toastText) {
runOnUiThread(new Runnable() {
@Override
public void run() {
ClipboardManager clipboard =
(ClipboardManager)getSystemService(Context.CLIPBOARD_SERVICE);
if (clipboard != null) {
clipboard.setPrimaryClip(ClipData.newPlainText("Inner Breeze", text == null ? "" : text));
}
String message = toastText == null || toastText.isEmpty()
? "Copied"
: toastText;
Toast.makeText(MainActivity.this, message, Toast.LENGTH_SHORT).show();
}
});
}
@Override
protected void onCreate(Bundle savedInstanceState) {
configureSystemBars();
@@ -734,6 +828,8 @@ public class MainActivity extends NativeActivity {
// Widget/tile/shortcut launch: the intent that started this activity.
handleStartPracticeIntent(getIntent());
handleAudioE2EIntent(getIntent());
handleDebugDonationReminderIntent(getIntent());
}
@Override
@@ -972,6 +1068,8 @@ public class MainActivity extends NativeActivity {
requestInsetRefresh();
syncLifecycleState("onNewIntent");
handleStartPracticeIntent(intent);
handleAudioE2EIntent(intent);
handleDebugDonationReminderIntent(intent);
}
@Override
@@ -986,6 +1084,9 @@ public class MainActivity extends NativeActivity {
new Intent(ACTION_START_PRACTICE)
.putExtra(EXTRA_PRACTICE_ID, pendingStartPracticeId));
}
if (pendingDebugDonationReminder) {
scheduleDebugDonationReminderRetry();
}
}
syncLifecycleState("onWindowFocusChanged");
}
@@ -0,0 +1,11 @@
Added
---
- Custom MP3 music can be imported and selected independently for Wim Hof, Meditation and Sun Salutation practices.
Changed
---
- Running sessions now provide separate top-left controls for sound effects and background-music volume.
Fixed
---
- Custom MP3 tracks now decode and play during Wim Hof sessions, including after restarting the app; previewing music no longer starts a practice.
- Music download failures now offer clear Cancel and Retry actions instead of ambiguous buttons.
- Daily break progress and skipped state persist across app restarts and reset only at the configured daily boundary.
@@ -0,0 +1,3 @@
Fixed
---
- Desktop break, timer and other auxiliary windows now render upright and stay visually in sync when more than one window is open.
@@ -0,0 +1,4 @@
Added
---
- Desktop update notifications: the app checks once a day for a new release and shows a toast plus a row in Settings → About. AppImage and Windows users can download and install the update from there — the download is checksum-verified and, with one click on "Restart to update", replaces the app in place. Linux package, Snap and Flatpak installs are left to the system's own updater, and AppImage builds now also carry AppImageUpdate delta-update information.
- Windows releases now also ship a classic installer (inbe-windows-setup) beside the portable zip, and a winget manifest is submitted on each release, so Windows 10/11 users can install and auto-update Inner Breeze through winget.
@@ -0,0 +1,9 @@
Changed
---
- Donation reminders now wait until 30 completed practices, repeat only after another 30 practices, and offer Donate, Skip, or Dismiss forever without a separate remind-later option.
Fixed
---
- Web builds now fall back to the Canvas renderer automatically when WebGL is unavailable, instead of stopping on a WebGL-disabled message.
- Canvas hover cursors now update consistently while using the Canvas renderer.
- Break reminders and break settings stay desktop-only and no longer appear in the Web settings sidebar.
- Desktop break timer windows now stay visible when switching workspaces.
@@ -0,0 +1,15 @@
Added
---
- Pattern Breathing is now available wherever practice-specific options are shown, including the leaderboard, habits and music assignment.
- Every practice can now have background music assigned directly from its practice settings.
Changed
---
- Audio settings now use one music import action and show the practices that already have music assigned.
- Practices are ordered consistently as Wim Hof, Pattern Breathing, Meditation and Sun Salutation.
- Practice banners now follow the active visual style, sit cleanly inside their rounded borders and keep a small bottom gap from the controls below.
Fixed
---
- Leaderboard filtering keeps showing the last loaded rows while fresh data loads, instead of replacing the table with a loading placeholder.
- Breathing-pattern leaderboards now keep the full friends list visible instead of collapsing to only the current user.
- Leaderboard streak ties now use the secondary stat when one exists, such as average hold for Wim Hof.
- Music download, install and playback-test status messages are now translated.
@@ -0,0 +1,16 @@
Added
---
- Desktop break reminders now include a Habits action beside the practice launch buttons, so habits can be managed directly from a break window.
Changed
---
- Store screenshots now focus on Android-relevant practice and habit screens, including Pattern Breathing, Meditation, Sun Salutation and multiple Material color themes.
- Fastlane screenshot exports now use compressed PNG files consistently for Google Play and F-Droid metadata.
- Regenerated Google Play and F-Droid screenshots with the corrected practice artwork, Pattern Breathing, Habits, Wim Hof how-to and Cobalt dark screens.
Fixed
---
- Screenshot scene setup now opens the intended Habits overview, Habits statistics, Meditation and Sun Salutation screens.
- Native screenshot capture now exits cleanly and writes valid PNG rows for downstream image tooling.
- Practice banner images now resolve from the embedded asset table on Android/native builds, preventing missing or faded-looking artwork in packaged releases.
- Donation wallet buttons now open Bitcoin and Monero URI intents through Kryon and show a clear toast when no wallet app is installed.
- Monero and Bitcoin donation links now use minimal address-plus-amount wallet URIs for better compatibility with Cake Wallet and other wallet apps.
- Web and browser-extension builds are available again after fixing secure donation-link handling.
@@ -0,0 +1,16 @@
Added
---
- Desktop break reminders now include a Habits action beside the practice launch buttons, so habits can be managed directly from a break window.
Changed
---
- Store screenshots now focus on Android-relevant practice and habit screens, including Pattern Breathing, Meditation, Sun Salutation and multiple Material color themes.
- Fastlane screenshot exports now use compressed PNG files consistently for Google Play and F-Droid metadata.
- Regenerated Google Play and F-Droid screenshots with the corrected practice artwork, Pattern Breathing, Habits, Wim Hof how-to and Cobalt dark screens.
Fixed
---
- Screenshot scene setup now opens the intended Habits overview, Habits statistics, Meditation and Sun Salutation screens.
- Native screenshot capture now exits cleanly and writes valid PNG rows for downstream image tooling.
- Practice banner images now resolve from the embedded asset table on Android/native builds, preventing missing or faded-looking artwork in packaged releases.
- Donation wallet buttons now open Bitcoin and Monero URI intents through Kryon and show a clear toast when no wallet app is installed.
- Monero and Bitcoin donation links now use minimal address-plus-amount wallet URIs for better compatibility with Cake Wallet and other wallet apps.
- Web and browser-extension builds are available again after fixing secure donation-link handling.
Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

+193 -5
View File
@@ -94,6 +94,9 @@ Zadny ucet
[profile_add_friend_button]
Pridat pritele
---
[profile_friend_input_label]
Alias přítele nebo veřejné ID
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Síť není dostupná
[meditation_music_network_error_message]
Nelze načíst soubor s meditační hudbou. Zkontrolujte připojení k internetu a zkuste to znovu.
---
[meditation_music_missing_audio]
Před přehráním hudby stáhněte audio
---
[meditation_music_cache_path_too_long]
Cesta k mezipaměti audia je příliš dlouhá
---
[meditation_music_archive_open_failed]
Nepodařilo se otevřít archiv audia
---
[meditation_music_file_path_too_long]
Cesta k audio souboru je příliš dlouhá
---
[meditation_music_archive_invalid]
Archiv audia neobsahoval použitelné audio
---
[meditation_music_installed_count]
Nainstalováno %d audio souborů
---
[meditation_music_installed]
Audio nainstalováno
---
[meditation_music_not_installed]
Audio není nainstalováno
---
[meditation_music_device_not_ready]
Audio zařízení není připraveno
---
[meditation_music_track_not_installed]
Skladba není nainstalována
---
[meditation_music_track_load_failed]
Skladbu se nepodařilo načíst
---
[meditation_music_test_stopped]
Test audia zastaven
---
[meditation_music_test_playing]
Přehrává se testovací audio
---
[meditation_music_download_failed]
Stažení audia selhalo
---
[duration_5m]
5 min
---
@@ -285,6 +330,15 @@ Přeskočit
[ok_button]
OK
---
[retry_button]
Zkusit znovu
---
[audio_import_music_button]
Importovat hudbu
---
[audio_imported_and_selected]
Hudba importována a vybrána
---
[save_button]
Uložit
---
@@ -420,6 +474,9 @@ Celá obrazovka
[language_label]
Jazyk
---
[language_system_label]
Použít jazyk systému
---
[language_picker_title]
Vyberte jazyk
---
@@ -536,6 +593,24 @@ Vymazat
[meditation_music_attribution]
Hudba od Elijah_K.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
Orientace
---
@@ -831,8 +906,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
Přehrávat během tohoto cvičení
[practice_background_music_label]
Hudba na pozadí
---
[appearance_scale_label]
Měřítko
@@ -1246,9 +1321,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1267,6 +1339,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
Cvičení s hudbou
---
[audio_music_no_practices]
Žádné cvičení nepoužívá hudbu na pozadí. Přidejte ji v nastavení cvičení.
---
[audio_custom_music_title]
Custom music
---
@@ -1564,3 +1642,113 @@ Připomínky
[reminder_title]
Připomínka
---
[theme_app]
Inner Breeze
---
[theme_cherry]
Třešeň
---
[theme_cobalt]
Kobalt
---
[theme_color_label]
Barevné schéma
---
[theme_dark]
Tmavý
---
[theme_dawn]
Svitání
---
[theme_follow_device]
Podle zařízení
---
[theme_forest]
Les
---
[theme_label]
Motiv
---
[theme_lavender]
Levandule
---
[theme_light]
Světlý
---
[theme_mint]
Máta
---
[theme_mode_label]
Režim
---
[theme_mono]
Mono
---
[theme_ocean]
Oceán
---
[theme_sage]
Šalvěj
---
[theme_sepia]
Sépie
---
[theme_sky]
Nebe
---
---
[theme_style_label]
Styl
---
[theme_style_material]
Materiál
---
[theme_style_retro]
Retro
---
[theme_style_system]
Systém
---
[theme_sunset]
Západ slunce
---
[theme_system]
Systém
---
[update_available_row]
Dostupná aktualizace
---
[update_available_toast]
Je k dispozici nová verze. Podívejte se do Nastavení -> O aplikaci.
---
[update_download]
Stáhnout
---
[update_restart]
Restartovat a aktualizovat
---
[update_retry]
Zkusit znovu
---
[update_downloading]
Stahování
---
[update_failed]
Stažení se nezdařilo
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Kein Konto
[profile_add_friend_button]
Freund hinzufuegen
---
[profile_friend_input_label]
Freund-Alias oder öffentliche ID
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Netzwerk nicht verfügbar
[meditation_music_network_error_message]
Der Meditations-Musikserver konnte nicht erreicht werden. Prüfe die Android-Netzwerkberechtigungen und deine Internetverbindung und versuche es erneut.
---
[meditation_music_missing_audio]
Audio herunterladen, bevor Musik abgespielt wird
---
[meditation_music_cache_path_too_long]
Der Audio-Cache-Pfad ist zu lang
---
[meditation_music_archive_open_failed]
Audioarchiv konnte nicht geöffnet werden
---
[meditation_music_file_path_too_long]
Der Audiodateipfad ist zu lang
---
[meditation_music_archive_invalid]
Das Audioarchiv enthielt keine nutzbaren Audiodateien
---
[meditation_music_installed_count]
%d Audiodateien installiert
---
[meditation_music_installed]
Audio installiert
---
[meditation_music_not_installed]
Audio nicht installiert
---
[meditation_music_device_not_ready]
Audiogerät ist nicht bereit
---
[meditation_music_track_not_installed]
Titel ist nicht installiert
---
[meditation_music_track_load_failed]
Titel konnte nicht geladen werden
---
[meditation_music_test_stopped]
Audiotest gestoppt
---
[meditation_music_test_playing]
Audiotest läuft
---
[meditation_music_download_failed]
Audio-Download fehlgeschlagen
---
[duration_5m]
5 Min.
---
@@ -285,6 +330,15 @@ Abbrechen
[ok_button]
OK
---
[retry_button]
Erneut versuchen
---
[audio_import_music_button]
Musik importieren
---
[audio_imported_and_selected]
Musik importiert und ausgewählt
---
[save_button]
Speichern
---
@@ -420,6 +474,9 @@ Vollbild
[language_label]
Sprache
---
[language_system_label]
Systemsprache verwenden
---
[language_picker_title]
Sprache wählen
---
@@ -536,6 +593,24 @@ Löschen
[meditation_music_attribution]
Musik von Elijah_K.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
Ausrichtung
---
@@ -831,8 +906,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
Während dieser Übung abspielen
[practice_background_music_label]
Hintergrundmusik
---
[appearance_scale_label]
Skalierung
@@ -1246,9 +1321,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1267,6 +1339,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
Übungen mit Musik
---
[audio_music_no_practices]
Keine Übung nutzt Hintergrundmusik. Füge sie in den Einstellungen einer Übung hinzu.
---
[audio_custom_music_title]
Custom music
---
@@ -1564,3 +1642,113 @@ Erinnerungen
[reminder_title]
Erinnerung
---
[theme_app]
Inner Breeze
---
[theme_cherry]
Kirsche
---
[theme_cobalt]
Kobalt
---
[theme_color_label]
Farbschema
---
[theme_dark]
Dunkel
---
[theme_dawn]
Morgengrauen
---
[theme_follow_device]
Geräteinstellung folgen
---
[theme_forest]
Wald
---
[theme_label]
Thema
---
[theme_lavender]
Lavendel
---
[theme_light]
Hell
---
[theme_mint]
Minze
---
[theme_mode_label]
Modus
---
[theme_mono]
Mono
---
[theme_ocean]
Ozean
---
[theme_sage]
Salbei
---
[theme_sepia]
Sepia
---
[theme_sky]
Himmel
---
---
[theme_style_label]
Stil
---
[theme_style_material]
Material
---
[theme_style_retro]
Retro
---
[theme_style_system]
System
---
[theme_sunset]
Sonnenuntergang
---
[theme_system]
System
---
[update_available_row]
Update verfügbar
---
[update_available_toast]
Eine neue Version ist verfügbar. Siehe Einstellungen -> Über.
---
[update_download]
Herunterladen
---
[update_restart]
Zum Aktualisieren neu starten
---
[update_retry]
Erneut versuchen
---
[update_downloading]
Wird heruntergeladen
---
[update_failed]
Download fehlgeschlagen
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ No account
[profile_add_friend_button]
Add friend
---
[profile_friend_input_label]
Friend alias or public ID
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Network unavailable
[meditation_music_network_error_message]
Could not reach the meditation music file. Check your internet connection, then try again.
---
[meditation_music_missing_audio]
Download audio before playing music
---
[meditation_music_cache_path_too_long]
Audio cache path is too long
---
[meditation_music_archive_open_failed]
Failed to open audio archive
---
[meditation_music_file_path_too_long]
Audio file path is too long
---
[meditation_music_archive_invalid]
Audio archive did not contain usable audio
---
[meditation_music_installed_count]
Installed %d audio files
---
[meditation_music_installed]
Audio installed
---
[meditation_music_not_installed]
Audio not installed
---
[meditation_music_device_not_ready]
Audio device is not ready
---
[meditation_music_track_not_installed]
Track is not installed
---
[meditation_music_track_load_failed]
Could not load track
---
[meditation_music_test_stopped]
Test audio stopped
---
[meditation_music_test_playing]
Playing test audio
---
[meditation_music_download_failed]
Audio download failed
---
[meditation_music_attribution]
Music by Elijah_K.
---
@@ -288,6 +333,15 @@ Skip
[ok_button]
OK
---
[retry_button]
Retry
---
[audio_import_music_button]
Import music
---
[audio_imported_and_selected]
Music imported and selected
---
[save_button]
Save
---
@@ -342,6 +396,24 @@ About
[about_text]
A quiet breathing companion for practice, habits, and sync.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
Orientation
---
@@ -447,9 +519,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -483,6 +552,12 @@ Music
[audio_music_none_option]
None
---
[audio_music_applied_title]
Practices using music
---
[audio_music_no_practices]
No practices use background music. Add it from a practice's settings.
---
[audio_custom_music_title]
Custom music
---
@@ -504,6 +579,9 @@ Fullscreen
[language_label]
Language
---
[language_system_label]
Use system language
---
[language_picker_title]
Choose Language
---
@@ -1031,8 +1109,8 @@ Best streak
[theme_picker_title]
Choose Theme
---
[practice_music_enabled_label]
Play during this practice
[practice_background_music_label]
Background music
---
[practice_start_button]
Start Practice
@@ -1562,3 +1640,113 @@ Reminders
[reminder_title]
Reminder
---
[theme_app]
Inner Breeze
---
[theme_cherry]
Cherry
---
[theme_cobalt]
Cobalt
---
[theme_color_label]
Color theme
---
[theme_dark]
Dark
---
[theme_dawn]
Dawn
---
[theme_follow_device]
Follow device
---
[theme_forest]
Forest
---
[theme_label]
Theme
---
[theme_lavender]
Lavender
---
[theme_light]
Light
---
[theme_mint]
Mint
---
[theme_mode_label]
Mode
---
[theme_mono]
Mono
---
[theme_ocean]
Ocean
---
[theme_sage]
Sage
---
[theme_sepia]
Sepia
---
[theme_sky]
Sky
---
---
[theme_style_label]
Style
---
[theme_style_material]
Material
---
[theme_style_retro]
Retro
---
[theme_style_system]
System
---
[theme_sunset]
Sunset
---
[theme_system]
System
---
[update_available_row]
Update available
---
[update_available_toast]
A new version is available. See Settings -> About.
---
[update_download]
Download
---
[update_restart]
Restart to update
---
[update_retry]
Try again
---
[update_downloading]
Downloading
---
[update_failed]
Download failed
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Sin cuenta
[profile_add_friend_button]
Anadir amigo
---
[profile_friend_input_label]
Alias o ID público del amigo
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Red no disponible
[meditation_music_network_error_message]
No se pudo acceder al archivo de música de meditación. Revisa tu conexión a internet e inténtalo de nuevo.
---
[meditation_music_missing_audio]
Descarga el audio antes de reproducir música
---
[meditation_music_cache_path_too_long]
La ruta de caché de audio es demasiado larga
---
[meditation_music_archive_open_failed]
No se pudo abrir el archivo de audio
---
[meditation_music_file_path_too_long]
La ruta del archivo de audio es demasiado larga
---
[meditation_music_archive_invalid]
El archivo de audio no contenía audio utilizable
---
[meditation_music_installed_count]
%d archivos de audio instalados
---
[meditation_music_installed]
Audio instalado
---
[meditation_music_not_installed]
Audio no instalado
---
[meditation_music_device_not_ready]
El dispositivo de audio no está listo
---
[meditation_music_track_not_installed]
La pista no está instalada
---
[meditation_music_track_load_failed]
No se pudo cargar la pista
---
[meditation_music_test_stopped]
Prueba de audio detenida
---
[meditation_music_test_playing]
Reproduciendo audio de prueba
---
[meditation_music_download_failed]
Falló la descarga de audio
---
[duration_5m]
5 min
---
@@ -285,6 +330,15 @@ Omitir
[ok_button]
Aceptar
---
[retry_button]
Reintentar
---
[audio_import_music_button]
Importar música
---
[audio_imported_and_selected]
Música importada y seleccionada
---
[save_button]
Guardar
---
@@ -420,6 +474,9 @@ Pantalla completa
[language_label]
Idioma
---
[language_system_label]
Usar idioma del sistema
---
[language_picker_title]
Elegir idioma
---
@@ -536,6 +593,24 @@ Borrar
[meditation_music_attribution]
Música de Elijah_K.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
Orientación
---
@@ -831,8 +906,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
Reproducir durante esta práctica
[practice_background_music_label]
Música de fondo
---
[appearance_scale_label]
Escala
@@ -1246,9 +1321,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1267,6 +1339,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
Prácticas con música
---
[audio_music_no_practices]
Ninguna práctica usa música de fondo. Agrégala desde los ajustes de una práctica.
---
[audio_custom_music_title]
Custom music
---
@@ -1564,3 +1642,113 @@ Recordatorios
[reminder_title]
Recordatorio
---
[theme_app]
Inner Breeze
---
[theme_cherry]
Cereza
---
[theme_cobalt]
Cobalto
---
[theme_color_label]
Esquema de colores
---
[theme_dark]
Oscuro
---
[theme_dawn]
Amanecer
---
[theme_follow_device]
Seguir dispositivo
---
[theme_forest]
Bosque
---
[theme_label]
Tema
---
[theme_lavender]
Lavanda
---
[theme_light]
Claro
---
[theme_mint]
Menta
---
[theme_mode_label]
Modo
---
[theme_mono]
Mono
---
[theme_ocean]
Océano
---
[theme_sage]
Salvia
---
[theme_sepia]
Sepia
---
[theme_sky]
Cielo
---
---
[theme_style_label]
Estilo
---
[theme_style_material]
Material
---
[theme_style_retro]
Retro
---
[theme_style_system]
Sistema
---
[theme_sunset]
Atardecer
---
[theme_system]
Sistema
---
[update_available_row]
Actualización disponible
---
[update_available_toast]
Hay una nueva versión disponible. Mira Ajustes -> Acerca de.
---
[update_download]
Descargar
---
[update_restart]
Reiniciar para actualizar
---
[update_retry]
Reintentar
---
[update_downloading]
Descargando
---
[update_failed]
Error al descargar
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Aucun compte
[profile_add_friend_button]
Ajouter un ami
---
[profile_friend_input_label]
Alias ou ID public de l’ami
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Réseau indisponible
[meditation_music_network_error_message]
Impossible de joindre le fichier de musique de méditation. Vérifiez votre connexion internet, puis réessayez.
---
[meditation_music_missing_audio]
Téléchargez l'audio avant de jouer de la musique
---
[meditation_music_cache_path_too_long]
Le chemin du cache audio est trop long
---
[meditation_music_archive_open_failed]
Impossible d'ouvrir l'archive audio
---
[meditation_music_file_path_too_long]
Le chemin du fichier audio est trop long
---
[meditation_music_archive_invalid]
L'archive audio ne contenait aucun audio utilisable
---
[meditation_music_installed_count]
%d fichiers audio installés
---
[meditation_music_installed]
Audio installé
---
[meditation_music_not_installed]
Audio non installé
---
[meditation_music_device_not_ready]
Le périphérique audio n'est pas prêt
---
[meditation_music_track_not_installed]
La piste n'est pas installée
---
[meditation_music_track_load_failed]
Impossible de charger la piste
---
[meditation_music_test_stopped]
Test audio arrêté
---
[meditation_music_test_playing]
Lecture de l'audio de test
---
[meditation_music_download_failed]
Échec du téléchargement audio
---
[duration_5m]
5 min
---
@@ -285,6 +330,15 @@ Ignorer
[ok_button]
OK
---
[retry_button]
Réessayer
---
[audio_import_music_button]
Importer de la musique
---
[audio_imported_and_selected]
Musique importée et sélectionnée
---
[save_button]
Enregistrer
---
@@ -420,6 +474,9 @@ Plein écran
[language_label]
Langue
---
[language_system_label]
Utiliser la langue du système
---
[language_picker_title]
Choisir la langue
---
@@ -536,6 +593,24 @@ Effacer
[meditation_music_attribution]
Musique par Elijah_K.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
Orientation
---
@@ -830,8 +905,8 @@ Meilleure série
[theme_picker_title]
Choisir un thème
---
[practice_music_enabled_label]
Lire pendant cette pratique
[practice_background_music_label]
Musique de fond
---
[appearance_scale_label]
Échelle
@@ -1245,9 +1320,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1266,6 +1338,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
Pratiques avec musique
---
[audio_music_no_practices]
Aucune pratique n’utilise de musique de fond. Ajoutez-la depuis les réglages d’une pratique.
---
[audio_custom_music_title]
Custom music
---
@@ -1563,3 +1641,113 @@ Rappels
[reminder_title]
Rappel
---
[theme_app]
Inner Breeze
---
[theme_cherry]
Cerise
---
[theme_cobalt]
Cobalt
---
[theme_color_label]
Thème de couleurs
---
[theme_dark]
Sombre
---
[theme_dawn]
Aube
---
[theme_follow_device]
Suivre l'appareil
---
[theme_forest]
Forêt
---
[theme_label]
Thème
---
[theme_lavender]
Lavande
---
[theme_light]
Clair
---
[theme_mint]
Menthe
---
[theme_mode_label]
Mode
---
[theme_mono]
Mono
---
[theme_ocean]
Océan
---
[theme_sage]
Sauge
---
[theme_sepia]
Sépia
---
[theme_sky]
Ciel
---
---
[theme_style_label]
Style
---
[theme_style_material]
Material
---
[theme_style_retro]
Retro
---
[theme_style_system]
Système
---
[theme_sunset]
Coucher de soleil
---
[theme_system]
Système
---
[update_available_row]
Mise à jour disponible
---
[update_available_toast]
Une nouvelle version est disponible. Voir Paramètres -> À propos.
---
[update_download]
Télécharger
---
[update_restart]
Redémarrer pour mettre à jour
---
[update_retry]
Réessayer
---
[update_downloading]
Téléchargement
---
[update_failed]
Échec du téléchargement
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Tidak ada akun
[profile_add_friend_button]
Tambah teman
---
[profile_friend_input_label]
Alias teman atau ID publik
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Jaringan tidak tersedia
[meditation_music_network_error_message]
Tidak dapat membuka file musik meditasi. Periksa koneksi internetmu, lalu coba lagi.
---
[meditation_music_missing_audio]
Unduh audio sebelum memutar musik
---
[meditation_music_cache_path_too_long]
Jalur cache audio terlalu panjang
---
[meditation_music_archive_open_failed]
Gagal membuka arsip audio
---
[meditation_music_file_path_too_long]
Jalur file audio terlalu panjang
---
[meditation_music_archive_invalid]
Arsip audio tidak berisi audio yang dapat digunakan
---
[meditation_music_installed_count]
%d file audio terpasang
---
[meditation_music_installed]
Audio terpasang
---
[meditation_music_not_installed]
Audio belum terpasang
---
[meditation_music_device_not_ready]
Perangkat audio belum siap
---
[meditation_music_track_not_installed]
Trek belum terpasang
---
[meditation_music_track_load_failed]
Tidak dapat memuat trek
---
[meditation_music_test_stopped]
Tes audio dihentikan
---
[meditation_music_test_playing]
Memutar audio tes
---
[meditation_music_download_failed]
Unduhan audio gagal
---
[duration_5m]
5 mnt
---
@@ -285,6 +330,15 @@ Lewati
[ok_button]
OK
---
[retry_button]
Coba lagi
---
[audio_import_music_button]
Impor musik
---
[audio_imported_and_selected]
Musik diimpor dan dipilih
---
[save_button]
Simpan
---
@@ -420,6 +474,9 @@ Layar penuh
[language_label]
Bahasa
---
[language_system_label]
Gunakan bahasa sistem
---
[language_picker_title]
Pilih Bahasa
---
@@ -536,6 +593,24 @@ Hapus
[meditation_music_attribution]
Musik oleh Elijah_K.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
Orientasi
---
@@ -831,8 +906,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
Putar selama latihan ini
[practice_background_music_label]
Musik latar
---
[appearance_scale_label]
Skala
@@ -1246,9 +1321,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1267,6 +1339,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
Latihan dengan musik
---
[audio_music_no_practices]
Belum ada latihan yang memakai musik latar. Tambahkan dari pengaturan latihan.
---
[audio_custom_music_title]
Custom music
---
@@ -1564,3 +1642,113 @@ Pengingat
[reminder_title]
Pengingat
---
[theme_app]
Inner Breeze
---
[theme_cherry]
Ceri
---
[theme_cobalt]
Kobalt
---
[theme_color_label]
Skema warna
---
[theme_dark]
Gelap
---
[theme_dawn]
Fajar
---
[theme_follow_device]
Ikuti perangkat
---
[theme_forest]
Hutan
---
[theme_label]
Tema
---
[theme_lavender]
Lavender
---
[theme_light]
Terang
---
[theme_mint]
Mint
---
[theme_mode_label]
Mode
---
[theme_mono]
Mono
---
[theme_ocean]
Samudra
---
[theme_sage]
Sage
---
[theme_sepia]
Sepia
---
[theme_sky]
Langit
---
---
[theme_style_label]
Gaya
---
[theme_style_material]
Material
---
[theme_style_retro]
Retro
---
[theme_style_system]
Sistem
---
[theme_sunset]
Senja
---
[theme_system]
Sistem
---
[update_available_row]
Pembaruan tersedia
---
[update_available_toast]
Versi baru tersedia. Lihat Pengaturan -> Tentang.
---
[update_download]
Unduh
---
[update_restart]
Mulai ulang untuk memperbarui
---
[update_retry]
Coba lagi
---
[update_downloading]
Mengunduh
---
[update_failed]
Gagal mengunduh
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Nessun account
[profile_add_friend_button]
Aggiungi amico
---
[profile_friend_input_label]
Alias amico o ID pubblico
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Rete non disponibile
[meditation_music_network_error_message]
Impossibile raggiungere il file musicale per la meditazione. Controlla la connessione a internet, poi riprova.
---
[meditation_music_missing_audio]
Scarica l'audio prima di riprodurre la musica
---
[meditation_music_cache_path_too_long]
Il percorso della cache audio è troppo lungo
---
[meditation_music_archive_open_failed]
Impossibile aprire l'archivio audio
---
[meditation_music_file_path_too_long]
Il percorso del file audio è troppo lungo
---
[meditation_music_archive_invalid]
L'archivio audio non conteneva audio utilizzabile
---
[meditation_music_installed_count]
%d file audio installati
---
[meditation_music_installed]
Audio installato
---
[meditation_music_not_installed]
Audio non installato
---
[meditation_music_device_not_ready]
Il dispositivo audio non è pronto
---
[meditation_music_track_not_installed]
La traccia non è installata
---
[meditation_music_track_load_failed]
Impossibile caricare la traccia
---
[meditation_music_test_stopped]
Test audio interrotto
---
[meditation_music_test_playing]
Riproduzione audio di test
---
[meditation_music_download_failed]
Download audio non riuscito
---
[duration_5m]
5 min
---
@@ -285,6 +330,15 @@ Salta
[ok_button]
OK
---
[retry_button]
Riprova
---
[audio_import_music_button]
Importa musica
---
[audio_imported_and_selected]
Musica importata e selezionata
---
[save_button]
Salva
---
@@ -333,6 +387,24 @@ Informazioni
[about_text]
Un compagno discreto per respirazione, abitudini e sincronizzazione.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
Orientamento
---
@@ -435,6 +507,9 @@ Schermo intero
[language_label]
Lingua
---
[language_system_label]
Usa lingua di sistema
---
[language_picker_title]
Scegli Lingua
---
@@ -831,8 +906,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
Riproduci durante questa pratica
[practice_background_music_label]
Musica di sottofondo
---
[appearance_scale_label]
Scala
@@ -1246,9 +1321,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1267,6 +1339,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
Pratiche con musica
---
[audio_music_no_practices]
Nessuna pratica usa musica di sottofondo. Aggiungila dalle impostazioni di una pratica.
---
[audio_custom_music_title]
Custom music
---
@@ -1564,3 +1642,113 @@ Promemoria
[reminder_title]
Promemoria
---
[theme_app]
Inner Breeze
---
[theme_cherry]
Ciliegia
---
[theme_cobalt]
Cobalto
---
[theme_color_label]
Combinazione colori
---
[theme_dark]
Scuro
---
[theme_dawn]
Alba
---
[theme_follow_device]
Segui dispositivo
---
[theme_forest]
Foresta
---
[theme_label]
Tema
---
[theme_lavender]
Lavanda
---
[theme_light]
Chiaro
---
[theme_mint]
Menta
---
[theme_mode_label]
Modalità
---
[theme_mono]
Mono
---
[theme_ocean]
Oceano
---
[theme_sage]
Salvia
---
[theme_sepia]
Seppia
---
[theme_sky]
Cielo
---
---
[theme_style_label]
Stile
---
[theme_style_material]
Material
---
[theme_style_retro]
Retro
---
[theme_style_system]
Sistema
---
[theme_sunset]
Tramonto
---
[theme_system]
Sistema
---
[update_available_row]
Aggiornamento disponibile
---
[update_available_toast]
È disponibile una nuova versione. Vedi Impostazioni -> Informazioni.
---
[update_download]
Scarica
---
[update_restart]
Riavvia per aggiornare
---
[update_retry]
Riprova
---
[update_downloading]
Download in corso
---
[update_failed]
Download non riuscito
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Sync
[profile_add_friend_button]
フレンドを追加
---
[profile_friend_input_label]
友達のエイリアスまたは公開ID
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Pause
[meditation_music_network_error_message]
瞑想音楽サーバーに接続できませんでした。Android のネットワーク権限とインターネット接続を確認してから、もう一度お試しください。
---
[meditation_music_missing_audio]
音楽を再生する前に音声をダウンロードしてください
---
[meditation_music_cache_path_too_long]
音声キャッシュのパスが長すぎます
---
[meditation_music_archive_open_failed]
音声アーカイブを開けませんでした
---
[meditation_music_file_path_too_long]
音声ファイルのパスが長すぎます
---
[meditation_music_archive_invalid]
音声アーカイブに使用できる音声が含まれていませんでした
---
[meditation_music_installed_count]
%d 個の音声ファイルをインストールしました
---
[meditation_music_installed]
音声はインストール済みです
---
[meditation_music_not_installed]
音声はインストールされていません
---
[meditation_music_device_not_ready]
音声デバイスの準備ができていません
---
[meditation_music_track_not_installed]
トラックはインストールされていません
---
[meditation_music_track_load_failed]
トラックを読み込めませんでした
---
[meditation_music_test_stopped]
音声テストを停止しました
---
[meditation_music_test_playing]
テスト音声を再生中
---
[meditation_music_download_failed]
音声のダウンロードに失敗しました
---
[duration_5m]
5分
---
@@ -285,6 +330,15 @@ Finish
[ok_button]
OK
---
[retry_button]
再試行
---
[audio_import_music_button]
音楽をインポート
---
[audio_imported_and_selected]
音楽をインポートして選択しました
---
[save_button]
保存
---
@@ -420,6 +474,9 @@ OK
[language_label]
言語
---
[language_system_label]
システムの言語を使用
---
[language_picker_title]
言語を選択
---
@@ -538,6 +595,24 @@ OK
[meditation_music_attribution]
音楽: Elijah_K.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
向き
---
@@ -833,8 +908,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
この練習中に再生
[practice_background_music_label]
バックグラウンド音楽
---
[appearance_scale_label]
スケール
@@ -1248,9 +1323,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1269,6 +1341,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
音楽を使う練習
---
[audio_music_no_practices]
バックグラウンド音楽を使う練習はありません。練習の設定から追加してください。
---
[audio_custom_music_title]
Custom music
---
@@ -1566,3 +1644,113 @@ Inner Breezeの通知は機能しています。
[reminder_title]
リマインダー
---
[theme_app]
Inner Breeze
---
[theme_cherry]
さくらんぼ
---
[theme_cobalt]
コバルト
---
[theme_color_label]
カラーテーマ
---
[theme_dark]
ダーク
---
[theme_dawn]
夜明け
---
[theme_follow_device]
デバイスに従う
---
[theme_forest]
森林
---
[theme_label]
テーマ
---
[theme_lavender]
ラベンダー
---
[theme_light]
ライト
---
[theme_mint]
ミント
---
[theme_mode_label]
モード
---
[theme_mono]
モノ
---
[theme_ocean]
海洋
---
[theme_sage]
セージ
---
[theme_sepia]
セピア
---
[theme_sky]
空
---
---
[theme_style_label]
スタイル
---
[theme_style_material]
マテリアル
---
[theme_style_retro]
レトロ
---
[theme_style_system]
システム
---
[theme_sunset]
夕焼け
---
[theme_system]
システム
---
[update_available_row]
アップデートがあります
---
[update_available_toast]
新しいバージョンがあります。アップデートは設定の画面から確認できます。
---
[update_download]
ダウンロード
---
[update_restart]
リスタートして更新
---
[update_retry]
再試行
---
[update_downloading]
ダウンロード中
---
[update_failed]
ダウンロードに失敗しました
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Sync
[profile_add_friend_button]
친구 추가
---
[profile_friend_input_label]
친구 별칭 또는 공개 ID
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Pause
[meditation_music_network_error_message]
명상 음악 서버에 연결할 수 없습니다. Android 네트워크 권한과 인터넷 연결을 확인한 뒤 다시 시도하세요.
---
[meditation_music_missing_audio]
음악을 재생하기 전에 오디오를 다운로드하세요
---
[meditation_music_cache_path_too_long]
오디오 캐시 경로가 너무 깁니다
---
[meditation_music_archive_open_failed]
오디오 압축 파일을 열지 못했습니다
---
[meditation_music_file_path_too_long]
오디오 파일 경로가 너무 깁니다
---
[meditation_music_archive_invalid]
오디오 압축 파일에 사용할 수 있는 오디오가 없습니다
---
[meditation_music_installed_count]
오디오 파일 %d개 설치됨
---
[meditation_music_installed]
오디오 설치됨
---
[meditation_music_not_installed]
오디오가 설치되지 않음
---
[meditation_music_device_not_ready]
오디오 장치가 준비되지 않았습니다
---
[meditation_music_track_not_installed]
트랙이 설치되지 않았습니다
---
[meditation_music_track_load_failed]
트랙을 불러오지 못했습니다
---
[meditation_music_test_stopped]
오디오 테스트 중지됨
---
[meditation_music_test_playing]
테스트 오디오 재생 중
---
[meditation_music_download_failed]
오디오 다운로드 실패
---
[duration_5m]
5분
---
@@ -285,6 +330,15 @@ Finish
[ok_button]
확인
---
[retry_button]
다시 시도
---
[audio_import_music_button]
음악 가져오기
---
[audio_imported_and_selected]
음악을 가져와 선택했습니다
---
[save_button]
저장
---
@@ -333,6 +387,24 @@ Finish
[about_text]
호흡, 습관, 동기화를 위한 조용한 동반자입니다.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
화면 방향
---
@@ -435,6 +507,9 @@ Finish
[language_label]
언어
---
[language_system_label]
시스템 언어 사용
---
[language_picker_title]
언어 선택
---
@@ -830,8 +905,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
이 연습 중 재생
[practice_background_music_label]
배경 음악
---
[appearance_scale_label]
배율
@@ -1245,9 +1320,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1266,6 +1338,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
음악을 사용하는 연습
---
[audio_music_no_practices]
배경 음악을 사용하는 연습이 없습니다. 연습 설정에서 추가하세요.
---
[audio_custom_music_title]
Custom music
---
@@ -1563,3 +1641,113 @@ Inner Breeze 알림이 작동합니다.
[reminder_title]
알림
---
[theme_app]
Inner Breeze
---
[theme_cherry]
체리
---
[theme_cobalt]
코발트
---
[theme_color_label]
색상 테마
---
[theme_dark]
다크
---
[theme_dawn]
새벽
---
[theme_follow_device]
기기 설정 따르기
---
[theme_forest]
숲
---
[theme_label]
테마
---
[theme_lavender]
라벤더
---
[theme_light]
라이트
---
[theme_mint]
민트
---
[theme_mode_label]
모드
---
[theme_mono]
모노
---
[theme_ocean]
바다
---
[theme_sage]
세이지
---
[theme_sepia]
세피아
---
[theme_sky]
하늘
---
---
[theme_style_label]
스타일
---
[theme_style_material]
머티리얼
---
[theme_style_retro]
레트로
---
[theme_style_system]
시스템
---
[theme_sunset]
노을
---
[theme_system]
시스템
---
[update_available_row]
업데이트 가능
---
[update_available_toast]
새 버전이 있습니다. 설정 -> 정보를 확인하세요.
---
[update_download]
다운로드
---
[update_restart]
재시작하여 업데이트
---
[update_retry]
다시 시도
---
[update_downloading]
다운로드 중
---
[update_failed]
다운로드 실패
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Sem conta
[profile_add_friend_button]
Adicionar amigo
---
[profile_friend_input_label]
Alias ou ID público do amigo
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Rede indisponível
[meditation_music_network_error_message]
Não foi possível acessar o arquivo de música de meditação. Verifique sua conexão com a internet e tente novamente.
---
[meditation_music_missing_audio]
Baixe o áudio antes de tocar música
---
[meditation_music_cache_path_too_long]
O caminho do cache de áudio é longo demais
---
[meditation_music_archive_open_failed]
Não foi possível abrir o arquivo de áudio
---
[meditation_music_file_path_too_long]
O caminho do arquivo de áudio é longo demais
---
[meditation_music_archive_invalid]
O arquivo de áudio não continha áudio utilizável
---
[meditation_music_installed_count]
%d arquivos de áudio instalados
---
[meditation_music_installed]
Áudio instalado
---
[meditation_music_not_installed]
Áudio não instalado
---
[meditation_music_device_not_ready]
O dispositivo de áudio não está pronto
---
[meditation_music_track_not_installed]
A faixa não está instalada
---
[meditation_music_track_load_failed]
Não foi possível carregar a faixa
---
[meditation_music_test_stopped]
Teste de áudio parado
---
[meditation_music_test_playing]
Reproduzindo áudio de teste
---
[meditation_music_download_failed]
Falha no download de áudio
---
[duration_5m]
5 min
---
@@ -285,6 +330,15 @@ Pular
[ok_button]
OK
---
[retry_button]
Tentar novamente
---
[audio_import_music_button]
Importar música
---
[audio_imported_and_selected]
Música importada e selecionada
---
[save_button]
Salvar
---
@@ -420,6 +474,9 @@ Tela cheia
[language_label]
Idioma
---
[language_system_label]
Usar idioma do sistema
---
[language_picker_title]
Escolher idioma
---
@@ -536,6 +593,24 @@ Limpar
[meditation_music_attribution]
Música por Elijah_K.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
Orientação
---
@@ -831,8 +906,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
Tocar durante esta prática
[practice_background_music_label]
Música de fundo
---
[appearance_scale_label]
Escala
@@ -1246,9 +1321,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1267,6 +1339,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
Práticas com música
---
[audio_music_no_practices]
Nenhuma prática usa música de fundo. Adicione nas configurações de uma prática.
---
[audio_custom_music_title]
Custom music
---
@@ -1564,3 +1642,113 @@ Lembretes
[reminder_title]
Lembrete
---
[theme_app]
Inner Breeze
---
[theme_cherry]
Cereja
---
[theme_cobalt]
Cobalto
---
[theme_color_label]
Esquema de cores
---
[theme_dark]
Escuro
---
[theme_dawn]
Amanhecer
---
[theme_follow_device]
Seguir dispositivo
---
[theme_forest]
Floresta
---
[theme_label]
Tema
---
[theme_lavender]
Lavanda
---
[theme_light]
Claro
---
[theme_mint]
Menta
---
[theme_mode_label]
Modo
---
[theme_mono]
Mono
---
[theme_ocean]
Oceano
---
[theme_sage]
Sálvia
---
[theme_sepia]
Sépia
---
[theme_sky]
Céu
---
---
[theme_style_label]
Estilo
---
[theme_style_material]
Material
---
[theme_style_retro]
Retro
---
[theme_style_system]
Sistema
---
[theme_sunset]
Pôr do sol
---
[theme_system]
Sistema
---
[update_available_row]
Atualização disponível
---
[update_available_toast]
Uma nova versão está disponível. Veja Configurações -> Sobre.
---
[update_download]
Baixar
---
[update_restart]
Reiniciar para atualizar
---
[update_retry]
Tentar novamente
---
[update_downloading]
Baixando
---
[update_failed]
Falha no download
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Sync
[profile_add_friend_button]
Добавить друга
---
[profile_friend_input_label]
Псевдоним друга или публичный ID
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Pause
[meditation_music_network_error_message]
Не удалось подключиться к серверу музыки для медитации. Проверьте разрешения сети Android и подключение к интернету, затем попробуйте снова.
---
[meditation_music_missing_audio]
Скачайте аудио перед воспроизведением музыки
---
[meditation_music_cache_path_too_long]
Путь к кэшу аудио слишком длинный
---
[meditation_music_archive_open_failed]
Не удалось открыть аудиоархив
---
[meditation_music_file_path_too_long]
Путь к аудиофайлу слишком длинный
---
[meditation_music_archive_invalid]
Аудиоархив не содержит пригодного аудио
---
[meditation_music_installed_count]
Установлено аудиофайлов: %d
---
[meditation_music_installed]
Аудио установлено
---
[meditation_music_not_installed]
Аудио не установлено
---
[meditation_music_device_not_ready]
Аудиоустройство не готово
---
[meditation_music_track_not_installed]
Трек не установлен
---
[meditation_music_track_load_failed]
Не удалось загрузить трек
---
[meditation_music_test_stopped]
Проверка аудио остановлена
---
[meditation_music_test_playing]
Воспроизводится тестовое аудио
---
[meditation_music_download_failed]
Не удалось скачать аудио
---
[meditation_music_attribution]
Музыка: Elijah_K.
---
@@ -288,6 +333,15 @@ Finish
[ok_button]
OK
---
[retry_button]
Повторить
---
[audio_import_music_button]
Импортировать музыку
---
[audio_imported_and_selected]
Музыка импортирована и выбрана
---
[save_button]
Сохранить
---
@@ -336,6 +390,24 @@ OK
[about_text]
Спокойный помощник для дыхания, привычек и синхронизации.
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
Ориентация
---
@@ -438,6 +510,9 @@ OK
[language_label]
Язык
---
[language_system_label]
Использовать язык системы
---
[language_picker_title]
Выберите язык
---
@@ -831,8 +906,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
Включать во время этой практики
[practice_background_music_label]
Фоновая музыка
---
[appearance_scale_label]
Масштаб
@@ -1246,9 +1321,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1267,6 +1339,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
Практики с музыкой
---
[audio_music_no_practices]
Ни одна практика не использует фоновую музыку. Добавьте её в настройках практики.
---
[audio_custom_music_title]
Custom music
---
@@ -1564,3 +1642,113 @@ Remove
[reminder_title]
Напоминание
---
[theme_app]
Inner Breeze
---
[theme_cherry]
Вишня
---
[theme_cobalt]
Кобальт
---
[theme_color_label]
Цветовая тема
---
[theme_dark]
Тёмная
---
[theme_dawn]
Рассвет
---
[theme_follow_device]
Как в системе
---
[theme_forest]
Лес
---
[theme_label]
Тема
---
[theme_lavender]
Лаванда
---
[theme_light]
Светлая
---
[theme_mint]
Мята
---
[theme_mode_label]
Режим
---
[theme_mono]
Моно
---
[theme_ocean]
Океан
---
[theme_sage]
Шалфей
---
[theme_sepia]
Сепия
---
[theme_sky]
Небо
---
---
[theme_style_label]
Стиль
---
[theme_style_material]
Material
---
[theme_style_retro]
Ретро
---
[theme_style_system]
Системный
---
[theme_sunset]
Закат
---
[theme_system]
Системная
---
[update_available_row]
Доступно обновление
---
[update_available_toast]
Доступна новая версия. Смотрите Настройки -> О приложении.
---
[update_download]
Скачать
---
[update_restart]
Перезапустить для обновления
---
[update_retry]
Повторить
---
[update_downloading]
Загрузка
---
[update_failed]
Не удалось загрузить
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
+193 -5
View File
@@ -94,6 +94,9 @@ Sync
[profile_add_friend_button]
添加好友
---
[profile_friend_input_label]
好友别名或公开 ID
---
[profile_friend_invalid]
Enter @alias or a public ID
---
@@ -234,6 +237,48 @@ Wim Hof 呼吸
[meditation_music_network_error_message]
无法连接到冥想音乐服务器。请检查 Android 网络权限和互联网连接,然后重试。
---
[meditation_music_missing_audio]
播放音乐前请先下载音频
---
[meditation_music_cache_path_too_long]
音频缓存路径太长
---
[meditation_music_archive_open_failed]
无法打开音频压缩包
---
[meditation_music_file_path_too_long]
音频文件路径太长
---
[meditation_music_archive_invalid]
音频压缩包中没有可用音频
---
[meditation_music_installed_count]
已安装 %d 个音频文件
---
[meditation_music_installed]
音频已安装
---
[meditation_music_not_installed]
音频未安装
---
[meditation_music_device_not_ready]
音频设备尚未就绪
---
[meditation_music_track_not_installed]
曲目未安装
---
[meditation_music_track_load_failed]
无法加载曲目
---
[meditation_music_test_stopped]
音频测试已停止
---
[meditation_music_test_playing]
正在播放测试音频
---
[meditation_music_download_failed]
音频下载失败
---
[duration_5m]
5分钟
---
@@ -285,6 +330,15 @@ Finish
[ok_button]
确定
---
[retry_button]
重试
---
[audio_import_music_button]
导入音乐
---
[audio_imported_and_selected]
音乐已导入并选择
---
[save_button]
保存
---
@@ -420,6 +474,9 @@ Finish
[language_label]
语言
---
[language_system_label]
使用系统语言
---
[language_picker_title]
选择语言
---
@@ -536,6 +593,24 @@ Finish
[meditation_music_attribution]
音乐来自 Elijah_K。
---
[about_donation_message]
Donation addresses are shown below. Open a wallet directly or use Trocador to donate through an exchange flow.
---
[copy_address_button]
Copy
---
[address_copied]
Address copied
---
[open_wallet_button]
Wallet
---
[wallet_not_installed_toast]
No wallet app installed
---
[trocador_button]
Trocador
---
[orientation_label]
方向
---
@@ -831,8 +906,8 @@ Save Alias
Alias saved
---
---
[practice_music_enabled_label]
在本练习中播放
[practice_background_music_label]
背景音乐
---
[appearance_scale_label]
缩放
@@ -1246,9 +1321,6 @@ Import audio
[audio_import_sound_button]
Import sound
---
[audio_import_music_button]
Import music
---
[audio_imported]
Audio imported
---
@@ -1267,6 +1339,12 @@ Custom sounds
[audio_music_title]
Music
---
[audio_music_applied_title]
使用音乐的练习
---
[audio_music_no_practices]
还没有练习使用背景音乐。请在练习设置中添加。
---
[audio_custom_music_title]
Custom music
---
@@ -1564,3 +1642,113 @@ Inner Breeze 的通知正常工作。
[reminder_title]
提醒
---
[theme_app]
Inner Breeze
---
[theme_cherry]
樱桃
---
[theme_cobalt]
钴蓝
---
[theme_color_label]
配色
---
[theme_dark]
深色
---
[theme_dawn]
黎明
---
[theme_follow_device]
跟随设备
---
[theme_forest]
森林
---
[theme_label]
主题
---
[theme_lavender]
薰衣草
---
[theme_light]
浅色
---
[theme_mint]
薄荷
---
[theme_mode_label]
模式
---
[theme_mono]
单色
---
[theme_ocean]
海洋
---
[theme_sage]
鼠尾草
---
[theme_sepia]
棕褐
---
[theme_sky]
天空
---
---
[theme_style_label]
样式
---
[theme_style_material]
Material
---
[theme_style_retro]
复古
---
[theme_style_system]
系统
---
[theme_sunset]
日落
---
[theme_system]
系统
---
[update_available_row]
有可用更新
---
[update_available_toast]
有新版本可用。请查看 设置 -> 关于。
---
[update_download]
下载
---
[update_restart]
重启以更新
---
[update_retry]
重试
---
[update_downloading]
正在下载
---
[update_failed]
下载失败
---
[donation_reminder_title]
Support Inner Breeze
---
[donation_reminder_message]
Inner Breeze is free and open source. If it helps you, a small donation supports continued work.
---
[donation_reminder_donate_button]
Donate
---
[donation_reminder_skip_button]
Skip this time
---
[donation_reminder_dismiss_button]
Dismiss forever
---
@@ -0,0 +1,2 @@
window.__inbeRenderer = "raylib";
window.__inbeLoadApp("index.js");
@@ -0,0 +1 @@
window.__inbeExtension = true;
@@ -0,0 +1,2 @@
window.__inbeRenderer = "canvas";
window.__inbeLoadApp("index.js");
+5 -1
View File
@@ -5,7 +5,11 @@
"version": "__APP_VERSION__",
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
"permissions": [
"contextMenus"
"alarms",
"contextMenus",
"idle",
"notifications",
"storage"
],
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
+327 -30
View File
@@ -1,44 +1,288 @@
const appUrl = chrome.runtime.getURL("index.html");
const BREAK_MICRO = 0;
const BREAK_REST = 1;
const BREAK_DAILY = 2;
const BREAK_TYPES = [BREAK_MICRO, BREAK_REST, BREAK_DAILY];
const TICK_ALARM = "inbe-break-tick";
const STORAGE_CONFIG = "inbeBreakConfig";
const STORAGE_STATE = "inbeBreakState";
const MAX_ELAPSED_S = 300;
const practiceUrls = {
whm: `${appUrl}?inbe_launch=start-practice&practice=whm`,
meditation: `${appUrl}?inbe_launch=start-practice&practice=meditation`,
sun_salutation: `${appUrl}?inbe_launch=start-practice&practice=sun_salutation`,
};
const defaultTimers = [
{
enabled: true,
limitS: 180,
durationS: 30,
postponeS: 150,
maxPrompts: 3,
showSkip: true,
showPostpone: true,
},
{
enabled: true,
limitS: 2700,
durationS: 600,
postponeS: 300,
maxPrompts: 3,
showSkip: true,
showPostpone: true,
},
{
enabled: true,
limitS: 14400,
durationS: 0,
postponeS: 1800,
maxPrompts: 0,
showSkip: true,
showPostpone: false,
},
];
function clampInt(value, fallback, min, max) {
const n = Number(value);
if (!Number.isFinite(n)) return fallback;
return Math.max(min, Math.min(max, Math.round(n)));
}
function normalizeTimer(timer, index) {
const fallback = defaultTimers[index] || defaultTimers[0];
return {
enabled: timer && typeof timer.enabled === "boolean" ? timer.enabled : fallback.enabled,
limitS: clampInt(timer && timer.limitS, fallback.limitS, 0, 24 * 60 * 60),
durationS: clampInt(timer && timer.durationS, fallback.durationS, 0, 24 * 60 * 60),
postponeS: clampInt(timer && timer.postponeS, fallback.postponeS, 0, 24 * 60 * 60),
maxPrompts: clampInt(timer && timer.maxPrompts, fallback.maxPrompts, 0, 20),
showSkip: timer && typeof timer.showSkip === "boolean" ? timer.showSkip : fallback.showSkip,
showPostpone: timer && typeof timer.showPostpone === "boolean" ? timer.showPostpone : fallback.showPostpone,
};
}
function normalizeConfig(config) {
const sourceTimers = config && Array.isArray(config.timers) ? config.timers : [];
return {
enabled: !!(config && config.enabled),
timers: BREAK_TYPES.map((type) => normalizeTimer(sourceTimers[type], type)),
};
}
function defaultTimerState() {
return {
activeS: 0,
idleS: 0,
promptS: 0,
promptCount: 0,
snoozeUntilMs: 0,
notificationId: "",
buttonActions: [],
};
}
function normalizeState(state) {
const sourceTimers = state && Array.isArray(state.timers) ? state.timers : [];
return {
lastTickMs: clampInt(state && state.lastTickMs, 0, 0, Number.MAX_SAFE_INTEGER),
timers: BREAK_TYPES.map((type) => ({
...defaultTimerState(),
...(sourceTimers[type] || {}),
})),
};
}
function breakTitle(type) {
if (type === BREAK_REST) return "Rest break";
if (type === BREAK_DAILY) return "Daily limit";
return "Microbreak";
}
function breakMessage(type) {
if (type === BREAK_DAILY)
return "You have reached your daily practice-work limit. Open Inner Breeze to wind down.";
if (type === BREAK_REST)
return "Step away for a longer rest, or open Inner Breeze for a practice.";
return "Take a short pause, relax your eyes, or start a quick practice.";
}
function storageGet(keys) {
return chrome.storage.local.get(keys);
}
function storageSet(values) {
return chrome.storage.local.set(values);
}
function openApp(url = appUrl) {
chrome.tabs.create({ url });
}
function openBreakSettings() {
openApp(`${appUrl}?inbe_launch=break-settings`);
}
function openHabits() {
openApp(`${appUrl}?inbe_launch=habits`);
}
function notificationIdFor(type) {
return `inbe-break-${type}`;
}
async function showBreakNotification(type, state, config, forced) {
const timer = config.timers[type];
const timerState = state.timers[type];
const buttons = [];
const buttonActions = [];
const id = notificationIdFor(type);
if (timer.showPostpone && timer.postponeS > 0) {
buttons.push({ title: "Postpone" });
buttonActions.push("postpone");
}
if (timer.showSkip) {
buttons.push({ title: "Skip" });
buttonActions.push("skip");
}
timerState.notificationId = id;
timerState.buttonActions = buttonActions;
await storageSet({ [STORAGE_STATE]: state });
await chrome.notifications.create(id, {
type: "basic",
iconUrl: "icons/icon-128.png",
title: forced ? `${breakTitle(type)} now` : breakTitle(type),
message: breakMessage(type),
priority: 2,
requireInteraction: true,
buttons,
});
}
async function scheduleBreakAlarm(config) {
if (!config.enabled) {
await chrome.alarms.clear(TICK_ALARM);
await chrome.action.setBadgeText({ text: "" });
return;
}
await chrome.alarms.create(TICK_ALARM, { periodInMinutes: 1 });
await chrome.action.setBadgeText({ text: "BR" });
await chrome.action.setBadgeBackgroundColor({ color: "#2c7388" });
}
async function saveConfig(config) {
const normalized = normalizeConfig(config);
await storageSet({ [STORAGE_CONFIG]: normalized });
await scheduleBreakAlarm(normalized);
return normalized;
}
function stepTimer(timer, timerState, elapsedS, active, nowMs) {
if (!timer.enabled || timer.limitS <= 0) {
Object.assign(timerState, defaultTimerState());
return false;
}
if (timerState.snoozeUntilMs && nowMs < timerState.snoozeUntilMs)
return false;
if (timerState.snoozeUntilMs && nowMs >= timerState.snoozeUntilMs)
timerState.snoozeUntilMs = 0;
if (active) {
timerState.activeS += elapsedS;
timerState.idleS = 0;
} else {
timerState.idleS += elapsedS;
if (timer.durationS > 0 && timerState.activeS > 0 && timerState.idleS >= timer.durationS) {
Object.assign(timerState, defaultTimerState());
return false;
}
}
if (timerState.activeS < timer.limitS)
return false;
timerState.promptS += elapsedS;
if (timerState.promptCount === 0 || timerState.promptS >= 30) {
timerState.promptS = 0;
timerState.promptCount += 1;
return true;
}
return false;
}
async function tickBreaks(nowMs = Date.now()) {
const data = await storageGet([STORAGE_CONFIG, STORAGE_STATE]);
const config = normalizeConfig(data[STORAGE_CONFIG]);
const state = normalizeState(data[STORAGE_STATE]);
if (!config.enabled) {
await scheduleBreakAlarm(config);
return state;
}
const elapsedS = state.lastTickMs
? clampInt((nowMs - state.lastTickMs) / 1000, 60, 1, MAX_ELAPSED_S)
: 60;
const idleState = await chrome.idle.queryState(Math.max(60, Math.ceil(elapsedS)));
const active = idleState === "active";
state.lastTickMs = nowMs;
for (const type of BREAK_TYPES) {
if (stepTimer(config.timers[type], state.timers[type], elapsedS, active, nowMs))
await showBreakNotification(type, state, config, false);
}
await storageSet({ [STORAGE_STATE]: state });
return state;
}
async function requestBreakNow(type) {
const data = await storageGet([STORAGE_CONFIG, STORAGE_STATE]);
const config = normalizeConfig(data[STORAGE_CONFIG]);
const state = normalizeState(data[STORAGE_STATE]);
const safeType = BREAK_TYPES.includes(type) ? type : BREAK_REST;
if (!config.enabled)
config.enabled = true;
await showBreakNotification(safeType, state, config, true);
await storageSet({ [STORAGE_CONFIG]: config, [STORAGE_STATE]: state });
await scheduleBreakAlarm(config);
}
async function applyNotificationAction(notificationId, buttonIndex) {
const data = await storageGet([STORAGE_CONFIG, STORAGE_STATE]);
const config = normalizeConfig(data[STORAGE_CONFIG]);
const state = normalizeState(data[STORAGE_STATE]);
const type = BREAK_TYPES.find((candidate) => notificationId === notificationIdFor(candidate));
if (type === undefined) return;
const timer = config.timers[type];
const timerState = state.timers[type];
const action = timerState.buttonActions && timerState.buttonActions[buttonIndex];
if (action === "postpone") {
Object.assign(timerState, defaultTimerState(), {
snoozeUntilMs: Date.now() + Math.max(1, timer.postponeS) * 1000,
});
} else if (action === "skip") {
Object.assign(timerState, defaultTimerState());
}
await chrome.notifications.clear(notificationId);
await storageSet({ [STORAGE_STATE]: state });
}
function createContextMenus(contexts) {
chrome.contextMenus.create({
id: "open",
title: "Open Inner Breeze",
contexts,
});
chrome.contextMenus.create({
id: "start-practice",
title: "Start Practice",
contexts,
});
chrome.contextMenus.create({
id: "start-whm",
parentId: "start-practice",
title: "Wim Hof",
contexts,
});
chrome.contextMenus.create({
id: "start-meditation",
parentId: "start-practice",
title: "Meditation",
contexts,
});
chrome.contextMenus.create({
id: "start-sun-salutation",
parentId: "start-practice",
title: "Sun Salutation",
contexts,
});
chrome.contextMenus.create({ id: "open", title: "Open Inner Breeze", contexts });
chrome.contextMenus.create({ id: "breaks", title: "Breaks", contexts });
chrome.contextMenus.create({ id: "break-settings", parentId: "breaks", title: "Break settings", contexts });
chrome.contextMenus.create({ id: "break-rest-now", parentId: "breaks", title: "Rest now", contexts });
chrome.contextMenus.create({ id: "habits", parentId: "breaks", title: "Habits", contexts });
chrome.contextMenus.create({ id: "start-practice", title: "Start Practice", contexts });
chrome.contextMenus.create({ id: "start-whm", parentId: "start-practice", title: "Wim Hof", contexts });
chrome.contextMenus.create({ id: "start-meditation", parentId: "start-practice", title: "Meditation", contexts });
chrome.contextMenus.create({ id: "start-sun-salutation", parentId: "start-practice", title: "Sun Salutation", contexts });
}
function rebuildContextMenus() {
@@ -49,14 +293,49 @@ chrome.action.onClicked.addListener(() => {
openApp();
});
chrome.runtime.onInstalled.addListener((details) => {
chrome.runtime.onInstalled.addListener(async (details) => {
rebuildContextMenus();
const data = await storageGet([STORAGE_CONFIG]);
await saveConfig(normalizeConfig(data[STORAGE_CONFIG]));
if (details.reason === "install")
openApp();
});
chrome.runtime.onStartup.addListener(() => {
chrome.runtime.onStartup.addListener(async () => {
rebuildContextMenus();
const data = await storageGet([STORAGE_CONFIG]);
await scheduleBreakAlarm(normalizeConfig(data[STORAGE_CONFIG]));
});
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
if (!message || typeof message.type !== "string")
return false;
if (message.type === "inbe.breakConfig") {
saveConfig(message.config).then((config) => sendResponse({ ok: true, config }));
return true;
}
if (message.type === "inbe.breakNow") {
requestBreakNow(clampInt(message.breakType, BREAK_REST, BREAK_MICRO, BREAK_DAILY))
.then(() => sendResponse({ ok: true }));
return true;
}
return false;
});
chrome.alarms.onAlarm.addListener((alarm) => {
if (alarm && alarm.name === TICK_ALARM)
tickBreaks().catch((error) => console.error("Inner Breeze break tick failed:", error));
});
chrome.notifications.onClicked.addListener((notificationId) => {
if (notificationId && notificationId.startsWith("inbe-break-"))
openBreakSettings();
});
chrome.notifications.onButtonClicked.addListener((notificationId, buttonIndex) => {
applyNotificationAction(notificationId, buttonIndex)
.catch((error) => console.error("Inner Breeze notification action failed:", error));
});
chrome.contextMenus.onClicked.addListener((info) => {
@@ -64,6 +343,15 @@ chrome.contextMenus.onClicked.addListener((info) => {
case "open":
openApp();
break;
case "break-settings":
openBreakSettings();
break;
case "break-rest-now":
requestBreakNow(BREAK_REST).catch((error) => console.error("Inner Breeze rest-now failed:", error));
break;
case "habits":
openHabits();
break;
case "start-whm":
openApp(practiceUrls.whm);
break;
@@ -77,3 +365,12 @@ chrome.contextMenus.onClicked.addListener((info) => {
break;
}
});
globalThis.__inbeExtensionBreaks = {
normalizeConfig,
normalizeState,
stepTimer,
tickBreaks,
requestBreakNow,
applyNotificationAction,
};
+1 -1
View File
@@ -1,5 +1,5 @@
Package: inbe.waozi
Version: 1.9.2
Version: 1.9.8
Architecture: arm64
Maintainer: Waozi <[email protected]>
Click-Version: 0.4
+1 -1
View File
@@ -28,7 +28,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="1.9.2" date="2026-08-17"/>
<release version="1.9.8" date="2026-08-21"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "inbe",
"title": "Inner Breeze",
"version": "1.9.2",
"version": "1.9.8",
"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": "1.9.2",
"version": "1.9.8",
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
"permissions": [
"contextMenus"
+1 -1
View File
@@ -9,7 +9,7 @@
<p>Inner Breeze is a free, open-source practice app for breathing, meditation, and habit tracking.</p>
<p>It provides guided practice sessions with visual and audio cues, meditation timers, habit counters, session history, import and export, theme customization, and optional sync for habits, sessions, and practice progress.</p>
</description>
<launchable type="desktop-id">inbe.desktop</launchable>
<launchable type="desktop-id">xyz.waozi.inbe.desktop</launchable>
<categories>
<category>Utility</category>
</categories>
+1 -1
View File
@@ -3,7 +3,7 @@ Type=Application
Name=Inner Breeze
Comment=Syncable breathing, meditation, and habit practice app
Exec=inbe
Icon=inbe
Icon=xyz.waozi.inbe
Categories=Utility;
Terminal=false
StartupNotify=true
Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 B

After

Width:  |  Height:  |  Size: 1008 B

+73
View File
@@ -0,0 +1,73 @@
; inbe-setup.nsi — Inner Breeze Windows installer.
;
; Built by `make windows-setup` (see Makefile), which passes:
; -DVERSION=<x.y.z> -DWIN64_EXE=<path> [-DWIN32_EXE=<path>] -DOUT=<path>
; The 32-bit executable is optional; CI always passes both. /S silent
; installs work (winget relies on them).
!ifndef VERSION
!error "VERSION must be defined (-DVERSION=1.2.3)"
!endif
!ifndef WIN64_EXE
!error "WIN64_EXE must be defined"
!endif
!ifndef OUT
!error "OUT must be defined"
!endif
Unicode true
SetCompressor /SOLID lzma
Name "Inner Breeze"
OutFile "${OUT}"
InstallDir "$PROGRAMFILES64\Inner Breeze"
InstallDirRegKey HKLM "Software\Inner Breeze" "InstallDir"
RequestExecutionLevel admin
!include "MUI2.nsh"
!define ARP "Software\Microsoft\Windows\CurrentVersion\Uninstall\Inner Breeze"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section "Inner Breeze"
SetOutPath "$INSTDIR"
File "${WIN64_EXE}"
!ifdef WIN32_EXE
File "${WIN32_EXE}"
!endif
; the shortcut launches the arch-matching executable
Var /GLOBAL ExeName
StrCpy $ExeName "inbe-windows-x86_64.exe"
CreateDirectory "$SMPROGRAMS\Inner Breeze"
CreateShortcut "$SMPROGRAMS\Inner Breeze\Inner Breeze.lnk" "$INSTDIR\$ExeName"
CreateShortcut "$DESKTOP\Inner Breeze.lnk" "$INSTDIR\$ExeName"
WriteRegStr HKLM "Software\Inner Breeze" "InstallDir" "$INSTDIR"
WriteRegStr HKLM "${ARP}" "DisplayName" "Inner Breeze"
WriteRegStr HKLM "${ARP}" "DisplayVersion" "${VERSION}"
WriteRegStr HKLM "${ARP}" "DisplayIcon" "$INSTDIR\$ExeName"
WriteRegStr HKLM "${ARP}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "${ARP}" "NoModify" 1
WriteRegDWORD HKLM "${ARP}" "NoRepair" 1
WriteUninstaller "$INSTDIR\uninstall.exe"
SectionEnd
Section "Uninstall"
Delete "$INSTDIR\inbe-windows-x86_64.exe"
!ifdef WIN32_EXE
Delete "$INSTDIR\inbe-windows-i686.exe"
!endif
Delete "$INSTDIR\uninstall.exe"
Delete "$SMPROGRAMS\Inner Breeze\Inner Breeze.lnk"
RMDir "$SMPROGRAMS\Inner Breeze"
Delete "$DESKTOP\Inner Breeze.lnk"
RMDir "$INSTDIR"
DeleteRegKey HKLM "${ARP}"
DeleteRegKey HKLM "Software\Inner Breeze"
SectionEnd
@@ -0,0 +1,37 @@
# Winget installer manifest template for Inner Breeze.
#
# ONE-TIME bootstrap: the first submission to microsoft/winget-pkgs must be
# a new-package PR. Copy this file into a fork of microsoft/winget-pkgs under
# manifests/x/waozi/inbe/<version>/ (adjust PackageVersion and the three
# Installer hashes/urls from the release) and open the PR manually. After the
# package is accepted, the publish-winget release job keeps it current
# automatically (needs a WINGET_TOKEN classic PAT with repo scope stored as a
# repo secret); without the secret the job skips silently.
PackageIdentifier: xyz.waozi.inbe
PackageVersion: 1.9.5
PackageName: Inner Breeze
Publisher: waozi
License: MIT
ShortDescription: Breathing, meditation and habits trainer that works offline.
PackageUrl: https://github.com/waozixyz/inbe
PublisherUrl: https://waozi.xyz
Moniker: inbe
Tags:
- breathing
- meditation
- wim-hof
- habits
Installers:
- Architecture: x64
InstallerType: nullsoft
InstallerUrl: https://github.com/waozixyz/inbe/releases/download/v1.9.5/inbe-windows-setup-1.9.5.exe
InstallerSha256: REPLACE_WITH_SHA256_OF_SETUP_EXE
Scope: machine
- Architecture: x86
InstallerType: nullsoft
InstallerUrl: https://github.com/waozixyz/inbe/releases/download/v1.9.5/inbe-windows-setup-1.9.5.exe
InstallerSha256: REPLACE_WITH_SHA256_OF_SETUP_EXE
Scope: machine
ManifestType: installer
ManifestVersion: 1.6.0
+111
View File
@@ -0,0 +1,111 @@
#!/usr/bin/env bash
set -euo pipefail
app_id=xyz.waozi.inbe
activity=xyz.waozi.inbe.MainActivity
avd_name=inbe-audio-test-api30
emulator_port=${ANDROID_AUDIO_E2E_PORT:-5580}
serial="emulator-$emulator_port"
work_dir=build/android-audio-e2e
fixture=test-fixtures/audio/autumn-sunset.mp3
fixture_sha256=d1f25feccd8af5cfe22ca1ed6afa901a5f97cbf976b93fc46096a2bd83315034
capture_device=
recorder_pid=
previous_sink=
for command in adb ffmpeg ffprobe pactl parec python3 sha256sum; do
command -v "$command" >/dev/null || { echo "android audio e2e: missing $command"; exit 2; }
done
cleanup() {
if [ -n "$recorder_pid" ]; then kill "$recorder_pid" 2>/dev/null || true; fi
adb -s "$serial" emu kill >/dev/null 2>&1 || true
}
trap cleanup EXIT INT TERM
mkdir -p "$work_dir"
printf '%s %s\n' "$fixture_sha256" "$fixture" | sha256sum -c -
ffprobe -v error -select_streams a:0 \
-show_entries stream=codec_name,channels,sample_rate,bit_rate \
-of default=nw=1 "$fixture" | tee "$work_dir/fixture.txt"
grep -q '^codec_name=mp3$' "$work_dir/fixture.txt"
grep -q '^channels=2$' "$work_dir/fixture.txt"
grep -q '^bit_rate=128000$' "$work_dir/fixture.txt"
previous_sink=$(pactl get-default-sink)
capture_device="$previous_sink.monitor"
if ! pactl list short sources | grep -q "[[:space:]]$capture_device[[:space:]]"; then
echo "android audio e2e: default output has no monitor source: $previous_sink"
exit 2
fi
unset PULSE_SINK QEMU_PA_SINK
export QEMU_AUDIO_DRV=pa
export AVD_NAME="$avd_name"
export ANDROID_EMULATOR_PORT="$emulator_port"
export ANDROID_EMULATOR_AUDIO_BACKEND=pulse
export ANDROID_API=30
export ANDROID_AVD_RAM_MB=2048
export ANDROID_AVD_HEAP_MB=512
export ANDROID_EMULATOR_RAM_MB=2048
export ANDROID_SYSTEM_IMAGE_TYPE=google_apis
bash scripts/emulator.sh
adb -s "$serial" wait-for-device
adb -s "$serial" logcat -c
make android-debug
apk=droid/app/build/outputs/apk/debug/app-x86_64-debug.apk
if [ ! -f "$apk" ]; then apk=droid/app/build/outputs/apk/debug/app-debug.apk; fi
adb -s "$serial" install -r "$apk"
adb -s "$serial" shell pm clear "$app_id" >/dev/null
adb -s "$serial" shell am start -n "$app_id/$activity" >/dev/null
sleep 5
adb -s "$serial" shell cmd media_session volume --stream 3 --set 10 >/dev/null
adb -s "$serial" push "$fixture" /data/local/tmp/inbe-audio-e2e.mp3 >/dev/null
adb -s "$serial" shell run-as "$app_id" cp /data/local/tmp/inbe-audio-e2e.mp3 files/inbe-audio-e2e.mp3
adb -s "$serial" shell am start -n "$app_id/$activity" \
-a xyz.waozi.inbe.action.AUDIO_E2E_IMPORT \
--es audio_file_name inbe-audio-e2e.mp3 --ei practice_id 0 >/dev/null
for _ in $(seq 1 30); do
if adb -s "$serial" logcat -d | grep -q 'AUDIO_E2E: import ready'; then break; fi
sleep 1
done
adb -s "$serial" logcat -d > "$work_dir/logcat-import.txt"
grep -q 'AUDIO_E2E: import ready' "$work_dir/logcat-import.txt"
sleep 2
ffmpeg -y -v error -i "$fixture" -t 10 -ac 1 -ar 8000 -c:a pcm_s16le "$work_dir/source.wav"
capture_practice_audio() {
label=$1
parec --device="$capture_device" --file-format=wav "$work_dir/capture-$label-raw.wav" &
recorder_pid=$!
adb -s "$serial" shell am start -n "$app_id/$activity" \
-a xyz.waozi.inbe.action.START_PRACTICE --ei practice_id 0 >/dev/null
sleep 12
kill "$recorder_pid" 2>/dev/null || true
wait "$recorder_pid" 2>/dev/null || true
recorder_pid=
ffmpeg -y -v error -i "$work_dir/capture-$label-raw.wav" \
-ac 1 -ar 8000 -c:a pcm_s16le "$work_dir/capture-$label.wav"
adb -s "$serial" logcat -d > "$work_dir/logcat-$label.txt"
pactl list short sink-inputs > "$work_dir/sink-inputs-$label.txt"
python3 scripts/audio-envelope-match.py "$work_dir/source.wav" \
"$work_dir/capture-$label.wav" | tee "$work_dir/audio-match-$label.txt"
}
capture_practice_audio initial
adb -s "$serial" logcat -d > "$work_dir/logcat-playback.txt"
if grep -E 'Could not start track|session music is not playing|FATAL EXCEPTION|Fatal signal' "$work_dir/logcat-playback.txt"; then
echo "android audio e2e: playback error"
exit 1
fi
adb -s "$serial" shell am force-stop "$app_id"
adb -s "$serial" shell am start -n "$app_id/$activity" >/dev/null
sleep 4
capture_practice_audio relaunch
adb -s "$serial" logcat -d > "$work_dir/logcat-relaunch.txt"
echo "android audio e2e: PASS; artifacts in $work_dir"
+56
View File
@@ -0,0 +1,56 @@
#!/usr/bin/env python3
"""Compare two mono PCM WAV files by their short-window amplitude envelopes."""
import math
import struct
import sys
import wave
def envelope(path: str, window_ms: int = 100) -> list[float]:
with wave.open(path, "rb") as wav:
if wav.getnchannels() != 1 or wav.getsampwidth() != 2:
raise ValueError(f"{path}: expected mono 16-bit PCM")
rate = wav.getframerate()
raw = wav.readframes(wav.getnframes())
samples = struct.unpack(f"<{len(raw) // 2}h", raw)
window = max(1, rate * window_ms // 1000)
return [
math.sqrt(sum(value * value for value in samples[i:i + window]) /
max(1, len(samples[i:i + window])))
for i in range(0, len(samples), window)
]
def normalized(values: list[float]) -> list[float]:
mean = sum(values) / max(1, len(values))
centered = [value - mean for value in values]
scale = math.sqrt(sum(value * value for value in centered)) or 1.0
return [value / scale for value in centered]
def best_correlation(source: list[float], capture: list[float]) -> float:
source = normalized(source)
best = -1.0
minimum = min(30, len(source))
for offset in range(max(1, len(capture) - minimum + 1)):
count = min(len(source), len(capture) - offset)
if count < minimum:
continue
candidate = normalized(capture[offset:offset + count])
score = sum(source[i] * candidate[i] for i in range(count))
best = max(best, score)
return best
if len(sys.argv) != 3:
raise SystemExit("usage: audio-envelope-match.py SOURCE.wav CAPTURE.wav")
source_envelope = envelope(sys.argv[1])
capture_envelope = envelope(sys.argv[2])
capture_rms = math.sqrt(sum(value * value for value in capture_envelope) /
max(1, len(capture_envelope)))
correlation = best_correlation(source_envelope, capture_envelope)
print(f"capture_rms={capture_rms:.1f} envelope_correlation={correlation:.3f}")
if capture_rms < 80 or correlation < 0.20:
raise SystemExit(1)
+35
View File
@@ -0,0 +1,35 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(git rev-parse --show-toplevel)"
cd "$ROOT"
status=0
git submodule foreach --recursive '
dirty=0
if ! git diff --quiet --ignore-submodules=none; then
dirty=1
fi
if ! git diff --cached --quiet --ignore-submodules=none; then
dirty=1
fi
if [ -n "$(git ls-files --others --exclude-standard)" ]; then
dirty=1
fi
if [ "$dirty" -ne 0 ]; then
echo "Dirty vendor submodule: $displaypath"
git status --short
exit 1
fi
' || status=1
if [ "$status" -ne 0 ]; then
echo
echo "Do not edit vendor from Inbe. Make changes in the owning repo, commit and push there, then update only the submodule pointer here."
exit 1
fi
+163
View File
@@ -0,0 +1,163 @@
import assert from "node:assert/strict";
import fs from "node:fs";
import vm from "node:vm";
const workerSource = fs.readFileSync("packaging/chrome-web-store/service_worker.js", "utf8");
const storage = {};
const events = {};
const notifications = [];
const tabs = [];
const alarms = [];
let idleState = "active";
function event(name) {
events[name] = [];
return {
addListener(listener) {
events[name].push(listener);
},
};
}
const chrome = {
runtime: {
getURL(path) {
return `chrome-extension://inbe/${path}`;
},
onInstalled: event("runtime.onInstalled"),
onStartup: event("runtime.onStartup"),
onMessage: event("runtime.onMessage"),
},
storage: {
local: {
async get(keys) {
const out = {};
for (const key of keys)
out[key] = storage[key];
return out;
},
async set(values) {
Object.assign(storage, values);
},
},
},
alarms: {
async create(name, spec) {
alarms.push({ name, spec });
},
async clear(name) {
alarms.push({ name, clear: true });
},
onAlarm: event("alarms.onAlarm"),
},
idle: {
async queryState() {
return idleState;
},
},
notifications: {
async create(id, options) {
notifications.push({ id, options });
return id;
},
async clear(id) {
notifications.push({ id, clear: true });
return true;
},
onClicked: event("notifications.onClicked"),
onButtonClicked: event("notifications.onButtonClicked"),
},
action: {
onClicked: event("action.onClicked"),
async setBadgeText(value) {
chrome.action.badgeText = value.text;
},
async setBadgeBackgroundColor(value) {
chrome.action.badgeColor = value.color;
},
},
contextMenus: {
create(item) {
chrome.contextMenus.items.push(item);
},
removeAll(callback) {
chrome.contextMenus.items = [];
if (callback) callback();
},
items: [],
onClicked: event("contextMenus.onClicked"),
},
tabs: {
create(tab) {
tabs.push(tab);
},
},
};
const context = {
chrome,
console,
Date,
globalThis: {},
setTimeout,
clearTimeout,
};
context.globalThis = context;
vm.runInNewContext(workerSource, context, {
filename: "packaging/chrome-web-store/service_worker.js",
});
const api = context.__inbeExtensionBreaks;
assert.ok(api, "service worker exposes test API");
const normalized = api.normalizeConfig({
enabled: true,
timers: [{ limitS: 10.4, durationS: 2, showSkip: false }],
});
assert.equal(normalized.enabled, true);
assert.equal(normalized.timers[0].limitS, 10);
assert.equal(normalized.timers[0].showSkip, false);
assert.equal(normalized.timers[1].limitS, 2700);
events["runtime.onInstalled"][0]({ reason: "install" });
await new Promise((resolve) => setImmediate(resolve));
assert.ok(chrome.contextMenus.items.some((item) => item.id === "break-rest-now"));
assert.ok(tabs.some((tab) => tab.url === "chrome-extension://inbe/index.html"));
await api.requestBreakNow(1);
assert.equal(storage.inbeBreakConfig.enabled, true);
assert.ok(notifications.some((entry) => entry.id === "inbe-break-1"));
assert.equal(chrome.action.badgeText, "BR");
storage.inbeBreakConfig = api.normalizeConfig({
enabled: true,
timers: [
{ enabled: true, limitS: 60, durationS: 30, postponeS: 120, maxPrompts: 3, showSkip: true, showPostpone: true },
{ enabled: false },
{ enabled: false },
],
});
storage.inbeBreakState = api.normalizeState({ lastTickMs: 1000 });
idleState = "active";
await api.tickBreaks(61000);
assert.ok(notifications.some((entry) => entry.id === "inbe-break-0" && entry.options.buttons.length === 2));
await api.applyNotificationAction("inbe-break-0", 0);
assert.ok(storage.inbeBreakState.timers[0].snoozeUntilMs > Date.now(), "postpone stores snooze deadline");
storage.inbeBreakState = api.normalizeState({
lastTickMs: 1000,
timers: [{ activeS: 80, idleS: 0 }],
});
idleState = "idle";
await api.tickBreaks(61000);
assert.equal(storage.inbeBreakState.timers[0].activeS, 0, "natural idle break resets timer");
events["notifications.onClicked"][0]("inbe-break-1");
assert.ok(tabs.some((tab) => tab.url.endsWith("?inbe_launch=break-settings")));
events["contextMenus.onClicked"][0]({ menuItemId: "habits" });
assert.ok(tabs.some((tab) => tab.url.endsWith("?inbe_launch=habits")));
console.log("Chrome extension break service worker tests passed");
+307
View File
@@ -0,0 +1,307 @@
#!/usr/bin/env node
import assert from "node:assert/strict";
import { spawn } from "node:child_process";
import { accessSync, constants, existsSync, mkdtempSync, readFileSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
import { join, resolve } from "node:path";
if (typeof WebSocket === "undefined") {
console.error("chrome extension live test needs Node with global WebSocket support");
process.exit(1);
}
const extensionRoot = resolve(process.argv[2] || "build/dist/chrome-web-store");
const timeoutMs = Number(process.env.INBE_EXTENSION_TEST_TIMEOUT_MS || 120000);
const userDataDir = mkdtempSync(join(tmpdir(), "inbe-chrome-extension-"));
function canExecute(path) {
try {
accessSync(path, constants.X_OK);
return true;
} catch {
return false;
}
}
function findOnPath(command) {
if (command.includes("/"))
return canExecute(command) ? command : "";
for (const dir of (process.env.PATH || "").split(":")) {
if (!dir) continue;
const path = join(dir, command);
if (canExecute(path)) return path;
}
return "";
}
function resolveChromium() {
const candidates = [
process.env.CHROME || "",
"/usr/bin/chromium",
"/usr/bin/chromium-browser",
"/usr/bin/google-chrome",
"/usr/bin/google-chrome-stable",
"chromium",
"chromium-browser",
"google-chrome",
"google-chrome-stable",
].filter(Boolean);
for (const candidate of candidates) {
const browser = findOnPath(candidate);
if (browser) return browser;
}
throw new Error(`Chrome/Chromium not found; tried ${candidates.join(", ")}`);
}
function delay(ms) {
return new Promise((resolveDelay) => setTimeout(resolveDelay, ms));
}
function readDevtoolsPort() {
const path = join(userDataDir, "DevToolsActivePort");
if (!existsSync(path)) return 0;
const port = Number(readFileSync(path, "utf8").split("\n", 1)[0]);
return Number.isFinite(port) && port > 0 ? port : 0;
}
async function waitForDevtools(chrome, stderrLines) {
const start = Date.now();
let exited = false;
chrome.once("exit", () => {
exited = true;
});
while (Date.now() - start < timeoutMs) {
if (exited) {
const stderr = stderrLines.join("").trim();
throw new Error(`Chromium exited before DevTools was ready${stderr ? `: ${stderr.slice(-3000)}` : ""}`);
}
const port = readDevtoolsPort();
if (port) return port;
await delay(100);
}
throw new Error("timed out waiting for Chromium DevTools port");
}
class Cdp {
constructor(url) {
this.ws = new WebSocket(url);
this.nextId = 1;
this.pending = new Map();
this.events = [];
this.ready = new Promise((resolveReady, rejectReady) => {
this.ws.addEventListener("open", resolveReady, { once: true });
this.ws.addEventListener("error", rejectReady, { once: true });
});
this.ws.addEventListener("message", (event) => this.onMessage(event));
}
onMessage(event) {
const message = JSON.parse(event.data);
if (message.id && this.pending.has(message.id)) {
const { resolve, reject } = this.pending.get(message.id);
this.pending.delete(message.id);
if (message.error) reject(new Error(`${message.error.message || "CDP error"} ${JSON.stringify(message.error)}`));
else resolve(message.result || {});
return;
}
this.events.push(message);
}
async send(method, params = {}, sessionId = undefined) {
await this.ready;
const id = this.nextId++;
const payload = { id, method, params };
if (sessionId) payload.sessionId = sessionId;
this.ws.send(JSON.stringify(payload));
return new Promise((resolve, reject) => {
this.pending.set(id, { resolve, reject });
});
}
close() {
this.ws.close();
}
}
async function waitForTarget(cdp, predicate, label) {
const start = Date.now();
while (Date.now() - start < timeoutMs) {
const { targetInfos } = await cdp.send("Target.getTargets");
const match = targetInfos.find(predicate);
if (match) return match;
await delay(250);
}
throw new Error(`timed out waiting for target: ${label}`);
}
async function attach(cdp, targetId) {
const { sessionId } = await cdp.send("Target.attachToTarget", {
targetId,
flatten: true,
});
await cdp.send("Runtime.enable", {}, sessionId);
return sessionId;
}
async function evaluate(cdp, sessionId, expression, awaitPromise = false) {
const result = await cdp.send("Runtime.evaluate", {
expression,
awaitPromise,
returnByValue: true,
}, sessionId);
if (result.exceptionDetails) {
throw new Error(`evaluation failed: ${JSON.stringify(result.exceptionDetails)}`);
}
return result.result.value;
}
async function waitForPageReady(cdp, sessionId) {
const start = Date.now();
let lastState = {};
while (Date.now() - start < timeoutMs) {
const value = await evaluate(cdp, sessionId, `JSON.stringify({
extension: !!window.__inbeExtension,
runtimeReady: !!(window.Module && Module.__inbeRuntimeReady),
href: location.href
})`);
const state = JSON.parse(value);
lastState = state;
if (state.runtimeReady) return state;
await delay(500);
}
assert.equal(lastState.extension, true, `extension flag missing at ${lastState.href || "unknown page"}`);
throw new Error(`extension app page did not become runtime-ready: ${JSON.stringify(lastState)}`);
}
async function waitForWorkerBreakConfig(cdp, worker, predicate, label) {
const start = Date.now();
let lastConfig = null;
while (Date.now() - start < timeoutMs) {
lastConfig = JSON.parse(await evaluate(cdp, worker, `chrome.storage.local.get('inbeBreakConfig').then((data) => JSON.stringify(data.inbeBreakConfig || null))`, true));
if (predicate(lastConfig)) return lastConfig;
await delay(500);
}
throw new Error(`timed out waiting for worker break config ${label}: ${JSON.stringify(lastConfig)}`);
}
async function main() {
assert.ok(existsSync(join(extensionRoot, "manifest.json")), "missing built extension manifest");
assert.ok(existsSync(join(extensionRoot, "service_worker.js")), "missing built extension worker");
assert.ok(existsSync(join(extensionRoot, "index.html")), "missing built extension page");
const chromium = resolveChromium();
const stderrLines = [];
const args = [
"--headless=new",
"--disable-gpu",
"--disable-breakpad",
"--disable-crash-reporter",
"--disable-crashpad",
"--disable-dev-shm-usage",
"--no-first-run",
"--no-default-browser-check",
"--remote-debugging-port=0",
`--user-data-dir=${userDataDir}`,
`--disable-extensions-except=${extensionRoot}`,
`--load-extension=${extensionRoot}`,
"about:blank",
];
if (process.env.INBE_EXTENSION_NO_SANDBOX || (typeof process.getuid === "function" && process.getuid() === 0))
args.splice(1, 0, "--no-sandbox");
const chrome = spawn(chromium, args, { stdio: ["ignore", "ignore", "pipe"] });
chrome.stderr.on("data", (data) => stderrLines.push(data.toString()));
let cdp;
try {
const port = await waitForDevtools(chrome, stderrLines);
const version = await fetch(`http://127.0.0.1:${port}/json/version`).then((res) => res.json());
cdp = new Cdp(version.webSocketDebuggerUrl);
await cdp.ready;
await cdp.send("Target.setDiscoverTargets", { discover: true });
const workerTarget = await waitForTarget(
cdp,
(target) => target.type === "service_worker" &&
target.url.startsWith("chrome-extension://") &&
target.url.endsWith("/service_worker.js"),
"extension service worker",
);
const extensionId = new URL(workerTarget.url).host;
const worker = await attach(cdp, workerTarget.targetId);
const workerApi = await evaluate(cdp, worker, `JSON.stringify({
hasBreakApi: !!globalThis.__inbeExtensionBreaks,
hasChromeStorage: !!(chrome && chrome.storage && chrome.storage.local),
hasNotifications: !!(chrome && chrome.notifications),
hasAlarms: !!(chrome && chrome.alarms)
})`);
assert.deepEqual(JSON.parse(workerApi), {
hasBreakApi: true,
hasChromeStorage: true,
hasNotifications: true,
hasAlarms: true,
});
await evaluate(cdp, worker, `globalThis.__inbeExtensionBreaks.requestBreakNow(1).then(() => true)`, true);
const workerState = JSON.parse(await evaluate(cdp, worker, `chrome.storage.local.get(['inbeBreakConfig', 'inbeBreakState']).then((data) => JSON.stringify({
enabled: data.inbeBreakConfig && data.inbeBreakConfig.enabled,
notificationId: data.inbeBreakState && data.inbeBreakState.timers && data.inbeBreakState.timers[1].notificationId
}))`, true));
assert.equal(workerState.enabled, true);
assert.equal(workerState.notificationId, "inbe-break-1");
const { targetId } = await cdp.send("Target.createTarget", {
url: `chrome-extension://${extensionId}/index.html?inbe_launch=break-settings`,
});
const page = await attach(cdp, targetId);
const readyState = await waitForPageReady(cdp, page);
assert.ok(readyState.href.includes("chrome-extension://"));
const pageExports = JSON.parse(await evaluate(cdp, page, `(() => {
Module._app_web_test_enable_extension_breaks(60);
return JSON.stringify({
host: Module._app_web_extension_host(),
enabled: Module._app_web_extension_breaks_enabled(),
limitS: Module._app_web_extension_break_timer_limit_s(1),
showPostpone: Module._app_web_extension_break_timer_show_postpone(1)
});
})()`));
assert.deepEqual(pageExports, {
host: 1,
enabled: 1,
limitS: 60,
showPostpone: 1,
});
await evaluate(cdp, page, `window.__inbeExtensionBreakNow(1); true`);
const configFromPage = await waitForWorkerBreakConfig(
cdp,
worker,
(config) => !!config && config.enabled === true &&
config.timers && config.timers[1] &&
config.timers[1].limitS === 60 &&
config.timers[1].showPostpone === true,
"from app bridge",
);
await cdp.send("Target.createTarget", {
url: `chrome-extension://${extensionId}/index.html?inbe_launch=habits`,
});
await waitForTarget(cdp, (target) => target.type === "page" && target.url.includes("inbe_launch=habits"), "habits launch page");
console.log(`Chrome extension live test passed (${extensionId})`);
} finally {
if (cdp) cdp.close();
chrome.kill("SIGTERM");
await delay(250);
rmSync(userDataDir, { recursive: true, force: true });
}
}
main().catch((error) => {
console.error(`Chrome extension live test failed: ${error.stack || error.message}`);
process.exit(1);
});
+29 -9
View File
@@ -57,6 +57,11 @@ image_dir_ready() {
}
image_specs() {
if [ -n "${ANDROID_SYSTEM_IMAGE_TYPE:-}" ]; then
printf '%s x86_64\n%s arm64-v8a\n' "$ANDROID_SYSTEM_IMAGE_TYPE" "$ANDROID_SYSTEM_IMAGE_TYPE"
return
fi
cat << EOF
google_apis_playstore_ps16k x86_64
google_apis_ps16k x86_64
@@ -89,17 +94,32 @@ find_system_image() {
}
install_system_image() {
if command -v sdkmanager >/dev/null 2>&1; then
SDKMANAGER=sdkmanager
elif [ -x "$ANDROID_SDK_ROOT/cmdline-tools/11.0/bin/sdkmanager" ]; then
SDKMANAGER="$ANDROID_SDK_ROOT/cmdline-tools/11.0/bin/sdkmanager"
elif [ -x "$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager" ]; then
SDKMANAGER="$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager"
else
SDKMANAGER=""
for candidate in \
"$ANDROID_SDK_ROOT/cmdline-tools/latest-2/bin/sdkmanager" \
"$ORIGINAL_SDK_ROOT/cmdline-tools/latest-2/bin/sdkmanager"; do
if [ -x "$candidate" ]; then
SDKMANAGER="$candidate"
break
fi
done
if [ -z "$SDKMANAGER" ]; then
while IFS= read -r candidate; do
[ -x "$candidate" ] && SDKMANAGER="$candidate"
done < <(find -L "$ANDROID_SDK_ROOT/cmdline-tools" "$ORIGINAL_SDK_ROOT/cmdline-tools" \
-mindepth 3 -maxdepth 3 -type f -path '*/bin/sdkmanager' 2>/dev/null | sort -V)
fi
if [ -z "$SDKMANAGER" ] && command -v sdkmanager >/dev/null 2>&1; then
SDKMANAGER="$(command -v sdkmanager)"
fi
if [ -z "$SDKMANAGER" ]; then
echo "❌ Error: sdkmanager not found"
return 1
fi
echo "📦 Using sdkmanager: $SDKMANAGER"
while read -r type abi; do
[ -n "$type" ] || continue
package="system-images;android-$ANDROID_API;$type;$abi"
@@ -164,8 +184,8 @@ hw.lcd.height=2960
hw.lcd.width=1440
hw.gpu.enabled=yes
hw.gpu.mode=host
hw.ramSize=4096
vm.heapSize=1024
hw.ramSize=${ANDROID_AVD_RAM_MB:-4096}
vm.heapSize=${ANDROID_AVD_HEAP_MB:-1024}
hw.sdCard=yes
hw.sdCard.size=2048MB
disk.cachePartition=yes
+50 -14
View File
@@ -3,6 +3,7 @@
set -e
AVD_NAME="${AVD_NAME:-inbe-test}"
EMULATOR_PORT="${ANDROID_EMULATOR_PORT:-}"
UNAME_S="$(uname -s)"
KERNEL_R="$(uname -r 2>/dev/null || true)"
SOFT_EMULATOR=0
@@ -64,6 +65,32 @@ if [ ! -x "$ADB_CMD" ]; then
ADB_CMD="$(command -v adb)"
fi
if [ -n "$EMULATOR_PORT" ]; then
EMULATOR_SERIAL="emulator-$EMULATOR_PORT"
ADB_ARGS=(-s "$EMULATOR_SERIAL")
PORT_ARGS=(-port "$EMULATOR_PORT")
else
EMULATOR_SERIAL=""
ADB_ARGS=(-e)
PORT_ARGS=()
fi
if [ -n "${ANDROID_EMULATOR_AUDIO_BACKEND:-}" ]; then
AUDIO_ARGS=(-audio "$ANDROID_EMULATOR_AUDIO_BACKEND")
elif [ "$SOFT_EMULATOR" -eq 1 ]; then
AUDIO_ARGS=(-no-audio)
else
AUDIO_ARGS=()
fi
if [ -n "${ANDROID_EMULATOR_RAM_MB:-}" ]; then
MEMORY_ARGS=(-memory "$ANDROID_EMULATOR_RAM_MB")
QEMU_MEMORY_ARGS=(-m "$ANDROID_EMULATOR_RAM_MB")
else
MEMORY_ARGS=()
QEMU_MEMORY_ARGS=()
fi
EMULATOR_CMD="${ANDROID_SDK_ROOT}/emulator/emulator"
if [ ! -x "$EMULATOR_CMD" ]; then
EMULATOR_CMD="$(command -v emulator)"
@@ -77,7 +104,11 @@ if [ "$UNAME_S" = "FreeBSD" ] && command -v brandelf >/dev/null 2>&1; then
fi
# Check if emulator is already running
if "$ADB_CMD" devices | grep -q '^emulator-[0-9][0-9]*[[:space:]]*device'; then
if [ -n "$EMULATOR_SERIAL" ] && "$ADB_CMD" devices | grep -q "^$EMULATOR_SERIAL[[:space:]]*device"; then
echo "✅ Emulator already running"
"$ADB_CMD" devices
exit 0
elif [ -z "$EMULATOR_SERIAL" ] && "$ADB_CMD" devices | grep -q '^emulator-[0-9][0-9]*[[:space:]]*device'; then
echo "✅ Emulator already running"
"$ADB_CMD" devices
exit 0
@@ -100,7 +131,9 @@ export ANDROID_SDK_ROOT="$ANDROID_SDK_ROOT"
if [ "$SOFT_EMULATOR" -eq 1 ]; then
LD_LIBRARY_PATH="$EMULATOR_LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" "$EMULATOR_CMD" @"$AVD_NAME" \
-no-window \
-no-audio \
"${AUDIO_ARGS[@]}" \
"${PORT_ARGS[@]}" \
"${MEMORY_ARGS[@]}" \
-gpu off \
-no-accel \
-no-snapshot-load \
@@ -108,12 +141,15 @@ if [ "$SOFT_EMULATOR" -eq 1 ]; then
-verbose > /tmp/emulator.log 2>&1 &
else
LD_LIBRARY_PATH="$EMULATOR_LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" "$EMULATOR_CMD" @"$AVD_NAME" \
"${AUDIO_ARGS[@]}" \
"${PORT_ARGS[@]}" \
"${MEMORY_ARGS[@]}" \
-gpu host \
-skin 1440x2960 \
-no-snapshot-load \
-no-boot-anim \
-verbose \
-qemu -enable-kvm > /tmp/emulator.log 2>&1 &
-qemu "${QEMU_MEMORY_ARGS[@]}" -enable-kvm > /tmp/emulator.log 2>&1 &
fi
echo "⏳ Waiting for boot (this may take a while)..."
@@ -123,8 +159,8 @@ if [ "$SOFT_EMULATOR" -eq 1 ]; then
fi
elapsed=0
timeout 20 "$ADB_CMD" -e wait-for-device >/dev/null 2>&1 || true
while ! "$ADB_CMD" -e shell getprop sys.boot_completed 2>/dev/null | grep -q "1"; do
timeout 20 "$ADB_CMD" "${ADB_ARGS[@]}" wait-for-device >/dev/null 2>&1 || true
while ! "$ADB_CMD" "${ADB_ARGS[@]}" shell getprop sys.boot_completed 2>/dev/null | grep -q "1"; do
if [ $elapsed -ge $timeout_seconds ]; then
echo "❌ Timeout waiting for boot. Check /tmp/emulator.log"
exit 1
@@ -148,20 +184,20 @@ done
echo "✅ Pixel 8 Pro emulator ready!"
echo "🎯 Enabling punch-hole display cutout overlay if available..."
if "$ADB_CMD" -e shell cmd overlay list 2>/dev/null | grep -q "com.android.internal.display.cutout.emulation.hole"; then
"$ADB_CMD" -e shell cmd overlay enable --user 0 com.android.internal.display.cutout.emulation.hole || true
elif "$ADB_CMD" -e shell cmd overlay list 2>/dev/null | grep -q "com.android.internal.display.cutout.emulation.corner"; then
"$ADB_CMD" -e shell cmd overlay enable --user 0 com.android.internal.display.cutout.emulation.corner || true
elif "$ADB_CMD" -e shell cmd overlay list 2>/dev/null | grep -q "com.android.internal.display.cutout.emulation.tall"; then
"$ADB_CMD" -e shell cmd overlay enable --user 0 com.android.internal.display.cutout.emulation.tall || true
if "$ADB_CMD" "${ADB_ARGS[@]}" shell cmd overlay list 2>/dev/null | grep -q "com.android.internal.display.cutout.emulation.hole"; then
"$ADB_CMD" "${ADB_ARGS[@]}" shell cmd overlay enable --user 0 com.android.internal.display.cutout.emulation.hole || true
elif "$ADB_CMD" "${ADB_ARGS[@]}" shell cmd overlay list 2>/dev/null | grep -q "com.android.internal.display.cutout.emulation.corner"; then
"$ADB_CMD" "${ADB_ARGS[@]}" shell cmd overlay enable --user 0 com.android.internal.display.cutout.emulation.corner || true
elif "$ADB_CMD" "${ADB_ARGS[@]}" shell cmd overlay list 2>/dev/null | grep -q "com.android.internal.display.cutout.emulation.tall"; then
"$ADB_CMD" "${ADB_ARGS[@]}" shell cmd overlay enable --user 0 com.android.internal.display.cutout.emulation.tall || true
else
echo " No display cutout emulation overlay found on this image"
fi
echo ""
echo "📱 Device info:"
"$ADB_CMD" -e shell getprop ro.product.model
"$ADB_CMD" -e shell getprop ro.build.version.release
"$ADB_CMD" -e shell getprop ro.build.version.sdk
"$ADB_CMD" "${ADB_ARGS[@]}" shell getprop ro.product.model
"$ADB_CMD" "${ADB_ARGS[@]}" shell getprop ro.build.version.release
"$ADB_CMD" "${ADB_ARGS[@]}" shell getprop ro.build.version.sdk
echo ""
echo " Connect with: $ADB_CMD -e shell"
+89 -23
View File
@@ -14,29 +14,31 @@ case "$UNAME_M" in
*) ARCH="$UNAME_M" ;;
esac
BIN="${1:-"$ROOT_DIR/build/bin/$PLATFORM/inbe-$PLATFORM-$ARCH"}"
OUT_DIR="${SCREENSHOT_OUT_DIR:-"$ROOT_DIR/tmp"}"
OUT_DIR="${SCREENSHOT_OUT_DIR:-"$ROOT_DIR/build/screenshots"}"
DATA_BASE="$OUT_DIR/screenshot-data"
FASTLANE_IMAGES_DIR="${SCREENSHOT_FASTLANE_IMAGES_DIR:-"$ROOT_DIR/fastlane/metadata/android/en-US/images"}"
FASTLANE_SYNC="${SCREENSHOT_FASTLANE_SYNC:-1}"
FASTLANE_FORMAT="${SCREENSHOT_FASTLANE_FORMAT:-png}"
FASTLANE_JPEG_QUALITY="${SCREENSHOT_FASTLANE_JPEG_QUALITY:-92}"
SCREENSHOT_STYLE="${SCREENSHOT_STYLE:-2}"
ANALYSIS_FILE="$OUT_DIR/screenshot-analysis.tsv"
SCENES=(
"home:01-home:0:0"
"background_music:02-background-music:1:0"
"practice_config_whm:03-wim-hof-config:2:0"
"practice_manual_whm:04-wim-hof-manual:3:0"
"wim_hof_session:05-wim-hof-session:11:1"
"calendar_meditation:06-calendar-meditation:1:0"
"habits_stats:07-habits-statistics:2:1"
"data:08-data:0:0"
"my_practices:09-my-practices:4:0"
"configure_account:10-configure-account:7:1"
"settings_session:11-settings-session:0:0"
"theme_selection:12-theme-selection:0:0"
"home:01-practice-home:-1:0:Practice home"
"patterns:02-pattern-breathing:-1:0:Pattern breathing session"
"habits_overview:03-habits-overview:-1:0:Habits overview"
"habits_stats:04-habit-statistics:-1:0:Habit statistics"
"wim_hof_session:05-wim-hof-session:-1:0:Wim Hof session"
"meditation_session:06-meditation-session:-1:0:Meditation session"
"practice_manual_whm:07-wim-hof-how-to:-1:0:Wim Hof Method how to"
"cobalt_dark:08-cobalt-dark-pattern-breathing:11:1:Cobalt dark Pattern Breathing"
)
BUCKETS=(
"phone:1080:1920"
"tablet-7:1920:1080"
"tablet-10:2560:1440"
"chromebook:2560:1440"
"phone:1080:1920:phoneScreenshots"
"tablet-7:1920:1080:sevenInchScreenshots"
"tablet-10:2560:1440:tenInchScreenshots"
"chromebook:2560:1440:"
)
if [[ ! -x "$BIN" ]]; then
@@ -54,6 +56,18 @@ mkdir -p "$OUT_DIR"
rm -rf "$OUT_DIR/phone" "$OUT_DIR/tablet-7" "$OUT_DIR/tablet-10" \
"$OUT_DIR/chromebook" "$DATA_BASE"
mkdir -p "$DATA_BASE"
printf 'bucket\tfastlane_dir\torder\tscene\tfile\tfastlane_file\twidth\theight\ttheme\tdark\tstyle\texpected\n' > "$ANALYSIS_FILE"
if [[ "$FASTLANE_SYNC" = "1" ]]; then
mkdir -p "$FASTLANE_IMAGES_DIR"
for bucket in "${BUCKETS[@]}"; do
IFS=: read -r _bucket_name _width _height fastlane_subdir <<<"$bucket"
if [[ -n "$fastlane_subdir" ]]; then
rm -rf "$FASTLANE_IMAGES_DIR/$fastlane_subdir"
mkdir -p "$FASTLANE_IMAGES_DIR/$fastlane_subdir"
fi
done
fi
run_app() {
local width="$1"
@@ -63,8 +77,9 @@ run_app() {
local output="$5"
local theme="$6"
local dark="$7"
local style="$8"
if [[ ! -f "$data_root/inbe.db" ]]; then
if [[ "${SCREENSHOT_SEED_DB:-0}" = "1" && ! -f "$data_root/inbe.db" ]]; then
NOW=$(date +%s)
USER_ID="local-screenshot-$NOW"
@@ -230,7 +245,8 @@ EOF
--screenshot-width "$width" \
--screenshot-height "$height" \
--screenshot-theme "$theme" \
--screenshot-dark "$dark"
--screenshot-dark "$dark" \
--screenshot-style "$style"
app_status=$?
set -e
if [[ "$app_status" -ne 0 && ! -s "$output" ]]; then
@@ -239,19 +255,50 @@ EOF
fi
}
sync_fastlane_screenshot() {
local input="$1"
local output="$2"
case "$FASTLANE_FORMAT" in
jpg|jpeg)
if command -v magick >/dev/null 2>&1; then
magick "$input" -strip -interlace Plane -quality "$FASTLANE_JPEG_QUALITY" "$output"
elif command -v convert >/dev/null 2>&1; then
convert "$input" -strip -interlace Plane -quality "$FASTLANE_JPEG_QUALITY" "$output"
else
echo "ImageMagick is required for JPEG Fastlane exports; falling back to PNG copy." >&2
cp "$input" "${output%.*}.png"
fi
;;
png)
if command -v magick >/dev/null 2>&1; then
magick "$input" -strip -define png:compression-level=9 "$output"
elif command -v convert >/dev/null 2>&1; then
convert "$input" -strip -define png:compression-level=9 "$output"
else
cp "$input" "$output"
fi
;;
*)
echo "Unsupported SCREENSHOT_FASTLANE_FORMAT: $FASTLANE_FORMAT" >&2
exit 1
;;
esac
}
count=0
for bucket in "${BUCKETS[@]}"; do
IFS=: read -r bucket_name width height <<<"$bucket"
IFS=: read -r bucket_name width height fastlane_subdir <<<"$bucket"
bucket_dir="$OUT_DIR/$bucket_name"
mkdir -p "$bucket_dir"
for scene_def in "${SCENES[@]}"; do
IFS=: read -r scene slug theme dark <<<"$scene_def"
IFS=: read -r scene slug theme dark expected <<<"$scene_def"
output="$bucket_dir/${slug}-${width}x${height}.png"
data_root="$DATA_BASE/${bucket_name}-${scene}"
mkdir -p "$data_root"
echo "Generating $bucket_name/$slug ${width}x${height}"
run_app "$width" "$height" "$data_root" "$scene" "$output" "$theme" "$dark"
echo "Generating $bucket_name/$slug ${width}x${height} [$expected]"
run_app "$width" "$height" "$data_root" "$scene" "$output" "$theme" "$dark" "$SCREENSHOT_STYLE"
if [[ ! -s "$output" ]]; then
echo "Screenshot was not created: $output" >&2
exit 1
@@ -266,8 +313,27 @@ for bucket in "${BUCKETS[@]}"; do
if [[ "$bytes" -gt 8388608 ]]; then
echo "Warning: $output is larger than 8 MB" >&2
fi
fastlane_file=""
if [[ "$FASTLANE_SYNC" = "1" && -n "$fastlane_subdir" ]]; then
fastlane_ext="$FASTLANE_FORMAT"
[[ "$fastlane_ext" = "jpeg" ]] && fastlane_ext="jpg"
fastlane_file="$FASTLANE_IMAGES_DIR/$fastlane_subdir/${slug}.${fastlane_ext}"
sync_fastlane_screenshot "$output" "$fastlane_file"
fastlane_bytes="$(stat -c %s "$fastlane_file" 2>/dev/null || wc -c <"$fastlane_file")"
if [[ "$fastlane_bytes" -gt 8388608 ]]; then
echo "Warning: $fastlane_file is larger than 8 MB" >&2
fi
fi
printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n' \
"$bucket_name" "$fastlane_subdir" "${slug%%-*}" "$scene" "$output" "$fastlane_file" \
"$width" "$height" "$theme" "$dark" "$SCREENSHOT_STYLE" "$expected" \
>> "$ANALYSIS_FILE"
count=$((count + 1))
done
done
echo "Wrote $count screenshots to $OUT_DIR"
if [[ "$FASTLANE_SYNC" = "1" ]]; then
echo "Synced Play/F-Droid screenshots to $FASTLANE_IMAGES_DIR"
fi
echo "Wrote screenshot analysis to $ANALYSIS_FILE"
Loaded 100 of 167 files, more files were not shown because too many files have changed in this diff. Show more