From 29c47fbe9ca0469fedf4c95bbe33754fbcf516c5 Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 27 Feb 2026 14:45:55 +0900 Subject: [PATCH] fix cfg --- cfg/pkg.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/cfg/pkg.sh b/cfg/pkg.sh index 90b3b52..d0564bc 100755 --- a/cfg/pkg.sh +++ b/cfg/pkg.sh @@ -4,10 +4,14 @@ set -e ROOTFS="$1" +arch-chroot $ROOTFS /bin/sh -c 'rm -rf /tmp/gpt /tmp/log /tmp/shell' arch-chroot $ROOTFS /bin/sh -c ' -cd /tmp -git clone https://git.syui.ai/ai/gpt && cd gpt && cargo build --release && cp target/release/aigpt /usr/local/bin/ && cd .. -git clone https://git.syui.ai/ai/log && cd log && cargo build --release && cp target/release/ailog /usr/local/bin/ && cd .. -git clone https://git.syui.ai/ai/shell && cd shell && cargo build --release && cp target/release/aishell /usr/local/bin/ && cd .. -rm -rf gpt log shell +cd /tmp && git clone https://git.syui.ai/ai/gpt && cd /tmp/gpt && cargo build --release && cp target/release/aigpt /usr/local/bin/ ' +arch-chroot $ROOTFS /bin/sh -c ' +cd /tmp && git clone -b main https://git.syui.ai/ai/log && cd /tmp/log && cargo build --release && cp target/release/ailog /usr/local/bin/ +' +arch-chroot $ROOTFS /bin/sh -c ' +cd /tmp && git clone https://git.syui.ai/ai/shell && cd /tmp/shell && cargo build --release && cp target/release/aishell /usr/local/bin/ +' +arch-chroot $ROOTFS /bin/sh -c 'rm -rf /tmp/gpt /tmp/log /tmp/shell'