A port of CoreDesktop's configure to Pop!_OS 24.04 with COSMIC, in the shape of connector-macos: its own install.sh, update and configure, installed in ~/.local/share/federated-connector/connector. Every configure item is ported: the Core (email, calendars and contacts through GNOME Online Accounts and Evolution, as COSMIC has no accounts of its own; Superpanel; files over davfs2; Element; Tally; the email watcher), Tailscale, backups, AI agents in the sandbox and their sign-ins, languages with mise, AI servers, printers, network storage and the agent sandbox. Folders go in the COSMIC Files sidebar. Each item installs what it needs from apt, Flathub or the tool's own apt repository when you set it up. smoketest/run checks it in Ubuntu 24.04 containers with Docker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.4 KiB
Bash
Executable File
43 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Purpose : Update Federated Connector to the latest version on Gitea.
|
|
#
|
|
# Usage: update Update, showing what changed
|
|
# update --version Show the version installed
|
|
#
|
|
# The installer does the work (install.sh --update): it downloads the new
|
|
# version and swaps it in, so the services keep pointing at the same place.
|
|
# Your settings, accounts, keyring items and downloaded tools are left as they
|
|
# are. Pop!_OS' own updates (COSMIC Store, or apt) update everything else,
|
|
# including what configure installed from apt.
|
|
|
|
# Wrapped in { ...; exit; } so bash reads the whole script up front; the
|
|
# update replaces this file while it runs.
|
|
{
|
|
|
|
CONNECTOR="$(cd "$(dirname "$(realpath "$0")")" && pwd)"
|
|
|
|
case "$1" in
|
|
--version|-v)
|
|
echo "Federated Connector $(cut -c1-7 "$CONNECTOR/.version" 2> /dev/null || echo "(not installed with install.sh)")"
|
|
exit 0 ;;
|
|
-h|--help)
|
|
sed -n '4,6p' "$(realpath "$0")" | sed 's/^# \{0,1\}//'
|
|
exit 0 ;;
|
|
esac
|
|
|
|
if [ ! -f "$CONNECTOR/.version" ]; then
|
|
echo "This copy wasn't installed with install.sh, so update can't replace it. Install with:"
|
|
echo " curl -fsSL https://gitea.federated.computer/Federated_Computer/connector-popos/raw/branch/main/install.sh | bash"
|
|
exit 1
|
|
fi
|
|
|
|
# Run from a copy: the update replaces install.sh along with everything else
|
|
copy="$(mktemp)" || exit 1
|
|
cp "$CONNECTOR/install.sh" "$copy" || exit 1
|
|
bash "$copy" --update
|
|
status=$?
|
|
rm -f "$copy"
|
|
exit $status
|
|
}
|