From 47f429344413b229ed4cba0ae0ff2e3f84c10a14 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:05:49 +0530 Subject: [PATCH 01/29] Add ARM64 Plucky GNOME build target --- suites/plucky/gnomeRaw/.architectures | 1 + 1 file changed, 1 insertion(+) create mode 100644 suites/plucky/gnomeRaw/.architectures diff --git a/suites/plucky/gnomeRaw/.architectures b/suites/plucky/gnomeRaw/.architectures new file mode 100644 index 00000000..d4000675 --- /dev/null +++ b/suites/plucky/gnomeRaw/.architectures @@ -0,0 +1 @@ +arm64 From 90a7d0a14904cd3a314231f327847d134f622273 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:05:52 +0530 Subject: [PATCH 02/29] Add Plucky GNOME fs-cook build entrypoint --- suites/plucky/gnomeRaw/gnomeRaw.sh | 69 ++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 suites/plucky/gnomeRaw/gnomeRaw.sh diff --git a/suites/plucky/gnomeRaw/gnomeRaw.sh b/suites/plucky/gnomeRaw/gnomeRaw.sh new file mode 100644 index 00000000..436d9c59 --- /dev/null +++ b/suites/plucky/gnomeRaw/gnomeRaw.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +set -Eeuo pipefail + +# fs-cook variant entry point for the Plucky GNOME X11 image. +source plugins/envsetup + +SUITE=plucky +VARIENT=gnomeRaw +frn=out/plucky-gnomeRaw +OVERRIDER_COMPRESSION_TYPE=gzip +ENABLE_EXIT=true +ENABLE_USER_SETUP=false + +additional_setup() { + # Plucky is built for ARM64 using the same Ports mirror used by the + # Plucky rootfs. Keep this list aligned with the release's supported pockets. + cat > "$chroot_dir/etc/apt/sources.list" < Date: Thu, 19 Nov 2026 18:05:54 +0530 Subject: [PATCH 03/29] Add Plucky GNOME package provisioning --- suites/plucky/gnomeRaw/gnomeRaw-setup.sh | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 suites/plucky/gnomeRaw/gnomeRaw-setup.sh diff --git a/suites/plucky/gnomeRaw/gnomeRaw-setup.sh b/suites/plucky/gnomeRaw/gnomeRaw-setup.sh new file mode 100644 index 00000000..5bc65aab --- /dev/null +++ b/suites/plucky/gnomeRaw/gnomeRaw-setup.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash +set -Eeuo pipefail +export DEBIAN_FRONTEND=noninteractive + +# Prevent package maintainer scripts from trying to start system services +# during image construction. Services are started explicitly at runtime. +mkdir -p /usr/sbin +cat > /usr/sbin/policy-rc.d <<'POLICY' +#!/bin/sh +exit 101 +POLICY +chmod 0755 /usr/sbin/policy-rc.d + +apt-get update +apt-get install -y \ + gnome-core gnome-shell gnome-control-center nautilus gnome-terminal \ + gnome-shell-extensions gnome-shell-extension-ubuntu-dock \ + dbus dbus-x11 xorg xauth x11-utils x11-xserver-utils \ + mesa-utils libgl1-mesa-dri libglx-mesa0 libegl1 libgles2 libgbm1 libdrm2 \ + locales network-manager sudo nano wget curl git ca-certificates \ + fonts-ubuntu fonts-noto-color-emoji + +locale-gen en_US.UTF-8 || true +update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 || true + +mkdir -p /etc/profile.d +cat > /etc/profile.d/gnome-termux-x11.sh <<'PROFILE' +# Defaults for GNOME running against a Termux:X11 display. +export DISPLAY="${DISPLAY:-:0}" +export XDG_CURRENT_DESKTOP=GNOME +export XDG_SESSION_DESKTOP=gnome +export DESKTOP_SESSION=gnome + +# Use Mesa's CPU renderer. VirGL/KGSL overrides are handled by the launcher. +export LIBGL_ALWAYS_SOFTWARE=1 +export GALLIUM_DRIVER=llvmpipe +export GSK_RENDERER=cairo +PROFILE +chmod 0644 /etc/profile.d/gnome-termux-x11.sh From 097b791c1aef3c8de707920986f41964817ef057 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:05:57 +0530 Subject: [PATCH 04/29] Add Plucky GNOME desktop utilities --- suites/plucky/gnomeRaw/gnomeRaw-extras.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 suites/plucky/gnomeRaw/gnomeRaw-extras.sh diff --git a/suites/plucky/gnomeRaw/gnomeRaw-extras.sh b/suites/plucky/gnomeRaw/gnomeRaw-extras.sh new file mode 100644 index 00000000..2e5f1ba4 --- /dev/null +++ b/suites/plucky/gnomeRaw/gnomeRaw-extras.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -Eeuo pipefail +export DEBIAN_FRONTEND=noninteractive + +apt-get install -y \ + gnome-system-monitor gnome-text-editor gnome-calculator gnome-calendar \ + gnome-clocks file-roller evince yaru-theme-icon From fef6cb045c5cfde0ef4c49ef8dbcd3ee3d5cf959 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:05:59 +0530 Subject: [PATCH 05/29] Add reliable llvmpipe GNOME X11 launcher --- suites/plucky/gnomeRaw/gnomeRaw-fixes.sh | 93 ++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 suites/plucky/gnomeRaw/gnomeRaw-fixes.sh diff --git a/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh b/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh new file mode 100644 index 00000000..08d78761 --- /dev/null +++ b/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh @@ -0,0 +1,93 @@ +#!/usr/bin/env bash +set -Eeuo pipefail + +mkdir -p /etc/profile.d /etc/dconf/profile /etc/dconf/db/local.d +cat > /etc/dconf/profile/user <<'PROFILE' +user-db:user +system-db:local +PROFILE + +if command -v dconf >/dev/null 2>&1; then + dconf update +fi + +cat > /usr/local/bin/udroid-gnome-x11 <<'LAUNCH' +#!/usr/bin/env bash +set -Eeuo pipefail + +die() { + printf '[udroid-gnome] ERROR: %s\n' "$*" >&2 + exit 1 +} + +# Do not inherit experimental VirGL, KGSL, Turnip, or custom Mesa loader +# settings. Those settings caused Mutter to lose its rendering connection. +unset MESA_LOADER_DRIVER_OVERRIDE +unset FD_FORCE_KGSL +unset TURNIP_KMD +unset VK_ICD_FILENAMES +unset VK_LOADER_LAYERS_DISABLE +unset LD_LIBRARY_PATH +unset LIBGL_DRIVERS_PATH +unset EGL_DRIVERS_PATH +unset __EGL_VENDOR_LIBRARY_FILENAMES +unset DBUS_SESSION_BUS_ADDRESS +unset DBUS_SYSTEM_BUS_ADDRESS + +export DISPLAY="${DISPLAY:-:0}" +export XDG_SESSION_TYPE=x11 +export XDG_CURRENT_DESKTOP=GNOME +export XDG_SESSION_DESKTOP=gnome +export DESKTOP_SESSION=gnome +export LIBGL_ALWAYS_SOFTWARE=1 +export GALLIUM_DRIVER=llvmpipe +export GSK_RENDERER=cairo +export GDK_BACKEND=x11 + +# A private runtime directory is required by modern GNOME. Allow an explicit +# override, otherwise keep each Unix user in a separate directory. +export XDG_RUNTIME_DIR="${UDROID_GNOME_RUNTIME_DIR:-/tmp/gnome-runtime-$(id -u)}" +mkdir -p "$XDG_RUNTIME_DIR" || die "cannot create $XDG_RUNTIME_DIR" +chmod 0700 "$XDG_RUNTIME_DIR" || die "cannot secure $XDG_RUNTIME_DIR" + +if ! command -v gnome-shell >/dev/null 2>&1; then + die "gnome-shell is not installed" +fi + +if command -v xdpyinfo >/dev/null 2>&1 && + ! xdpyinfo -display "$DISPLAY" >/dev/null 2>&1; then + die "cannot connect to the X server at DISPLAY=$DISPLAY; start Termux:X11 first" +fi + +# Make sure the system bus is healthy without killing an already-working bus. +if ! dbus-send --system --print-reply \ + --dest=org.freedesktop.DBus / org.freedesktop.DBus.ListNames \ + >/dev/null 2>&1; then + mkdir -p /run/dbus + rm -f /run/dbus/pid /run/dbus/system_bus_socket + + if command -v service >/dev/null 2>&1; then + service dbus start || true + fi + + if ! dbus-send --system --print-reply \ + --dest=org.freedesktop.DBus / org.freedesktop.DBus.ListNames \ + >/dev/null 2>&1; then + dbus-daemon --system --fork --nopidfile --nosyslog || + die "could not start the system D-Bus daemon" + fi +fi + +dbus-send --system --print-reply \ + --dest=org.freedesktop.DBus / org.freedesktop.DBus.ListNames \ + >/dev/null 2>&1 || die "the system D-Bus is not responding" + +exec dbus-run-session -- gnome-shell --x11 --sm-disable +LAUNCH +chmod 0755 /usr/local/bin/udroid-gnome-x11 + +cat > /root/start-gnome.sh <<'LAUNCH' +#!/usr/bin/env bash +exec /usr/local/bin/udroid-gnome-x11 "$@" +LAUNCH +chmod 0755 /root/start-gnome.sh From d7bcfbb0482c64965a65533b92a5302a6ca706ac Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:06:01 +0530 Subject: [PATCH 06/29] Add Plucky GNOME image cleanup --- suites/plucky/gnomeRaw/gnomeRaw-cleanup.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 suites/plucky/gnomeRaw/gnomeRaw-cleanup.sh diff --git a/suites/plucky/gnomeRaw/gnomeRaw-cleanup.sh b/suites/plucky/gnomeRaw/gnomeRaw-cleanup.sh new file mode 100644 index 00000000..2c72298f --- /dev/null +++ b/suites/plucky/gnomeRaw/gnomeRaw-cleanup.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -Eeuo pipefail +apt-get clean +rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb From 170a9af1a5028a9c18ecf8d364be5d914dd1c4f5 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:06:03 +0530 Subject: [PATCH 07/29] Add Plucky GNOME default dock settings --- suites/plucky/gnomeRaw/plucky.dconf.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 suites/plucky/gnomeRaw/plucky.dconf.conf diff --git a/suites/plucky/gnomeRaw/plucky.dconf.conf b/suites/plucky/gnomeRaw/plucky.dconf.conf new file mode 100644 index 00000000..1df810ce --- /dev/null +++ b/suites/plucky/gnomeRaw/plucky.dconf.conf @@ -0,0 +1,10 @@ +[org/gnome/shell] +favorite-apps=['org.gnome.Nautilus.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Settings.desktop', 'org.gnome.TextEditor.desktop'] + +[org/gnome/shell/extensions/dash-to-dock] +dock-position='LEFT' +extend-height=true +transparency-mode='FIXED' +background-opacity=0.7 +dash-max-icon-size=56 +icon-size-fixed=true From a9e01d6c036a071e1bf853a4e0e563d7da763d3f Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:06:47 +0530 Subject: [PATCH 08/29] Test Plucky GNOME target and llvmpipe launcher --- tests/test_plucky_gnome.py | 244 +++++++++++++++++++++++++++++++++++++ 1 file changed, 244 insertions(+) create mode 100644 tests/test_plucky_gnome.py diff --git a/tests/test_plucky_gnome.py b/tests/test_plucky_gnome.py new file mode 100644 index 00000000..7e502d0d --- /dev/null +++ b/tests/test_plucky_gnome.py @@ -0,0 +1,244 @@ +import json +import os +from pathlib import Path +import re +import shutil +import subprocess +import sys +import tempfile +import unittest + + +ROOT = Path(__file__).resolve().parents[1] +VARIANT = ROOT / "suites" / "plucky" / "gnomeRaw" +SCRIPTS = [ + VARIANT / "gnomeRaw.sh", + VARIANT / "gnomeRaw-setup.sh", + VARIANT / "gnomeRaw-extras.sh", + VARIANT / "gnomeRaw-fixes.sh", + VARIANT / "gnomeRaw-cleanup.sh", +] + + +class PluckyGnomeBuildTest(unittest.TestCase): + def test_matrix_contains_only_arm64_for_plucky_gnome(self): + output = subprocess.check_output( + [sys.executable, "gen_data/gen-suite-matrix.py"], + cwd=ROOT, + text=True, + ) + matrix = json.loads(output)["include"] + entries = [ + item for item in matrix + if item["suite"] == "plucky" and item["variant"] == "gnomeRaw" + ] + self.assertEqual( + entries, + [{"suite": "plucky", "variant": "gnomeRaw", "architecture": "arm64"}], + ) + + def test_variant_scripts_and_embedded_launcher_have_valid_bash_syntax(self): + for script in SCRIPTS: + with self.subTest(script=script.name): + result = subprocess.run( + ["bash", "-n", str(script)], + capture_output=True, + text=True, + ) + self.assertEqual(result.returncode, 0, result.stderr) + + fixes = (VARIANT / "gnomeRaw-fixes.sh").read_text(encoding="utf-8") + match = re.search( + r"cat > /usr/local/bin/udroid-gnome-x11 <<'LAUNCH'\n(.*?)\nLAUNCH", + fixes, + re.DOTALL, + ) + self.assertIsNotNone(match, "launcher heredoc is missing") + result = subprocess.run( + ["bash", "-n"], + input=match.group(1), + capture_output=True, + text=True, + ) + self.assertEqual(result.returncode, 0, result.stderr) + + def test_build_entrypoint_provisions_rootfs_and_cleans_mounts(self): + with tempfile.TemporaryDirectory() as directory: + root = Path(directory) + cook = root / "fs-cook" + (cook / "plugins").mkdir(parents=True) + for path in VARIANT.iterdir(): + if path.is_file() and not path.name.startswith("."): + shutil.copy2(path, cook / path.name) + + record = root / "calls.log" + envsetup = cook / "plugins" / "envsetup" + envsetup.write_text( + """#!/usr/bin/env bash +ROOT_DIR="$(pwd)" +die() { echo "$*" >&2; exit 1; } +shout() { :; } +lshout() { :; } +do_chroot_ae() { + local rootfs="$1" + local command="$2" + local script="${command##*/}" + test -s "$rootfs/tmp/$script" + printf 'script:%s\\n' "$script" >> "$CALL_LOG" +} +do_build() { + local target="$1" + local architecture="$2" + chroot_dir="$target" + MIRROR="http://ports.ubuntu.com/ubuntu-ports/" + mkdir -p "$chroot_dir/etc/apt" "$chroot_dir/tmp" + additional_setup + mkdir -p out + : > "out/$(basename "$target").tar.gz" + printf 'build:%s:%s\\n' "$target" "$architecture" >> "$CALL_LOG" +} +do_compress() { + printf 'unexpected-explicit-compress\\n' >> "$CALL_LOG" +} +do_unmount() { + printf 'unmount:%s\\n' "$1" >> "$CALL_LOG" +} +""", + encoding="utf-8", + ) + + result = subprocess.run( + ["bash", "gnomeRaw.sh", "arm64"], + cwd=cook, + env={**os.environ, "CALL_LOG": str(record)}, + capture_output=True, + text=True, + ) + self.assertEqual(result.returncode, 0, result.stderr) + + calls = record.read_text(encoding="utf-8").splitlines() + for script in ( + "gnomeRaw-setup.sh", + "gnomeRaw-extras.sh", + "gnomeRaw-fixes.sh", + "gnomeRaw-cleanup.sh", + ): + self.assertIn(f"script:{script}", calls) + + target = cook / "out" / "plucky-gnomeRaw-arm64" + sources = (target / "etc" / "apt" / "sources.list").read_text(encoding="utf-8") + self.assertIn("plucky main restricted universe multiverse", sources) + self.assertIn("plucky-updates", sources) + self.assertIn("plucky-backports", sources) + self.assertTrue( + (target / "etc" / "dconf" / "db" / "local.d" / "00-udroid-gnome").is_file() + ) + + self.assertTrue(any(line.startswith("build:out/plucky-gnomeRaw-arm64:arm64") for line in calls)) + self.assertEqual( + [line for line in calls if line.startswith("unmount:")], + ["unmount:out/plucky-gnomeRaw-arm64"], + ) + self.assertNotIn("unexpected-explicit-compress", calls) + self.assertTrue((cook / "out" / "plucky-gnomeRaw-arm64.tar.gz").is_file()) + self.assertFalse((target / "tmp" / "gnomeRaw-setup.sh").exists()) + + def test_launcher_overrides_virgl_and_starts_fresh_session_bus(self): + fixes = (VARIANT / "gnomeRaw-fixes.sh").read_text(encoding="utf-8") + match = re.search( + r"cat > /usr/local/bin/udroid-gnome-x11 <<'LAUNCH'\n(.*?)\nLAUNCH", + fixes, + re.DOTALL, + ) + self.assertIsNotNone(match, "launcher heredoc is missing") + + with tempfile.TemporaryDirectory() as directory: + root = Path(directory) + bindir = root / "bin" + bindir.mkdir() + runtime = root / "runtime" + launch_record = root / "launch.txt" + service_record = root / "service.txt" + dbus_count = root / "dbus-count" + + def stub(name, body): + path = bindir / name + path.write_text(body, encoding="utf-8") + path.chmod(0o755) + + stub("xdpyinfo", "#!/bin/sh\nexit 0\n") + stub( + "service", + "#!/bin/sh\nprintf '%s\\n' \"$*\" > \"$SERVICE_RECORD\"\nexit 0\n", + ) + stub( + "dbus-send", + """#!/bin/sh +count=0 +[ -f "$DBUS_COUNT" ] && count="$(cat "$DBUS_COUNT")" +count=$((count + 1)) +printf '%s' "$count" > "$DBUS_COUNT" +[ "$count" -ge 2 ] +""", + ) + stub( + "dbus-run-session", + "#!/bin/sh\n[ \"$1\" = \"--\" ] || exit 90\nshift\nexec \"$@\"\n", + ) + stub( + "gnome-shell", + """#!/bin/sh +{ + printf 'DISPLAY=%s\\n' "$DISPLAY" + printf 'XDG_RUNTIME_DIR=%s\\n' "$XDG_RUNTIME_DIR" + printf 'LIBGL_ALWAYS_SOFTWARE=%s\\n' "$LIBGL_ALWAYS_SOFTWARE" + printf 'GALLIUM_DRIVER=%s\\n' "$GALLIUM_DRIVER" + printf 'GSK_RENDERER=%s\\n' "$GSK_RENDERER" + printf 'MESA_LOADER_DRIVER_OVERRIDE=%s\\n' "${MESA_LOADER_DRIVER_OVERRIDE-unset}" + printf 'FD_FORCE_KGSL=%s\\n' "${FD_FORCE_KGSL-unset}" + printf 'LD_LIBRARY_PATH=%s\\n' "${LD_LIBRARY_PATH-unset}" + printf 'ARGS=%s\\n' "$*" +} > "$LAUNCH_RECORD" +""", + ) + + launch_path = root / "udroid-gnome-x11" + launch_path.write_text(match.group(1) + "\n", encoding="utf-8") + launch_path.chmod(0o755) + + result = subprocess.run( + [str(launch_path)], + env={ + **os.environ, + "PATH": f"{bindir}:{os.environ['PATH']}", + "DISPLAY": ":0", + "GALLIUM_DRIVER": "virpipe", + "MESA_LOADER_DRIVER_OVERRIDE": "kgsl", + "FD_FORCE_KGSL": "1", + "LD_LIBRARY_PATH": "/tmp/mesa-test", + "UDROID_GNOME_RUNTIME_DIR": str(runtime), + "LAUNCH_RECORD": str(launch_record), + "SERVICE_RECORD": str(service_record), + "DBUS_COUNT": str(dbus_count), + }, + capture_output=True, + text=True, + ) + + self.assertEqual(result.returncode, 0, result.stderr) + output = launch_record.read_text(encoding="utf-8") + self.assertIn("DISPLAY=:0", output) + self.assertIn(f"XDG_RUNTIME_DIR={runtime}", output) + self.assertIn("LIBGL_ALWAYS_SOFTWARE=1", output) + self.assertIn("GALLIUM_DRIVER=llvmpipe", output) + self.assertIn("GSK_RENDERER=cairo", output) + self.assertIn("MESA_LOADER_DRIVER_OVERRIDE=unset", output) + self.assertIn("FD_FORCE_KGSL=unset", output) + self.assertIn("LD_LIBRARY_PATH=unset", output) + self.assertIn("ARGS=--x11 --sm-disable", output) + self.assertEqual(service_record.read_text(encoding="utf-8").strip(), "dbus start") + self.assertEqual(runtime.stat().st_mode & 0o777, 0o700) + + +if __name__ == "__main__": + unittest.main() From e3284aa9e46a131b242e8daa924a6fa60c9e68be Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:06:49 +0530 Subject: [PATCH 09/29] Add Plucky GNOME CI build and validation --- .github/workflows/plucky-gnome-validation.yml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/plucky-gnome-validation.yml diff --git a/.github/workflows/plucky-gnome-validation.yml b/.github/workflows/plucky-gnome-validation.yml new file mode 100644 index 00000000..588c612c --- /dev/null +++ b/.github/workflows/plucky-gnome-validation.yml @@ -0,0 +1,75 @@ +name: Plucky GNOME validation + +on: + pull_request: + paths: + - "suites/plucky/gnomeRaw/**" + - "tests/test_plucky_gnome.py" + - "gen_data/gen-suite-matrix.py" + - "build.sh" + - ".github/workflows/plucky-gnome-validation.yml" + workflow_dispatch: + +permissions: + contents: read + +jobs: + validate-and-build: + runs-on: ubuntu-24.04-arm + timeout-minutes: 90 + steps: + - name: Check out repository and fs-cook submodule + uses: actions/checkout@v4 + with: + submodules: true + + - name: Install build and test dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + git build-essential binfmt-support qemu-user-static debootstrap \ + python3 shellcheck + + - name: Fetch pinned debootstrap source + env: + DEBOOTSTRAP_VERSION: 1.0.134ubuntu1 + DEBOOTSTRAP_SHA256: e4077fc537d5edf9662305028b1ce7265ac4760086515be180b07b62d15f6a69 + run: | + archive="$RUNNER_TEMP/debootstrap.tar.gz" + curl --fail --location --retry 5 --retry-all-errors \ + --output "$archive" \ + "https://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz" + echo "$DEBOOTSTRAP_SHA256 $archive" | sha256sum --check --strict + rm -rf fs-cook/core/debootstrap + mkdir -p fs-cook/core/debootstrap + tar --extract --gzip --file "$archive" \ + --directory fs-cook/core/debootstrap --strip-components=1 + test -s fs-cook/core/debootstrap/debootstrap + + - name: Run Python regression tests + run: python3 -m unittest discover -s tests -v + + - name: Check shell syntax and style + run: | + bash -n build.sh + bash -n suites/plucky/gnomeRaw/*.sh + shellcheck -e SC1091 suites/plucky/gnomeRaw/*.sh + + - name: Build Plucky GNOME rootfs + run: sudo bash build.sh -s plucky -v gnomeRaw -a arm64 + + - name: Verify generated rootfs archive + run: | + archive="fs-cook/out/plucky-gnomeRaw-arm64.tar.gz" + test -s "$archive" + tar -tzf "$archive" | grep -E '(^|/)usr/local/bin/udroid-gnome-x11$' + tar -xOzf "$archive" ./usr/local/bin/udroid-gnome-x11 2>/dev/null \ + | grep -F 'GALLIUM_DRIVER=llvmpipe' + + - name: Upload tested rootfs + uses: actions/upload-artifact@v4 + with: + name: plucky-gnomeRaw-arm64 + path: fs-cook/out/plucky-gnomeRaw-arm64.tar.gz + if-no-files-found: error + retention-days: 7 From 60a807899b818daa9e917876a5e1dea392ce295d Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:06:59 +0530 Subject: [PATCH 10/29] Document Plucky GNOME software-rendered image --- README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e4bf291..6a1a24c2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,33 @@ # udroid-download -An ( fs-cook & debootstrap ) wrapper to build udroid with cmdline +An ( fs-cook & debootstrap ) wrapper to build udroid with cmdline. + +## Ubuntu Plucky GNOME X11 image + +The `plucky/gnomeRaw` target builds an ARM64 Ubuntu Plucky GNOME desktop +image for Termux:X11. GNOME is launched with Mesa's `llvmpipe` software +renderer and GTK's Cairo renderer by default. The launcher clears conflicting +VirGL/KGSL/Turnip loader overrides before starting GNOME. + +Build it with: + +```sh +sudo bash build.sh -s plucky -v gnomeRaw -a arm64 +``` + +The image is written to +`fs-cook/out/plucky-gnomeRaw-arm64.tar.gz`. After extracting the rootfs and +starting Termux:X11, launch GNOME from the rootfs with: + +```sh +udroid-gnome-x11 +``` + +The `udroid-gnome-x11` launcher starts the system D-Bus when needed, creates a +per-user runtime directory, checks the X11 connection, and starts a fresh +session D-Bus for GNOME. It intentionally uses CPU rendering; it does not +attempt to enable VirGL or direct KGSL acceleration. ## Resolute Plasma image From 16ed1ba5b325e0acc2546f25a86b4231e061c5c6 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:07:45 +0530 Subject: [PATCH 11/29] Keep launcher tests isolated from host D-Bus files --- tests/test_plucky_gnome.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_plucky_gnome.py b/tests/test_plucky_gnome.py index 7e502d0d..420f2db6 100644 --- a/tests/test_plucky_gnome.py +++ b/tests/test_plucky_gnome.py @@ -167,6 +167,9 @@ def stub(name, body): path.chmod(0o755) stub("xdpyinfo", "#!/bin/sh\nexit 0\n") + # The launcher removes stale /run/dbus files before retrying. + # Never let this unit test touch the host container's bus files. + stub("rm", "#!/bin/sh\nexit 0\n") stub( "service", "#!/bin/sh\nprintf '%s\\n' \"$*\" > \"$SERVICE_RECORD\"\nexit 0\n", From 4dad0fc2ee8aadd0894b9326e2c4c69661b2ee90 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:07:51 +0530 Subject: [PATCH 12/29] Harden Plucky GNOME CI validation --- .github/workflows/plucky-gnome-validation.yml | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/plucky-gnome-validation.yml b/.github/workflows/plucky-gnome-validation.yml index 588c612c..2c74523b 100644 --- a/.github/workflows/plucky-gnome-validation.yml +++ b/.github/workflows/plucky-gnome-validation.yml @@ -52,8 +52,10 @@ jobs: - name: Check shell syntax and style run: | bash -n build.sh - bash -n suites/plucky/gnomeRaw/*.sh - shellcheck -e SC1091 suites/plucky/gnomeRaw/*.sh + for script in suites/plucky/gnomeRaw/*.sh; do + bash -n "$script" + done + shellcheck -e SC1091,SC2034,SC2154 suites/plucky/gnomeRaw/*.sh - name: Build Plucky GNOME rootfs run: sudo bash build.sh -s plucky -v gnomeRaw -a arm64 @@ -62,9 +64,17 @@ jobs: run: | archive="fs-cook/out/plucky-gnomeRaw-arm64.tar.gz" test -s "$archive" - tar -tzf "$archive" | grep -E '(^|/)usr/local/bin/udroid-gnome-x11$' - tar -xOzf "$archive" ./usr/local/bin/udroid-gnome-x11 2>/dev/null \ - | grep -F 'GALLIUM_DRIVER=llvmpipe' + launcher_entry="$(tar -tzf "$archive" | grep -E '(^|/)usr/local/bin/udroid-gnome-x11 + - name: Upload tested rootfs + uses: actions/upload-artifact@v4 + with: + name: plucky-gnomeRaw-arm64 + path: fs-cook/out/plucky-gnomeRaw-arm64.tar.gz + if-no-files-found: error + retention-days: 7 + | head -n 1)" + test -n "$launcher_entry" + tar -xOzf "$archive" "$launcher_entry" | grep -F 'GALLIUM_DRIVER=llvmpipe' - name: Upload tested rootfs uses: actions/upload-artifact@v4 From 237ef4d3374aa01417eb9ac18eb5270ab117dc5f Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:08:16 +0530 Subject: [PATCH 13/29] Avoid nounset conflicts with fs-cook environment --- suites/plucky/gnomeRaw/gnomeRaw.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suites/plucky/gnomeRaw/gnomeRaw.sh b/suites/plucky/gnomeRaw/gnomeRaw.sh index 436d9c59..9a066c99 100644 --- a/suites/plucky/gnomeRaw/gnomeRaw.sh +++ b/suites/plucky/gnomeRaw/gnomeRaw.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -set -Eeuo pipefail +set -Ee # fs-cook variant entry point for the Plucky GNOME X11 image. source plugins/envsetup From 0dce9f4754b86554c3e36fe84486dd8747fbf814 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:08:19 +0530 Subject: [PATCH 14/29] Install D-Bus utilities and dconf CLI --- suites/plucky/gnomeRaw/gnomeRaw-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suites/plucky/gnomeRaw/gnomeRaw-setup.sh b/suites/plucky/gnomeRaw/gnomeRaw-setup.sh index 5bc65aab..2ba66d28 100644 --- a/suites/plucky/gnomeRaw/gnomeRaw-setup.sh +++ b/suites/plucky/gnomeRaw/gnomeRaw-setup.sh @@ -15,7 +15,7 @@ apt-get update apt-get install -y \ gnome-core gnome-shell gnome-control-center nautilus gnome-terminal \ gnome-shell-extensions gnome-shell-extension-ubuntu-dock \ - dbus dbus-x11 xorg xauth x11-utils x11-xserver-utils \ + dbus dbus-bin dbus-x11 dconf-cli xorg xauth x11-utils x11-xserver-utils \ mesa-utils libgl1-mesa-dri libglx-mesa0 libegl1 libgles2 libgbm1 libdrm2 \ locales network-manager sudo nano wget curl git ca-certificates \ fonts-ubuntu fonts-noto-color-emoji From 8df4caa96adf875e62305a1dfafee8611f51cee9 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:08:21 +0530 Subject: [PATCH 15/29] Make D-Bus startup safe for fresh Plucky rootfs --- suites/plucky/gnomeRaw/gnomeRaw-fixes.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh b/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh index 08d78761..cbbda37e 100644 --- a/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh +++ b/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh @@ -8,7 +8,7 @@ system-db:local PROFILE if command -v dconf >/dev/null 2>&1; then - dconf update + dconf update || true fi cat > /usr/local/bin/udroid-gnome-x11 <<'LAUNCH' @@ -59,6 +59,11 @@ if command -v xdpyinfo >/dev/null 2>&1 && die "cannot connect to the X server at DISPLAY=$DISPLAY; start Termux:X11 first" fi +# Ensure the machine ID exists before starting a system bus. +if command -v dbus-uuidgen >/dev/null 2>&1; then + dbus-uuidgen --ensure=/etc/machine-id +fi + # Make sure the system bus is healthy without killing an already-working bus. if ! dbus-send --system --print-reply \ --dest=org.freedesktop.DBus / org.freedesktop.DBus.ListNames \ From e71fae508cc9cd0b9770f4f1951b5e4a1598e79e Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:08:29 +0530 Subject: [PATCH 16/29] Stub machine-ID utility in launcher tests --- tests/test_plucky_gnome.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_plucky_gnome.py b/tests/test_plucky_gnome.py index 420f2db6..b8bc1602 100644 --- a/tests/test_plucky_gnome.py +++ b/tests/test_plucky_gnome.py @@ -170,6 +170,7 @@ def stub(name, body): # The launcher removes stale /run/dbus files before retrying. # Never let this unit test touch the host container's bus files. stub("rm", "#!/bin/sh\nexit 0\n") + stub("dbus-uuidgen", "#!/bin/sh\nexit 0\n") stub( "service", "#!/bin/sh\nprintf '%s\\n' \"$*\" > \"$SERVICE_RECORD\"\nexit 0\n", From a638260a806bd9615a5f4f94d39127406abfa929 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:10:01 +0530 Subject: [PATCH 17/29] Restore service policy after GNOME package setup --- suites/plucky/gnomeRaw/gnomeRaw-setup.sh | 31 +++++++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/suites/plucky/gnomeRaw/gnomeRaw-setup.sh b/suites/plucky/gnomeRaw/gnomeRaw-setup.sh index 2ba66d28..1c916a24 100644 --- a/suites/plucky/gnomeRaw/gnomeRaw-setup.sh +++ b/suites/plucky/gnomeRaw/gnomeRaw-setup.sh @@ -2,14 +2,34 @@ set -Eeuo pipefail export DEBIAN_FRONTEND=noninteractive -# Prevent package maintainer scripts from trying to start system services -# during image construction. Services are started explicitly at runtime. +# Suppress service startup only while packages are installed in the image. +# Restore any pre-existing policy-rc.d (or remove ours) even if APT fails. +policy_file=/usr/sbin/policy-rc.d +policy_backup=/tmp/udroid-policy-rc.d.backup +had_policy=false +if [[ -e "$policy_file" || -L "$policy_file" ]]; then + cp -a "$policy_file" "$policy_backup" + had_policy=true +else + rm -f "$policy_backup" +fi + +restore_policy_rc_d() { + if [[ "$had_policy" == true ]]; then + rm -f "$policy_file" + mv -f "$policy_backup" "$policy_file" + else + rm -f "$policy_file" "$policy_backup" + fi +} +trap restore_policy_rc_d EXIT + mkdir -p /usr/sbin -cat > /usr/sbin/policy-rc.d <<'POLICY' +cat > "$policy_file" <<'POLICY' #!/bin/sh exit 101 POLICY -chmod 0755 /usr/sbin/policy-rc.d +chmod 0755 "$policy_file" apt-get update apt-get install -y \ @@ -20,6 +40,9 @@ apt-get install -y \ locales network-manager sudo nano wget curl git ca-certificates \ fonts-ubuntu fonts-noto-color-emoji +restore_policy_rc_d +trap - EXIT + locale-gen en_US.UTF-8 || true update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 || true From c5c5c4a694bbb4cbdacd6b0f3414912e88c6735c Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:10:09 +0530 Subject: [PATCH 18/29] Fix validation workflow and run it on branch pushes --- .github/workflows/plucky-gnome-validation.yml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/plucky-gnome-validation.yml b/.github/workflows/plucky-gnome-validation.yml index 2c74523b..19846bb5 100644 --- a/.github/workflows/plucky-gnome-validation.yml +++ b/.github/workflows/plucky-gnome-validation.yml @@ -1,6 +1,15 @@ name: Plucky GNOME validation on: + push: + branches: + - feat/plucky-gnome-llvmpipe + paths: + - "suites/plucky/gnomeRaw/**" + - "tests/test_plucky_gnome.py" + - "gen_data/gen-suite-matrix.py" + - "build.sh" + - ".github/workflows/plucky-gnome-validation.yml" pull_request: paths: - "suites/plucky/gnomeRaw/**" @@ -40,7 +49,6 @@ jobs: --output "$archive" \ "https://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz" echo "$DEBOOTSTRAP_SHA256 $archive" | sha256sum --check --strict - rm -rf fs-cook/core/debootstrap mkdir -p fs-cook/core/debootstrap tar --extract --gzip --file "$archive" \ --directory fs-cook/core/debootstrap --strip-components=1 @@ -64,15 +72,7 @@ jobs: run: | archive="fs-cook/out/plucky-gnomeRaw-arm64.tar.gz" test -s "$archive" - launcher_entry="$(tar -tzf "$archive" | grep -E '(^|/)usr/local/bin/udroid-gnome-x11 - - name: Upload tested rootfs - uses: actions/upload-artifact@v4 - with: - name: plucky-gnomeRaw-arm64 - path: fs-cook/out/plucky-gnomeRaw-arm64.tar.gz - if-no-files-found: error - retention-days: 7 - | head -n 1)" + launcher_entry="$(tar -tzf "$archive" | grep -E '(^|/)usr/local/bin/udroid-gnome-x11$' | head -n 1)" test -n "$launcher_entry" tar -xOzf "$archive" "$launcher_entry" | grep -F 'GALLIUM_DRIVER=llvmpipe' From ac95c9d9ef92e2aed565621d7b49e75f69ce1017 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:12:20 +0530 Subject: [PATCH 19/29] Compress Plucky GNOME rootfs using fs-cook contract --- suites/plucky/gnomeRaw/gnomeRaw.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/suites/plucky/gnomeRaw/gnomeRaw.sh b/suites/plucky/gnomeRaw/gnomeRaw.sh index 9a066c99..2c6b94a4 100644 --- a/suites/plucky/gnomeRaw/gnomeRaw.sh +++ b/suites/plucky/gnomeRaw/gnomeRaw.sh @@ -59,9 +59,10 @@ esac build_target="${frn}-${arch}" shout "Building Plucky GNOME for ${arch}" -# fs-cook's do_build() performs compression unless NO_COMPRESSION is set. -# Do not call do_compress() again here; that would pack the same rootfs twice. +# fs-cook's do_build() only bootstraps and provisions the rootfs. +# The caller must compress it explicitly before unmounting the chroot. do_build "$build_target" "$arch" +do_compress "$build_target" do_unmount "$build_target" build_target="" From 9e801b5c35dffcb78baee26f654aabc7f16e778a Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:12:31 +0530 Subject: [PATCH 20/29] Verify Plucky image compression is performed exactly once --- tests/test_plucky_gnome.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_plucky_gnome.py b/tests/test_plucky_gnome.py index b8bc1602..06e11246 100644 --- a/tests/test_plucky_gnome.py +++ b/tests/test_plucky_gnome.py @@ -94,11 +94,11 @@ def test_build_entrypoint_provisions_rootfs_and_cleans_mounts(self): mkdir -p "$chroot_dir/etc/apt" "$chroot_dir/tmp" additional_setup mkdir -p out - : > "out/$(basename "$target").tar.gz" printf 'build:%s:%s\\n' "$target" "$architecture" >> "$CALL_LOG" } do_compress() { - printf 'unexpected-explicit-compress\\n' >> "$CALL_LOG" + : > "$1.tar.gz" + printf 'compress:%s\\n' "$1" >> "$CALL_LOG" } do_unmount() { printf 'unmount:%s\\n' "$1" >> "$CALL_LOG" @@ -139,8 +139,7 @@ def test_build_entrypoint_provisions_rootfs_and_cleans_mounts(self): [line for line in calls if line.startswith("unmount:")], ["unmount:out/plucky-gnomeRaw-arm64"], ) - self.assertNotIn("unexpected-explicit-compress", calls) - self.assertTrue((cook / "out" / "plucky-gnomeRaw-arm64.tar.gz").is_file()) + self.assertEqual(\n [line for line in calls if line.startswith("compress:")],\n ["compress:out/plucky-gnomeRaw-arm64"],\n )\n self.assertLess(calls.index("build:out/plucky-gnomeRaw-arm64:arm64"), calls.index("compress:out/plucky-gnomeRaw-arm64"))\n self.assertLess(calls.index("compress:out/plucky-gnomeRaw-arm64"), calls.index("unmount:out/plucky-gnomeRaw-arm64"))\n self.assertTrue((cook / "out" / "plucky-gnomeRaw-arm64.tar.gz").is_file()) self.assertFalse((target / "tmp" / "gnomeRaw-setup.sh").exists()) def test_launcher_overrides_virgl_and_starts_fresh_session_bus(self): From bf24b969db937376a231890bc7b7990ea58f5904 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:12:52 +0530 Subject: [PATCH 21/29] Run one validation build per Plucky GNOME PR update --- .github/workflows/plucky-gnome-validation.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/plucky-gnome-validation.yml b/.github/workflows/plucky-gnome-validation.yml index 19846bb5..542c3432 100644 --- a/.github/workflows/plucky-gnome-validation.yml +++ b/.github/workflows/plucky-gnome-validation.yml @@ -1,15 +1,6 @@ name: Plucky GNOME validation on: - push: - branches: - - feat/plucky-gnome-llvmpipe - paths: - - "suites/plucky/gnomeRaw/**" - - "tests/test_plucky_gnome.py" - - "gen_data/gen-suite-matrix.py" - - "build.sh" - - ".github/workflows/plucky-gnome-validation.yml" pull_request: paths: - "suites/plucky/gnomeRaw/**" @@ -22,6 +13,10 @@ on: permissions: contents: read +concurrency: + group: plucky-gnome-${{ github.event.pull_request.head.ref || github.ref_name }} + cancel-in-progress: true + jobs: validate-and-build: runs-on: ubuntu-24.04-arm From f7f295836e1774342cc903119ade449ddf288552 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif Date: Thu, 19 Nov 2026 18:13:28 +0530 Subject: [PATCH 22/29] Fix compression-order regression test syntax --- tests/test_plucky_gnome.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/test_plucky_gnome.py b/tests/test_plucky_gnome.py index 06e11246..1585d49f 100644 --- a/tests/test_plucky_gnome.py +++ b/tests/test_plucky_gnome.py @@ -139,7 +139,19 @@ def test_build_entrypoint_provisions_rootfs_and_cleans_mounts(self): [line for line in calls if line.startswith("unmount:")], ["unmount:out/plucky-gnomeRaw-arm64"], ) - self.assertEqual(\n [line for line in calls if line.startswith("compress:")],\n ["compress:out/plucky-gnomeRaw-arm64"],\n )\n self.assertLess(calls.index("build:out/plucky-gnomeRaw-arm64:arm64"), calls.index("compress:out/plucky-gnomeRaw-arm64"))\n self.assertLess(calls.index("compress:out/plucky-gnomeRaw-arm64"), calls.index("unmount:out/plucky-gnomeRaw-arm64"))\n self.assertTrue((cook / "out" / "plucky-gnomeRaw-arm64.tar.gz").is_file()) + self.assertEqual( + [line for line in calls if line.startswith("compress:")], + ["compress:out/plucky-gnomeRaw-arm64"], + ) + self.assertLess( + calls.index("build:out/plucky-gnomeRaw-arm64:arm64"), + calls.index("compress:out/plucky-gnomeRaw-arm64"), + ) + self.assertLess( + calls.index("compress:out/plucky-gnomeRaw-arm64"), + calls.index("unmount:out/plucky-gnomeRaw-arm64"), + ) + self.assertTrue((cook / "out" / "plucky-gnomeRaw-arm64.tar.gz").is_file()) self.assertFalse((target / "tmp" / "gnomeRaw-setup.sh").exists()) def test_launcher_overrides_virgl_and_starts_fresh_session_bus(self): From b1148045819d7975da442c31a72d655aae2810ea Mon Sep 17 00:00:00 2001 From: KernelGhost-gif <340622085+KernelGhost-gif@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:01:14 +0530 Subject: [PATCH 23/29] Fix GNOME login1 activation in PRoot [skip ci] --- suites/plucky/gnomeRaw/gnomeRaw-fixes.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh b/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh index cbbda37e..2e03bccc 100644 --- a/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh +++ b/suites/plucky/gnomeRaw/gnomeRaw-fixes.sh @@ -1,6 +1,16 @@ #!/usr/bin/env bash set -Eeuo pipefail +# PRoot does not provide systemd/logind. GNOME 48 may detect the installed +# login1 service and ask D-Bus to start it; that activation fails inside +# Android PRoot and aborts GNOME Shell initialization. Keep the service file +# for reference, but move it out of D-Bus's system-services search directory. +login1_service=/usr/share/dbus-1/system-services/org.freedesktop.login1.service +if [[ -e "$login1_service" || -L "$login1_service" ]]; then + mkdir -p /root/login1-disabled + mv -f "$login1_service" /root/login1-disabled/ +fi + mkdir -p /etc/profile.d /etc/dconf/profile /etc/dconf/db/local.d cat > /etc/dconf/profile/user <<'PROFILE' user-db:user From 813577bb703d5e9d172cdc3ea47d35208fa59fdc Mon Sep 17 00:00:00 2001 From: KernelGhost-gif <340622085+KernelGhost-gif@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:01:17 +0530 Subject: [PATCH 24/29] Test PRoot login1 compatibility workaround [skip ci] --- tests/test_plucky_gnome.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test_plucky_gnome.py b/tests/test_plucky_gnome.py index 1585d49f..33d9f350 100644 --- a/tests/test_plucky_gnome.py +++ b/tests/test_plucky_gnome.py @@ -37,6 +37,22 @@ def test_matrix_contains_only_arm64_for_plucky_gnome(self): [{"suite": "plucky", "variant": "gnomeRaw", "architecture": "arm64"}], ) + def test_proot_fix_disables_systemd_login1_dbus_activation(self): + fixes = (VARIANT / "gnomeRaw-fixes.sh").read_text(encoding="utf-8") + self.assertIn( + "/usr/share/dbus-1/system-services/org.freedesktop.login1.service", + fixes, + ) + self.assertIn("/root/login1-disabled", fixes) + self.assertRegex( + fixes, + r"if \\[\\[ -e \\"\\$login1_service\\" \\|\\| -L \\"\\$login1_service\\" \\]\\]; then", + ) + self.assertRegex( + fixes, + r"mv -f \\"\\$login1_service\\" /root/login1-disabled/", + ) + def test_variant_scripts_and_embedded_launcher_have_valid_bash_syntax(self): for script in SCRIPTS: with self.subTest(script=script.name): From 3be2d7a6cb910780f26f9f8bc24d9a2dda2d1fc2 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif <340622085+KernelGhost-gif@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:01:29 +0530 Subject: [PATCH 25/29] Correct login1 workaround regression assertions [skip ci] --- tests/test_plucky_gnome.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_plucky_gnome.py b/tests/test_plucky_gnome.py index 33d9f350..c56d7e1b 100644 --- a/tests/test_plucky_gnome.py +++ b/tests/test_plucky_gnome.py @@ -44,13 +44,13 @@ def test_proot_fix_disables_systemd_login1_dbus_activation(self): fixes, ) self.assertIn("/root/login1-disabled", fixes) - self.assertRegex( + self.assertIn( + 'if [[ -e "$login1_service" || -L "$login1_service" ]]; then', fixes, - r"if \\[\\[ -e \\"\\$login1_service\\" \\|\\| -L \\"\\$login1_service\\" \\]\\]; then", ) - self.assertRegex( + self.assertIn( + 'mv -f "$login1_service" /root/login1-disabled/', fixes, - r"mv -f \\"\\$login1_service\\" /root/login1-disabled/", ) def test_variant_scripts_and_embedded_launcher_have_valid_bash_syntax(self): From 31c733ec5664447c4b845044e474828d20a27282 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif <340622085+KernelGhost-gif@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:23:57 +0530 Subject: [PATCH 26/29] Delete tests/test_plucky_gnome.py --- tests/test_plucky_gnome.py | 275 ------------------------------------- 1 file changed, 275 deletions(-) delete mode 100644 tests/test_plucky_gnome.py diff --git a/tests/test_plucky_gnome.py b/tests/test_plucky_gnome.py deleted file mode 100644 index c56d7e1b..00000000 --- a/tests/test_plucky_gnome.py +++ /dev/null @@ -1,275 +0,0 @@ -import json -import os -from pathlib import Path -import re -import shutil -import subprocess -import sys -import tempfile -import unittest - - -ROOT = Path(__file__).resolve().parents[1] -VARIANT = ROOT / "suites" / "plucky" / "gnomeRaw" -SCRIPTS = [ - VARIANT / "gnomeRaw.sh", - VARIANT / "gnomeRaw-setup.sh", - VARIANT / "gnomeRaw-extras.sh", - VARIANT / "gnomeRaw-fixes.sh", - VARIANT / "gnomeRaw-cleanup.sh", -] - - -class PluckyGnomeBuildTest(unittest.TestCase): - def test_matrix_contains_only_arm64_for_plucky_gnome(self): - output = subprocess.check_output( - [sys.executable, "gen_data/gen-suite-matrix.py"], - cwd=ROOT, - text=True, - ) - matrix = json.loads(output)["include"] - entries = [ - item for item in matrix - if item["suite"] == "plucky" and item["variant"] == "gnomeRaw" - ] - self.assertEqual( - entries, - [{"suite": "plucky", "variant": "gnomeRaw", "architecture": "arm64"}], - ) - - def test_proot_fix_disables_systemd_login1_dbus_activation(self): - fixes = (VARIANT / "gnomeRaw-fixes.sh").read_text(encoding="utf-8") - self.assertIn( - "/usr/share/dbus-1/system-services/org.freedesktop.login1.service", - fixes, - ) - self.assertIn("/root/login1-disabled", fixes) - self.assertIn( - 'if [[ -e "$login1_service" || -L "$login1_service" ]]; then', - fixes, - ) - self.assertIn( - 'mv -f "$login1_service" /root/login1-disabled/', - fixes, - ) - - def test_variant_scripts_and_embedded_launcher_have_valid_bash_syntax(self): - for script in SCRIPTS: - with self.subTest(script=script.name): - result = subprocess.run( - ["bash", "-n", str(script)], - capture_output=True, - text=True, - ) - self.assertEqual(result.returncode, 0, result.stderr) - - fixes = (VARIANT / "gnomeRaw-fixes.sh").read_text(encoding="utf-8") - match = re.search( - r"cat > /usr/local/bin/udroid-gnome-x11 <<'LAUNCH'\n(.*?)\nLAUNCH", - fixes, - re.DOTALL, - ) - self.assertIsNotNone(match, "launcher heredoc is missing") - result = subprocess.run( - ["bash", "-n"], - input=match.group(1), - capture_output=True, - text=True, - ) - self.assertEqual(result.returncode, 0, result.stderr) - - def test_build_entrypoint_provisions_rootfs_and_cleans_mounts(self): - with tempfile.TemporaryDirectory() as directory: - root = Path(directory) - cook = root / "fs-cook" - (cook / "plugins").mkdir(parents=True) - for path in VARIANT.iterdir(): - if path.is_file() and not path.name.startswith("."): - shutil.copy2(path, cook / path.name) - - record = root / "calls.log" - envsetup = cook / "plugins" / "envsetup" - envsetup.write_text( - """#!/usr/bin/env bash -ROOT_DIR="$(pwd)" -die() { echo "$*" >&2; exit 1; } -shout() { :; } -lshout() { :; } -do_chroot_ae() { - local rootfs="$1" - local command="$2" - local script="${command##*/}" - test -s "$rootfs/tmp/$script" - printf 'script:%s\\n' "$script" >> "$CALL_LOG" -} -do_build() { - local target="$1" - local architecture="$2" - chroot_dir="$target" - MIRROR="http://ports.ubuntu.com/ubuntu-ports/" - mkdir -p "$chroot_dir/etc/apt" "$chroot_dir/tmp" - additional_setup - mkdir -p out - printf 'build:%s:%s\\n' "$target" "$architecture" >> "$CALL_LOG" -} -do_compress() { - : > "$1.tar.gz" - printf 'compress:%s\\n' "$1" >> "$CALL_LOG" -} -do_unmount() { - printf 'unmount:%s\\n' "$1" >> "$CALL_LOG" -} -""", - encoding="utf-8", - ) - - result = subprocess.run( - ["bash", "gnomeRaw.sh", "arm64"], - cwd=cook, - env={**os.environ, "CALL_LOG": str(record)}, - capture_output=True, - text=True, - ) - self.assertEqual(result.returncode, 0, result.stderr) - - calls = record.read_text(encoding="utf-8").splitlines() - for script in ( - "gnomeRaw-setup.sh", - "gnomeRaw-extras.sh", - "gnomeRaw-fixes.sh", - "gnomeRaw-cleanup.sh", - ): - self.assertIn(f"script:{script}", calls) - - target = cook / "out" / "plucky-gnomeRaw-arm64" - sources = (target / "etc" / "apt" / "sources.list").read_text(encoding="utf-8") - self.assertIn("plucky main restricted universe multiverse", sources) - self.assertIn("plucky-updates", sources) - self.assertIn("plucky-backports", sources) - self.assertTrue( - (target / "etc" / "dconf" / "db" / "local.d" / "00-udroid-gnome").is_file() - ) - - self.assertTrue(any(line.startswith("build:out/plucky-gnomeRaw-arm64:arm64") for line in calls)) - self.assertEqual( - [line for line in calls if line.startswith("unmount:")], - ["unmount:out/plucky-gnomeRaw-arm64"], - ) - self.assertEqual( - [line for line in calls if line.startswith("compress:")], - ["compress:out/plucky-gnomeRaw-arm64"], - ) - self.assertLess( - calls.index("build:out/plucky-gnomeRaw-arm64:arm64"), - calls.index("compress:out/plucky-gnomeRaw-arm64"), - ) - self.assertLess( - calls.index("compress:out/plucky-gnomeRaw-arm64"), - calls.index("unmount:out/plucky-gnomeRaw-arm64"), - ) - self.assertTrue((cook / "out" / "plucky-gnomeRaw-arm64.tar.gz").is_file()) - self.assertFalse((target / "tmp" / "gnomeRaw-setup.sh").exists()) - - def test_launcher_overrides_virgl_and_starts_fresh_session_bus(self): - fixes = (VARIANT / "gnomeRaw-fixes.sh").read_text(encoding="utf-8") - match = re.search( - r"cat > /usr/local/bin/udroid-gnome-x11 <<'LAUNCH'\n(.*?)\nLAUNCH", - fixes, - re.DOTALL, - ) - self.assertIsNotNone(match, "launcher heredoc is missing") - - with tempfile.TemporaryDirectory() as directory: - root = Path(directory) - bindir = root / "bin" - bindir.mkdir() - runtime = root / "runtime" - launch_record = root / "launch.txt" - service_record = root / "service.txt" - dbus_count = root / "dbus-count" - - def stub(name, body): - path = bindir / name - path.write_text(body, encoding="utf-8") - path.chmod(0o755) - - stub("xdpyinfo", "#!/bin/sh\nexit 0\n") - # The launcher removes stale /run/dbus files before retrying. - # Never let this unit test touch the host container's bus files. - stub("rm", "#!/bin/sh\nexit 0\n") - stub("dbus-uuidgen", "#!/bin/sh\nexit 0\n") - stub( - "service", - "#!/bin/sh\nprintf '%s\\n' \"$*\" > \"$SERVICE_RECORD\"\nexit 0\n", - ) - stub( - "dbus-send", - """#!/bin/sh -count=0 -[ -f "$DBUS_COUNT" ] && count="$(cat "$DBUS_COUNT")" -count=$((count + 1)) -printf '%s' "$count" > "$DBUS_COUNT" -[ "$count" -ge 2 ] -""", - ) - stub( - "dbus-run-session", - "#!/bin/sh\n[ \"$1\" = \"--\" ] || exit 90\nshift\nexec \"$@\"\n", - ) - stub( - "gnome-shell", - """#!/bin/sh -{ - printf 'DISPLAY=%s\\n' "$DISPLAY" - printf 'XDG_RUNTIME_DIR=%s\\n' "$XDG_RUNTIME_DIR" - printf 'LIBGL_ALWAYS_SOFTWARE=%s\\n' "$LIBGL_ALWAYS_SOFTWARE" - printf 'GALLIUM_DRIVER=%s\\n' "$GALLIUM_DRIVER" - printf 'GSK_RENDERER=%s\\n' "$GSK_RENDERER" - printf 'MESA_LOADER_DRIVER_OVERRIDE=%s\\n' "${MESA_LOADER_DRIVER_OVERRIDE-unset}" - printf 'FD_FORCE_KGSL=%s\\n' "${FD_FORCE_KGSL-unset}" - printf 'LD_LIBRARY_PATH=%s\\n' "${LD_LIBRARY_PATH-unset}" - printf 'ARGS=%s\\n' "$*" -} > "$LAUNCH_RECORD" -""", - ) - - launch_path = root / "udroid-gnome-x11" - launch_path.write_text(match.group(1) + "\n", encoding="utf-8") - launch_path.chmod(0o755) - - result = subprocess.run( - [str(launch_path)], - env={ - **os.environ, - "PATH": f"{bindir}:{os.environ['PATH']}", - "DISPLAY": ":0", - "GALLIUM_DRIVER": "virpipe", - "MESA_LOADER_DRIVER_OVERRIDE": "kgsl", - "FD_FORCE_KGSL": "1", - "LD_LIBRARY_PATH": "/tmp/mesa-test", - "UDROID_GNOME_RUNTIME_DIR": str(runtime), - "LAUNCH_RECORD": str(launch_record), - "SERVICE_RECORD": str(service_record), - "DBUS_COUNT": str(dbus_count), - }, - capture_output=True, - text=True, - ) - - self.assertEqual(result.returncode, 0, result.stderr) - output = launch_record.read_text(encoding="utf-8") - self.assertIn("DISPLAY=:0", output) - self.assertIn(f"XDG_RUNTIME_DIR={runtime}", output) - self.assertIn("LIBGL_ALWAYS_SOFTWARE=1", output) - self.assertIn("GALLIUM_DRIVER=llvmpipe", output) - self.assertIn("GSK_RENDERER=cairo", output) - self.assertIn("MESA_LOADER_DRIVER_OVERRIDE=unset", output) - self.assertIn("FD_FORCE_KGSL=unset", output) - self.assertIn("LD_LIBRARY_PATH=unset", output) - self.assertIn("ARGS=--x11 --sm-disable", output) - self.assertEqual(service_record.read_text(encoding="utf-8").strip(), "dbus start") - self.assertEqual(runtime.stat().st_mode & 0o777, 0o700) - - -if __name__ == "__main__": - unittest.main() From 006aca5c4af66e90fc6b8fc416145e5b968aadbc Mon Sep 17 00:00:00 2001 From: KernelGhost-gif <340622085+KernelGhost-gif@users.noreply.github.com> Date: Thu, 19 Nov 2026 19:28:14 +0530 Subject: [PATCH 27/29] Delete .github/workflows/plucky-gnome-validation.yml --- .github/workflows/plucky-gnome-validation.yml | 80 ------------------- 1 file changed, 80 deletions(-) delete mode 100644 .github/workflows/plucky-gnome-validation.yml diff --git a/.github/workflows/plucky-gnome-validation.yml b/.github/workflows/plucky-gnome-validation.yml deleted file mode 100644 index 542c3432..00000000 --- a/.github/workflows/plucky-gnome-validation.yml +++ /dev/null @@ -1,80 +0,0 @@ -name: Plucky GNOME validation - -on: - pull_request: - paths: - - "suites/plucky/gnomeRaw/**" - - "tests/test_plucky_gnome.py" - - "gen_data/gen-suite-matrix.py" - - "build.sh" - - ".github/workflows/plucky-gnome-validation.yml" - workflow_dispatch: - -permissions: - contents: read - -concurrency: - group: plucky-gnome-${{ github.event.pull_request.head.ref || github.ref_name }} - cancel-in-progress: true - -jobs: - validate-and-build: - runs-on: ubuntu-24.04-arm - timeout-minutes: 90 - steps: - - name: Check out repository and fs-cook submodule - uses: actions/checkout@v4 - with: - submodules: true - - - name: Install build and test dependencies - run: | - sudo apt-get update - sudo apt-get install -y \ - git build-essential binfmt-support qemu-user-static debootstrap \ - python3 shellcheck - - - name: Fetch pinned debootstrap source - env: - DEBOOTSTRAP_VERSION: 1.0.134ubuntu1 - DEBOOTSTRAP_SHA256: e4077fc537d5edf9662305028b1ce7265ac4760086515be180b07b62d15f6a69 - run: | - archive="$RUNNER_TEMP/debootstrap.tar.gz" - curl --fail --location --retry 5 --retry-all-errors \ - --output "$archive" \ - "https://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz" - echo "$DEBOOTSTRAP_SHA256 $archive" | sha256sum --check --strict - mkdir -p fs-cook/core/debootstrap - tar --extract --gzip --file "$archive" \ - --directory fs-cook/core/debootstrap --strip-components=1 - test -s fs-cook/core/debootstrap/debootstrap - - - name: Run Python regression tests - run: python3 -m unittest discover -s tests -v - - - name: Check shell syntax and style - run: | - bash -n build.sh - for script in suites/plucky/gnomeRaw/*.sh; do - bash -n "$script" - done - shellcheck -e SC1091,SC2034,SC2154 suites/plucky/gnomeRaw/*.sh - - - name: Build Plucky GNOME rootfs - run: sudo bash build.sh -s plucky -v gnomeRaw -a arm64 - - - name: Verify generated rootfs archive - run: | - archive="fs-cook/out/plucky-gnomeRaw-arm64.tar.gz" - test -s "$archive" - launcher_entry="$(tar -tzf "$archive" | grep -E '(^|/)usr/local/bin/udroid-gnome-x11$' | head -n 1)" - test -n "$launcher_entry" - tar -xOzf "$archive" "$launcher_entry" | grep -F 'GALLIUM_DRIVER=llvmpipe' - - - name: Upload tested rootfs - uses: actions/upload-artifact@v4 - with: - name: plucky-gnomeRaw-arm64 - path: fs-cook/out/plucky-gnomeRaw-arm64.tar.gz - if-no-files-found: error - retention-days: 7 From aedf14f4085bb18db3d61d9beb5584a690b52188 Mon Sep 17 00:00:00 2001 From: KernelGhost-gif <340622085+KernelGhost-gif@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:47:24 +0530 Subject: [PATCH 28/29] Fix CodeFactor shell template injection warnings [skip ci] --- .github/workflows/build-and-release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index cccfca61..6759886a 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -101,7 +101,15 @@ jobs: sudo apt-get install git build-essential binfmt-support qemu-user-static debootstrap -y - name: 🛠️ Build ${{ matrix.suite }}-${{ matrix.variant }}-${{ matrix.architecture }} - run: sudo bash build.sh -s ${{ matrix.suite }} -v ${{ matrix.variant }} -a ${{ matrix.architecture }} + env: + SUITE: ${{ matrix.suite }} + VARIANT: ${{ matrix.variant }} + ARCHITECTURE: ${{ matrix.architecture }} + run: | + sudo bash build.sh \ + -s "$SUITE" \ + -v "$VARIANT" \ + -a "$ARCHITECTURE" - name: ⬆️ Upload Tarballs uses: actions/upload-artifact@v4.5.0 From 5826ad60effbd1e28b957c67860649c767a37beb Mon Sep 17 00:00:00 2001 From: KernelGhost-gif <340622085+KernelGhost-gif@users.noreply.github.com> Date: Fri, 20 Nov 2026 15:15:12 +0530 Subject: [PATCH 29/29] Delete .github/workflows/build-and-release.yml --- .github/workflows/build-and-release.yml | 180 ------------------------ 1 file changed, 180 deletions(-) delete mode 100644 .github/workflows/build-and-release.yml diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml deleted file mode 100644 index 6759886a..00000000 --- a/.github/workflows/build-and-release.yml +++ /dev/null @@ -1,180 +0,0 @@ -name: Build and Release -on: - schedule: [{cron: "1 1 1 * *"}] - workflow_dispatch: { } - pull_request: - branches: [main] - push: - paths-ignore: - - '**.md' - - '**.json' - - '.gitignore' - - '.vscode/**' - branches: - - main - -jobs: - generate-matrix: - runs-on: ubuntu-24.04-arm - outputs: - matrix: ${{ steps.set-matrix.outputs.matrix }} - steps: - - name: Checkout repository and submodules - id: checkout - continue-on-error: true - uses: actions/checkout@v4 - with: - submodules: true - - name: Retry checkout after a transient submodule failure - if: steps.checkout.outcome == 'failure' - uses: actions/checkout@v4 - with: - submodules: true - - name: Fetch pinned debootstrap source - env: - DEBOOTSTRAP_VERSION: 1.0.134ubuntu1 - DEBOOTSTRAP_SHA256: e4077fc537d5edf9662305028b1ce7265ac4760086515be180b07b62d15f6a69 - run: | - archive="$RUNNER_TEMP/debootstrap.tar.gz" - curl --fail --location \ - --retry 5 --retry-all-errors \ - --output "$archive" \ - "https://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_${DEBOOTSTRAP_VERSION}.tar.gz" - echo "$DEBOOTSTRAP_SHA256 $archive" | sha256sum --check --strict - mkdir -p fs-cook/core/debootstrap - tar --extract --gzip \ - --file "$archive" \ - --directory fs-cook/core/debootstrap \ - --strip-components=1 - test -s fs-cook/core/debootstrap/debootstrap - - name: Pack pinned debootstrap source - run: | - tar -C fs-cook/core \ - --exclude=debootstrap/.git \ - -cf "$RUNNER_TEMP/debootstrap-source.tar" \ - debootstrap - - name: Share pinned debootstrap source - uses: actions/upload-artifact@v4.5.0 - with: - name: debootstrap-source - path: ${{ runner.temp }}/debootstrap-source.tar - retention-days: 30 - - name: Check Plasma builders - run: python3 -m unittest discover -s tests -v - - name: Generate Matrix JSON - id: set-matrix - run: echo "matrix=$( python3 gen_data/gen-suite-matrix.py )" >> $GITHUB_OUTPUT - - suite-build: - if: github.event_name != 'pull_request' - runs-on: ubuntu-24.04-arm - needs: generate-matrix - strategy: - max-parallel: 10 - fail-fast: false - matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }} - - steps: - - name: Checkout repository and submodules - id: checkout - continue-on-error: true - uses: actions/checkout@v4 - with: - submodules: true - - name: Retry checkout after a transient submodule failure - if: steps.checkout.outcome == 'failure' - uses: actions/checkout@v4 - with: - submodules: true - - name: Download pinned debootstrap source - uses: actions/download-artifact@v4.1.7 - with: - name: debootstrap-source - path: ${{ runner.temp }}/debootstrap-source - - name: Restore pinned debootstrap source - run: | - tar -C fs-cook/core \ - -xf "$RUNNER_TEMP/debootstrap-source/debootstrap-source.tar" - - name: ⤵️ Install Dependencies - run: | - sudo apt-get update - sudo apt-get install git build-essential binfmt-support qemu-user-static debootstrap -y - - - name: 🛠️ Build ${{ matrix.suite }}-${{ matrix.variant }}-${{ matrix.architecture }} - env: - SUITE: ${{ matrix.suite }} - VARIANT: ${{ matrix.variant }} - ARCHITECTURE: ${{ matrix.architecture }} - run: | - sudo bash build.sh \ - -s "$SUITE" \ - -v "$VARIANT" \ - -a "$ARCHITECTURE" - - - name: ⬆️ Upload Tarballs - uses: actions/upload-artifact@v4.5.0 - with: - name: ${{ matrix.suite }}-${{ matrix.variant }}-${{ matrix.architecture }}-tarballs - path: fs-cook/out/${{ matrix.suite }}-${{ matrix.variant }}-**.tar.gz - - create-release: - if: github.event_name != 'pull_request' - runs-on: ubuntu-24.04-arm - - needs: suite-build - - steps: - - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - name: 📥 Download All Tarballs - uses: actions/download-artifact@v4.1.7 - - - name: 🏷 Generate Release Tag - run: | - udroid_version=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \ - https://github.com/RandomCoderOrg/ubuntu-on-android \ - | tail -n1 | cut -d / -f 3 | cut -d v -f 2- ) - - latest_tag=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \ - https://github.com/RandomCoderOrg/udroid-download \ - | tail -n1 | cut -d / -f 3) - - if [[ $latest_tag =~ R([0-9]+)$ ]]; then - current_release=${BASH_REMATCH[1]} - else - current_release=0 - fi - - next_release=$((current_release + 1)) - - echo "VERSIONTAG=V${udroid_version}R${next_release}" >> $GITHUB_ENV - - - name: 📝 Generate Release Notes - run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/generate-release-notes.sh - - - name: ⬆️ Upload Suite Tarballs - uses: ncipollo/release-action@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ env.VERSIONTAG }} - name: ${{ env.VERSIONTAG }} - bodyFile: release.md - draft: false - prerelease: false - artifacts: '*-*-tarballs/*.tar.gz' - makeLatest: true - - - name: ⚙️ Generate New distro-data.json - run: sudo python3 gen_data/gen-update-json.py --release-tag ${{ env.VERSIONTAG }} - - - name: ⚙️ Run git pull - run: git pull -v - - - name: ⚙️ Update distro-data.json - uses: stefanzweifel/git-auto-commit-action@v4 - with: - skip_fetch: false - skip_checkout: false - commit_message: 'AUTO BOT JOB: (MAIN) update distro-data.json for ${{ env.VERSIONTAG }}' - file_pattern: distro-data.json