Merge commit '2fda71af117a90da5f496d8bb8105f0ee9e07420' as 'components/zinit'

This commit is contained in:
2025-08-16 21:12:16 +02:00
48 changed files with 11203 additions and 0 deletions

30
components/zinit/Makefile Normal file
View File

@@ -0,0 +1,30 @@
default: release
docker: release
docker build -f docker/Dockerfile -t zinit-ubuntu:18.04 target/x86_64-unknown-linux-musl/release
prepare:
rustup target add x86_64-unknown-linux-musl
release: prepare
cargo build --release --target=x86_64-unknown-linux-musl
release-aarch64-musl: prepare-aarch64-musl
cargo build --release --target=aarch64-unknown-linux-musl
prepare-aarch64-musl:
rustup target add aarch64-unknown-linux-musl
# Build for macOS (both Intel and Apple Silicon)
release-macos:
cargo build --release
# Install to ~/hero/bin (if it exists)
install-macos: release-macos
@if [ -d ~/hero/bin ]; then \
cp target/release/zinit ~/hero/bin; \
echo "Installed zinit to ~/hero/bin"; \
else \
echo "~/hero/bin directory not found. Please create it or specify a different installation path."; \
exit 1; \
fi