2026-06-05 20:38:29 +00:00
|
|
|
GOGS_REPO := msicie/apollo_nxt-tftsr
|
2026-03-29 17:52:03 +00:00
|
|
|
TAG ?= v0.1.0-alpha
|
|
|
|
|
TARGET := aarch64-unknown-linux-gnu
|
|
|
|
|
|
|
|
|
|
# Build linux/arm64 release artifact natively inside a Docker container,
|
feat: full copy from apollo_nxt-trcaa with complete sanitization
Complete backport of all features from apollo_nxt-trcaa repository:
- Three-tier shell execution safety system (Tier 1: auto, Tier 2: approve, Tier 3: deny)
- Ollama function calling with tool use support
- AI provider tool calling auto-detection
- kubectl binary bundling and management
- kubeconfig upload and context management
- Shell approval modal with real-time UI
- MCP protocol HTTP transport with custom headers
- Enhanced security audit logging
- Comprehensive test coverage (275+ tests)
- Updated CI/CD workflows for Gitea Actions
- Complete documentation (ADRs, wiki, release notes)
Sanitization applied to all files:
- Removed all MSI, Motorola, VNXT, Vesta references
- Replaced internal infrastructure references with TFTSR equivalents
- Updated all URLs and API endpoints
- Sanitized commit history references in documentation
Technical changes:
- New modules: shell/classifier, shell/executor, shell/kubectl, shell/kubeconfig
- Enhanced AI providers: ollama.rs, openai.rs with function calling
- New Tauri commands: shell execution, kubeconfig management, tool calling detection
- Database migrations: shell_execution_audit table
- Frontend: ShellApprovalModal, ShellExecution, KubeconfigManager pages
- CI/CD: kubectl bundling, multi-platform builds, Gitea Actions integration
Version: 1.0.8
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-06-05 19:11:00 +00:00
|
|
|
# then upload to the GitHub release for TAG.
|
2026-03-29 17:52:03 +00:00
|
|
|
.PHONY: release-arm64
|
|
|
|
|
release-arm64: build-arm64 upload-arm64
|
|
|
|
|
|
|
|
|
|
.PHONY: build-arm64
|
|
|
|
|
build-arm64:
|
|
|
|
|
docker run --rm \
|
|
|
|
|
--platform linux/arm64 \
|
|
|
|
|
-v "$(CURDIR):/workspace" \
|
|
|
|
|
-w /workspace \
|
|
|
|
|
rust:1.88-slim \
|
|
|
|
|
bash -c ' \
|
|
|
|
|
apt-get update -qq && \
|
|
|
|
|
apt-get install -y -qq libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev \
|
|
|
|
|
libayatana-appindicator3-dev librsvg2-dev patchelf pkg-config curl perl && \
|
|
|
|
|
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
|
|
|
|
apt-get install -y nodejs && \
|
|
|
|
|
npm ci --legacy-peer-deps && \
|
|
|
|
|
rustup target add $(TARGET) && \
|
|
|
|
|
cargo install tauri-cli --version "^2" --locked && \
|
|
|
|
|
CI=true cargo tauri build --target $(TARGET) && \
|
|
|
|
|
mkdir -p artifacts/linux-arm64 && \
|
|
|
|
|
find src-tauri/target/$(TARGET)/release/bundle \
|
|
|
|
|
-name "*.deb" -o -name "*.rpm" -o -name "*.AppImage" | \
|
|
|
|
|
xargs -I{} cp {} artifacts/linux-arm64/ \
|
|
|
|
|
'
|
|
|
|
|
@echo "Artifacts:"
|
|
|
|
|
@ls -lh artifacts/linux-arm64/
|
|
|
|
|
|
|
|
|
|
.PHONY: upload-arm64
|
|
|
|
|
upload-arm64:
|
2026-06-05 20:38:29 +00:00
|
|
|
@test -n "$(GOGS_TOKEN)" || (echo "ERROR: set GOGS_TOKEN env var"; exit 1)
|
feat: full copy from apollo_nxt-trcaa with complete sanitization
Complete backport of all features from apollo_nxt-trcaa repository:
- Three-tier shell execution safety system (Tier 1: auto, Tier 2: approve, Tier 3: deny)
- Ollama function calling with tool use support
- AI provider tool calling auto-detection
- kubectl binary bundling and management
- kubeconfig upload and context management
- Shell approval modal with real-time UI
- MCP protocol HTTP transport with custom headers
- Enhanced security audit logging
- Comprehensive test coverage (275+ tests)
- Updated CI/CD workflows for Gitea Actions
- Complete documentation (ADRs, wiki, release notes)
Sanitization applied to all files:
- Removed all MSI, Motorola, VNXT, Vesta references
- Replaced internal infrastructure references with TFTSR equivalents
- Updated all URLs and API endpoints
- Sanitized commit history references in documentation
Technical changes:
- New modules: shell/classifier, shell/executor, shell/kubectl, shell/kubeconfig
- Enhanced AI providers: ollama.rs, openai.rs with function calling
- New Tauri commands: shell execution, kubeconfig management, tool calling detection
- Database migrations: shell_execution_audit table
- Frontend: ShellApprovalModal, ShellExecution, KubeconfigManager pages
- CI/CD: kubectl bundling, multi-platform builds, Gitea Actions integration
Version: 1.0.8
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-06-05 19:11:00 +00:00
|
|
|
@for f in artifacts/linux-arm64/*; do \
|
2026-03-29 17:52:03 +00:00
|
|
|
[ -f "$$f" ] || continue; \
|
feat: full copy from apollo_nxt-trcaa with complete sanitization
Complete backport of all features from apollo_nxt-trcaa repository:
- Three-tier shell execution safety system (Tier 1: auto, Tier 2: approve, Tier 3: deny)
- Ollama function calling with tool use support
- AI provider tool calling auto-detection
- kubectl binary bundling and management
- kubeconfig upload and context management
- Shell approval modal with real-time UI
- MCP protocol HTTP transport with custom headers
- Enhanced security audit logging
- Comprehensive test coverage (275+ tests)
- Updated CI/CD workflows for Gitea Actions
- Complete documentation (ADRs, wiki, release notes)
Sanitization applied to all files:
- Removed all MSI, Motorola, VNXT, Vesta references
- Replaced internal infrastructure references with TFTSR equivalents
- Updated all URLs and API endpoints
- Sanitized commit history references in documentation
Technical changes:
- New modules: shell/classifier, shell/executor, shell/kubectl, shell/kubeconfig
- Enhanced AI providers: ollama.rs, openai.rs with function calling
- New Tauri commands: shell execution, kubeconfig management, tool calling detection
- Database migrations: shell_execution_audit table
- Frontend: ShellApprovalModal, ShellExecution, KubeconfigManager pages
- CI/CD: kubectl bundling, multi-platform builds, Gitea Actions integration
Version: 1.0.8
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-06-05 19:11:00 +00:00
|
|
|
NAME="linux-arm64-$$(basename $$f)"; \
|
|
|
|
|
echo "Uploading $$NAME..."; \
|
2026-06-05 20:38:29 +00:00
|
|
|
GOGS_TOKEN=$(GOGS_TOKEN) # gh release upload $(TAG) "$$f#$$NAME" \
|
|
|
|
|
--repo $(GOGS_REPO) && echo "OK" || echo "FAIL: $$f"; \
|
2026-03-29 17:52:03 +00:00
|
|
|
done
|