Watch
1
0
Fork
You've already forked souveraine
0
souveraine/rescue/archdev-unversioned-copy-2026-08-09/files/scripts/install-desktop.sh
Fimeg c367a4dbd9 rescue: preserve unversioned source copy found on archdev
/home/casey/souveraine on the build box is a full copy of this repo with no
.git at all, newest sources 2026-08-09 21:07. Audited by hashing every file
and querying this repo's object database: 1545 checked, ten unknown after
excluding the vendored upower submodule.

Eight carry real deltas; roughly fifty substantive lines have no upstream
equivalent. They are the follow-up to b2774c8 that was never committed: a
logind capability query before firing a power verb, and a failure-path release
of the in-flight power latch without which a refused suspend deafens the verb
until the next boot.

Preserved verbatim, not merged. The tree has moved 100+ commits and the
sessiond power seam wants a human.
2026-08-11 11:06:11 -04:00

31 lines
1,006 B
Shell
Executable file

#!/usr/bin/env bash
# Install Souveraine as the desktop system: binary, systemd user unit,
# quickshell surface. Idempotent — safe to re-run for upgrades.
set -euo pipefail
REPO="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
echo "== build =="
cargo build --release --manifest-path "$REPO/Cargo.toml"
echo "== binary =="
install -Dm755 "$REPO/target/release/souveraine" "$HOME/.local/bin/souveraine"
echo "== systemd user unit =="
install -Dm644 "$REPO/packaging/souveraine.service" \
"$HOME/.config/systemd/user/souveraine.service"
if command -v systemctl >/dev/null; then
systemctl --user daemon-reload
systemctl --user enable souveraine.service
systemctl --user restart souveraine.service || true
fi
echo "== quickshell surface =="
if [[ -d "$HOME/.config/quickshell/ii" ]]; then
"$REPO/surfaces/quickshell/deploy.sh"
else
echo " (no illogical-impulse config found — skipping surface deploy)"
fi
echo "== done =="
echo "server: systemctl --user status souveraine"