feat: Linux packaging, SDK v0.7.1, fix rawmode conflict

- go.mod: SDK pseudo-version -> v0.7.1 (remote tag), go.sum updated
- cmd/waiter/rawmode_linux.go: remove (conflicts with raw_unix.go)
- cmd/gui/package.json: add rpm/AppImage Linux targets
- package/package-linux.sh: cross-distro packaging script (deb/tar.gz/rpm)
- package/linux/: DEBIAN control files, postinst/prerm, RPM spec
This commit is contained in:
JianFeeeee
2026-07-20 11:03:43 +08:00
parent 28dbca33ed
commit 451154bcb9
11 changed files with 588 additions and 29 deletions

View File

@ -0,0 +1,18 @@
Package: homeagent-client
Version: VERSION_PLACEHOLDER
Architecture: ARCH_PLACEHOLDER
Maintainer: HomeAgent Team <team@homeagent.ai>
Installed-Size: INSTALLED_SIZE_PLACEHOLDER
Depends: libc6 (>= 2.28)
Section: utils
Priority: optional
Homepage: https://github.com/trueagent/HomeAgent
Description: HomeAgent Client (CLI + GUI, no daemon)
HomeAgent is a personal AI home assistant that integrates
large language models with system automation.
.
This package includes the client components:
- waiter: command-line client
- homeagent-gui: desktop graphical interface
.
This variant connects to a remote HomeAgent server.

View File

@ -0,0 +1,17 @@
Package: homeagent-full
Version: VERSION_PLACEHOLDER
Architecture: ARCH_PLACEHOLDER
Maintainer: HomeAgent Team <team@homeagent.ai>
Installed-Size: INSTALLED_SIZE_PLACEHOLDER
Depends: libc6 (>= 2.28)
Section: utils
Priority: optional
Homepage: https://github.com/trueagent/HomeAgent
Description: HomeAgent Full Installation (Daemon + CLI + GUI)
HomeAgent is a personal AI home assistant that integrates
large language models with system automation.
.
This package includes the full suite:
- homed: the core daemon (background service)
- waiter: command-line client
- homeagent-gui: desktop graphical interface

View File

@ -0,0 +1,16 @@
Package: homeagent-server
Version: VERSION_PLACEHOLDER
Architecture: ARCH_PLACEHOLDER
Maintainer: HomeAgent Team <team@homeagent.ai>
Installed-Size: INSTALLED_SIZE_PLACEHOLDER
Depends: libc6 (>= 2.28)
Section: utils
Priority: optional
Homepage: https://github.com/trueagent/HomeAgent
Description: HomeAgent Server (Daemon + CLI, no GUI)
HomeAgent is a personal AI home assistant that integrates
large language models with system automation.
.
This package includes the server components:
- homed: the core daemon (background service)
- waiter: command-line client

25
package/linux/deb/postinst Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
set -e
SERVICE_NAME="homeagent"
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
HOMED_BIN="/usr/bin/homed"
DATA_DIR="/var/lib/homeagent"
case "$1" in
configure)
if [ -f "$HOMED_BIN" ]; then
mkdir -p "$DATA_DIR"
if [ -f "$SERVICE_FILE" ]; then
systemctl daemon-reload 2>/dev/null || true
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
;;
esac
exit 0

19
package/linux/deb/prerm Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
set -e
SERVICE_NAME="homeagent"
case "$1" in
remove|deconfigure)
if command -v systemctl >/dev/null 2>&1; then
systemctl stop "$SERVICE_NAME" 2>/dev/null || true
systemctl disable "$SERVICE_NAME" 2>/dev/null || true
fi
;;
upgrade)
;;
*)
;;
esac
exit 0