app: cherry-pick rune's pause and sound fixes onto the checkout

Rune comes from app/vendor/rune now, a checkout of 63ad0209 on branch
ported, carrying the four commits of upstream issues 1320 (a pause while
a clip is layered holds the layer's picture and time) and 1325 (a video's
sound is read ahead of the clock and leads it). Both were written against
eb9f1104 and ported across the refactors since. The faults are the first
two and the third in docs/rune-upstream.md; the app's workarounds in
review.rs stay until the fixes arrive upstream.
This commit is contained in:
vhaudiquet committed 2026-11-22 22:16:30 +01:00
1 parent 80fef698ce
commit 5bf262b82b
3795 files changed
+663463 -28

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Hot reload for a Rune app, compiled and run on this machine: `scripts/rune-dev --local` under the
# flags apps already pass. Saved edits to function bodies in the --patch files patch into the open
# window; any other edit rebuilds and restarts the app, so apps should restore their own state
# (tabs, route, drafts) at launch.
# scripts/rune-hot --manifest app/Cargo.toml --patch src/view.rs [--patch …] [--port 18745] \
# [-- APP ARGS]
# Needs Dioxus CLI 0.7.10 as `dx` in Cargo's bin directory (RUNE_DX overrides the path).
# RUNE_DEV_WRAP runs the build and the app under a command prefix (a build-queue lease, say);
# without it they run under plain cargo.
set -euo pipefail
here=$(cd "$(dirname "$0")" && pwd)
manifest="" port=18745 patches=()
while [[ $# -gt 0 ]]; do
case "$1" in
--manifest) manifest=$2; shift 2 ;;
--patch) patches+=(--patch "$2"); shift 2 ;;
--port) port=$2; shift 2 ;;
--) shift; break ;;
*) echo "rune-hot: unknown flag $1" >&2; exit 2 ;;
esac
done
[[ -n $manifest ]] || { echo "rune-hot: --manifest is required" >&2; exit 2; }
exec python3 "$here/rune-dev" --local --manifest-path "$manifest" ${patches[@]+"${patches[@]}"} --port "$port" -- "$@"