chore: Clean up source directories after building aigpt and aibot

Remove gpt/ and bot/ directories after copying binaries to save disk space.
This commit is contained in:
Claude
2025-11-07 17:17:05 +00:00
parent 4352a7d0e3
commit 2773101035

View File

@@ -69,11 +69,11 @@ arch-chroot root.x86_64 /bin/sh -c 'echo "%wheel ALL=(ALL:ALL) NOPASSWD: /usr/bi
# Install aigpt (aios core package) # Install aigpt (aios core package)
echo "Installing aigpt..." echo "Installing aigpt..."
arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/gpt && cd gpt && cargo build --release && cp -rf ./target/release/aigpt /bin/' arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/gpt && cd gpt && cargo build --release && cp -rf ./target/release/aigpt /bin/ && cd .. && rm -rf gpt'
# Install aibot (aios core package) # Install aibot (aios core package)
echo "Installing aibot..." echo "Installing aibot..."
arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/aibot /bin/ && aibot ai' arch-chroot root.x86_64 /bin/sh -c 'git clone https://git.syui.ai/ai/bot && cd bot && cargo build && cp -rf ./target/debug/aibot /bin/ && aibot ai && cd .. && rm -rf bot'
echo "✓ Arch Linux base complete" echo "✓ Arch Linux base complete"
echo "" echo ""