commit d97c801dfddbebe8bed55d096fad6796339b12f2
parent c38fffda0283ca856b00100ecaa449ac5e0a92ec
Author: Divan Visagie <me@divanv.com>
Date: Fri, 6 Nov 2026 08:43:17 +0100
desktop builds: Files comes with patina-desktop, not from a checkout of its own
Diffstat:
2 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/freebsd/hardware/setup.sh b/freebsd/hardware/setup.sh
@@ -7,9 +7,9 @@
# hardware/setup.sh [user@]host
#
# The host needs ssh and doas without a password for the user. It installs the
-# desktop, its launcher, Teleprinter (the terminal) and Files, from their checkouts
-# beside patina-os (PATINA_DESKTOP, PATINA_LAUNCHER, PATINA_TELEPRINTER,
-# PATINA_FILES override where); PATINA_GPU is the firmware's generation (default:
+# desktop (Files is in it), its launcher and Teleprinter (the terminal), from their checkouts
+# beside patina-os (PATINA_DESKTOP, PATINA_LAUNCHER, PATINA_TELEPRINTER
+# override where); PATINA_GPU is the firmware's generation (default:
# tigerlake), PATINA_SCALE the screen's scale (default: 1.2). PATINA_WORKTREE=1 sends
# the checkouts' working trees, uncommitted changes and all, instead of their last commits.
set -euo pipefail
@@ -19,7 +19,6 @@ HERE=$(cd "$(dirname "$0")" && pwd)
DESKTOP=${PATINA_DESKTOP:-$HERE/../../../patina-desktop}
LAUNCHER=${PATINA_LAUNCHER:-$HERE/../../../patina-launcher}
TELEPRINTER=${PATINA_TELEPRINTER:-$HERE/../../../teleprinter}
-FILES=${PATINA_FILES:-$HERE/../../../files}
GPU=${PATINA_GPU:-tigerlake}
SCALE=${PATINA_SCALE:-1.2}
@@ -57,10 +56,9 @@ ship() { # name checkout
ship patina-desktop "$DESKTOP"
ship patina-launcher "$LAUNCHER"
ship teleprinter "$TELEPRINTER"
-ship files "$FILES"
echo "==> build"
-for p in patina-desktop patina-launcher teleprinter files; do
+for p in patina-desktop patina-launcher teleprinter; do
run "cd ~/src/$p && cargo build --release"
done
@@ -68,7 +66,7 @@ echo "==> install"
run 'cd ~/src/patina-desktop &&
doas install -m 755 $(find target/release -maxdepth 1 -type f -perm -u+x -name "patina-*") \
../patina-launcher/target/release/patina-launcher ../teleprinter/target/release/teleprinter \
- ../files/target/release/files /usr/local/bin/ &&
+ target/release/files /usr/local/bin/ &&
doas install -m 644 man/*.1 /usr/local/share/man/man1/ &&
doas install -m 644 man/*.7 /usr/local/share/man/man7/'
scp -q "$HERE/start-patina" "$HOST:/tmp/start-patina"
diff --git a/linux/desktop/build.sh b/linux/desktop/build.sh
@@ -13,7 +13,7 @@
# etc/xdg/patina-mimeapps.list folders open in Files, in Patina
# usr/lib/patina-os/{desktop,launcher,files} which commits they were built from
#
-# PATINA_DESKTOP, PATINA_LAUNCHER and PATINA_FILES are the checkouts
+# PATINA_DESKTOP and PATINA_LAUNCHER are the checkouts
# (default: beside patina-os). PATINA_DESKTOP_WORKTREE=1 builds their working trees instead,
# uncommitted changes and all, to try them in the VM; the image then says
# "+dirty".
@@ -22,7 +22,6 @@ set -euo pipefail
ROOT=$(cd "$(dirname "$0")/.." && pwd)
SRC=${PATINA_DESKTOP:-$ROOT/../../patina-desktop}
LAUNCHER=${PATINA_LAUNCHER:-$ROOT/../../patina-launcher}
-FILES=${PATINA_FILES:-$ROOT/../../files}
BUILD="$ROOT/build"
STAGE="$BUILD/desktop"
BUILDER=patina-os-desktop-builder
@@ -61,10 +60,9 @@ docker build -q -f "$ROOT/desktop/builder.Containerfile" -t "$BUILDER" "$ROOT/de
mkdir -p "$BUILD/target"
commit=$(stage "$SRC" "$BUILD/src")
launcher_commit=$(stage "$LAUNCHER" "$BUILD/launcher-src")
-files_commit=$(stage "$FILES" "$BUILD/files-src")
# Cargo's downloads are kept in a volume, and its target folder in build/, so
# rebuilds are incremental. As the user, so build/ stays theirs.
-for project in src launcher-src files-src; do
+for project in src launcher-src; do
say "building $project"
docker run --rm --user "$(id -u):$(id -g)" \
-e CARGO_HOME=/cargo -e HOME=/tmp \
@@ -88,9 +86,9 @@ sed 's|@BINDIR@|/usr/bin|' "$BUILD/src/packaging/linux/patina.desktop" \
install -m 644 "$BUILD/src/packaging/linux/patina-lock.pam" "$STAGE/etc/pam.d/patina-lock"
echo "$commit" > "$STAGE/usr/lib/patina-os/desktop"
-# Files: the file manager, the session's file chooser through the portal,
+# Files, a crate of patina-desktop: the file manager, the session's file chooser through the portal,
# and what opens folders in the Patina session (Files' ADR-0004).
-F="$BUILD/files-src"
+F="$BUILD/src/files"
install -m 755 "$BUILD/target/release/files" "$STAGE/usr/bin/"
install -D -m 644 "$F/packaging/linux/files.svg" \
"$STAGE/usr/share/icons/hicolor/scalable/apps/com.sectorflabs.Files.svg"
@@ -103,5 +101,5 @@ install -D -m 644 "$F/packaging/portal/patina.portal" "$STAGE/usr/share/xdg-desk
install -D -m 644 "$F/packaging/portal/patina-portals.conf" "$STAGE/usr/share/xdg-desktop-portal/patina-portals.conf"
install -d "$STAGE/etc/xdg"
printf '[Default Applications]\ninode/directory=com.sectorflabs.Files.desktop\n' > "$STAGE/etc/xdg/patina-mimeapps.list"
-echo "$files_commit" > "$STAGE/usr/lib/patina-os/files"
+echo "$commit" > "$STAGE/usr/lib/patina-os/files"
echo "$launcher_commit" > "$STAGE/usr/lib/patina-os/launcher"