mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 22:05:59 +00:00
feat: desktop and scrolling wall live wallpapers (#2012)
* feat: desktop and scrolling wall live wallpapers selectable from Android settings * fix: render the wall wallpaper off the main thread and give it its own thumbnail * fix: serialize wall wallpaper visibility and wait out in-flight draws on surface destroy * fix: restart the wall loop on surface recreation and keep queued visibility changes * fix: keep the wall loop alive across a failed canvas lock and finish redraws before returning * fix: post the wall redraw asynchronously on surface change * fix: redraw the desktop wallpaper logo from the real mark and show game covers on the wall * chore: mount the git dir in build containers and seed new worktrees from the main checkout * fix: decode wall covers as RGB_565 and seed worktree assets only into empty dirs * feat: drop the desktop wallpaper and add frame rate and speed settings to the wall * feat: wall settings over the live wallpaper with a match-screen rate, and drop the center vignette * perf: pace the wall on vsync and draw it on a hardware canvas * fix: stage worktree seed copies and publish them only after they succeed * fix: point the wall settings link at the activity class so the picker shows the gear * fix: dedupe wall covers by app and space repeats like the in-app wall, keep the frame loop alive across surface gaps * fix: show the picker preview behind wall settings and drop the display-rate lookup * fix: stop wall frame callbacks when the surface goes and only replace an empty seed destination * fix: skip a seed when the destination reappears before the staged copy is moved in
This commit is contained in:
1 parent
0110dc3c0f
commit
430af5e22d
11 files changed
+406
-3
No files matched your search
@@ -115,9 +115,10 @@ image_id=$(docker image inspect --format '{{.Id}}' "${image_name}")
|
||||
rm -rf -- "${linuxfs_dir}"
|
||||
mkdir -p "${linuxfs_dir}"
|
||||
|
||||
git_common=$(git -C "${repo_root}" rev-parse --path-format=absolute --git-common-dir)
|
||||
docker run --rm --platform "${docker_platform}" \
|
||||
--user "$(id -u):$(id -g)" \
|
||||
-v "${repo_root}:/src" -w /src "${image_name}" bash -lc '
|
||||
-v "${repo_root}:/src" -v "${git_common}:${git_common}" -w /src "${image_name}" bash -lc '
|
||||
set -euo pipefail
|
||||
d=app/src/main/assets/linuxfs
|
||||
mkdir -p "$d"
|
||||
@@ -163,7 +164,7 @@ x86_key=$(inputs_hash bullseye tools/linuxfs/build-x86-preloads.sh tools/linuxfs
|
||||
x86_stage="${staging_dir}/x86-preloads"
|
||||
if restore_step x86-preloads "${x86_key}" "${linuxfs_dir}"; then :; else
|
||||
docker run --rm --platform linux/amd64 \
|
||||
-v "${repo_root}:/src" -w /src public.ecr.aws/docker/library/debian:bullseye bash -c '
|
||||
-v "${repo_root}:/src" -v "${git_common}:${git_common}" -w /src public.ecr.aws/docker/library/debian:bullseye bash -c '
|
||||
set -euo pipefail
|
||||
printf "deb http://archive.debian.org/debian bullseye main\ndeb http://archive.debian.org/debian-security bullseye-security main\n" > /etc/apt/sources.list
|
||||
apt-get -o Acquire::Check-Valid-Until=false update -qq
|
||||
|
||||
@@ -6,7 +6,8 @@ image=${DROIDDECK_BUILD_IMAGE}
|
||||
platform=${DROIDDECK_DOCKER_PLATFORM}
|
||||
rust_cache="${HOME}/.cache/droiddeck-comet-rust${platform#linux/amd64}"
|
||||
rust_cache=${rust_cache/\/arm64/-arm64}
|
||||
docker run --rm --platform "$platform" -v "$repo:/src" \
|
||||
git_common=$(git -C "$repo" rev-parse --path-format=absolute --git-common-dir)
|
||||
docker run --rm --platform "$platform" -v "$repo:/src" -v "$git_common:$git_common" \
|
||||
-v "${rust_cache}:/rust" -w /src \
|
||||
-e CARGO_HOME=/rust/cargo -e RUSTUP_HOME=/rust/rustup "$image" bash -lc '
|
||||
set -euo pipefail
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
set -euo pipefail
|
||||
repo_root=$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
|
||||
cd "${repo_root}"
|
||||
"${repo_root}/tools/seed_worktree.sh"
|
||||
sdk_dir=${ANDROID_HOME:-${ANDROID_SDK_ROOT:-"${HOME}/Library/Android/sdk"}}
|
||||
export ANDROID_HOME=${sdk_dir} ANDROID_SDK_ROOT=${sdk_dir}
|
||||
export JAVA_HOME=${JAVA_HOME:-/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home}
|
||||
|
||||
Executable
+41
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
repo_root=$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
|
||||
common=$(git -C "${repo_root}" rev-parse --path-format=absolute --git-common-dir)
|
||||
main_root=$(dirname "${common}")
|
||||
[[ "${main_root}" != "${repo_root}" && -d "${main_root}/app/build" ]] || exit 0
|
||||
|
||||
paths=(
|
||||
app/build/prepared-assets app/build/runtime-inputs.json app/build/runtimeAssets
|
||||
app/build/packs app/build/localPackAssets app/build/packs-local-aside app/build/quest-inputs
|
||||
app/build/rustJniLibs app/build/vkbridgeJniLibs
|
||||
app/src/main/assets/directaudio app/src/main/assets/droiddeck-esync app/src/main/assets/linuxfs
|
||||
app/src/main/assets/desktop-removal
|
||||
app/src/main/jniLibs/arm64-v8a
|
||||
app/src/main/rust/stores/target
|
||||
)
|
||||
for path in "${paths[@]}"; do
|
||||
[[ -e "${main_root}/${path}" ]] || continue
|
||||
if [[ -d "${main_root}/${path}" ]]; then
|
||||
[[ -z "$(ls -A "${repo_root}/${path}" 2>/dev/null)" ]] || continue
|
||||
mkdir -p "$(dirname "${repo_root}/${path}")"
|
||||
staged=$(mktemp -d "${repo_root}/${path}.seed.XXXXXX")
|
||||
trap 'rm -rf "${staged}"' EXIT
|
||||
cp -R "${main_root}/${path}/." "${staged}/"
|
||||
if [[ -d "${repo_root}/${path}" ]] && ! rmdir "${repo_root}/${path}" 2>/dev/null; then
|
||||
rm -rf "${staged}"; trap - EXIT; continue
|
||||
fi
|
||||
if [[ -e "${repo_root}/${path}" ]]; then
|
||||
rm -rf "${staged}"; trap - EXIT; continue
|
||||
fi
|
||||
mv "${staged}" "${repo_root}/${path}"
|
||||
trap - EXIT
|
||||
elif [[ ! -e "${repo_root}/${path}" ]]; then
|
||||
mkdir -p "$(dirname "${repo_root}/${path}")"
|
||||
staged=$(mktemp "${repo_root}/${path}.seed.XXXXXX")
|
||||
trap 'rm -f "${staged}"' EXIT
|
||||
cp "${main_root}/${path}" "${staged}"
|
||||
mv "${staged}" "${repo_root}/${path}"
|
||||
trap - EXIT
|
||||
fi
|
||||
done
|
||||
Reference in new issue
Block a user