From acf89d70486a27e3b2e9ce5d188e739e6401e027 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 4 Nov 2025 11:22:11 +0000 Subject: automatic import of osmind-ai --- osmind-ai.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'osmind-ai.spec') diff --git a/osmind-ai.spec b/osmind-ai.spec index 8f24add..5a2230b 100644 --- a/osmind-ai.spec +++ b/osmind-ai.spec @@ -16,6 +16,14 @@ Source0: %{name}-%{version}.tar.gz BuildRequires: golang Requires: systemd +%ifarch x86_64 +%define archdir x86_64 +%endif + +%ifarch aarch64 +%define archdir aarch64 +%endif + %description OSMind AI Service packaged as RPM. @@ -34,7 +42,7 @@ install -d -m 755 %{buildroot}/opt/osmind_ai install -d -m 755 %{buildroot}%{_unitdir} # 复制二进制文件 -install -m 755 osmind_agent %{buildroot}/opt/osmind_ai/ +install -m 755 agent/%{archdir}/osmind_agent %{buildroot}/opt/osmind_ai/ # 复制 systemd 服务文件 install -m 644 osmind-ai.service %{buildroot}%{_unitdir}/ -- cgit v1.2.3