mirror of
https://github.com/lukaszraczylo/filepuff-mcp.git
synced 2026-10-12 04:54:27 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad696a51d8 | ||
|
|
1ef24994ca |
@@ -22,7 +22,6 @@ jobs:
|
|||||||
rolling-release-tag: "v1"
|
rolling-release-tag: "v1"
|
||||||
platforms: >-
|
platforms: >-
|
||||||
[
|
[
|
||||||
{"os":"macos-13","goos":"darwin","goarch":"amd64","platform":"darwin_amd64"},
|
|
||||||
{"os":"macos-latest","goos":"darwin","goarch":"arm64","platform":"darwin_arm64"},
|
{"os":"macos-latest","goos":"darwin","goarch":"arm64","platform":"darwin_arm64"},
|
||||||
{"os":"ubuntu-latest","goos":"linux","goarch":"amd64","platform":"linux_amd64"},
|
{"os":"ubuntu-latest","goos":"linux","goarch":"amd64","platform":"linux_amd64"},
|
||||||
{"os":"ubuntu-24.04-arm","goos":"linux","goarch":"arm64","platform":"linux_arm64"},
|
{"os":"ubuntu-24.04-arm","goos":"linux","goarch":"arm64","platform":"linux_arm64"},
|
||||||
|
|||||||
+11
-8
@@ -5,6 +5,12 @@ version: 2
|
|||||||
|
|
||||||
project_name: mcp-filepuff
|
project_name: mcp-filepuff
|
||||||
|
|
||||||
|
# Split mode by full target (goos+goarch). Each matrix runner only builds the
|
||||||
|
# artifact matching its own architecture, avoiding CGO cross-compile failures
|
||||||
|
# (ARM asm on x86 runners and vice versa).
|
||||||
|
partial:
|
||||||
|
by: target
|
||||||
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
@@ -31,25 +37,22 @@ builds:
|
|||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
ignore:
|
ignore:
|
||||||
|
- goos: darwin
|
||||||
|
goarch: amd64
|
||||||
- goos: windows
|
- goos: windows
|
||||||
goarch: arm64
|
goarch: arm64
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- id: default
|
- id: default
|
||||||
|
# Ship raw binaries — downloaders curl the asset and run it directly
|
||||||
|
# (Windows gets .exe appended automatically). No tarball indirection.
|
||||||
formats:
|
formats:
|
||||||
- tar.gz
|
- binary
|
||||||
name_template: >-
|
name_template: >-
|
||||||
{{ .ProjectName }}_
|
{{ .ProjectName }}_
|
||||||
{{- .Version }}_
|
{{- .Version }}_
|
||||||
{{- .Os }}_
|
{{- .Os }}_
|
||||||
{{- .Arch }}
|
{{- .Arch }}
|
||||||
files:
|
|
||||||
- LICENSE
|
|
||||||
- README.md
|
|
||||||
format_overrides:
|
|
||||||
- goos: windows
|
|
||||||
formats:
|
|
||||||
- zip
|
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
|
|||||||
@@ -58,25 +58,21 @@ Claude Code configuration (`.claude/settings.json`):
|
|||||||
Download pre-built binaries from the [releases page](https://github.com/lukaszraczylo/filepuff-mcp/releases):
|
Download pre-built binaries from the [releases page](https://github.com/lukaszraczylo/filepuff-mcp/releases):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# macOS (ARM64)
|
# macOS (Apple Silicon)
|
||||||
curl -L https://github.com/lukaszraczylo/filepuff-mcp/releases/latest/download/mcp-filepuff_<version>_darwin_arm64.tar.gz | tar xz
|
curl -fsSL -o mcp-filepuff https://github.com/lukaszraczylo/filepuff-mcp/releases/latest/download/mcp-filepuff_<version>_darwin_arm64
|
||||||
mv mcp-filepuff ~/.local/bin/
|
chmod +x mcp-filepuff && mv mcp-filepuff ~/.local/bin/
|
||||||
|
|
||||||
# macOS (AMD64)
|
|
||||||
curl -L https://github.com/lukaszraczylo/filepuff-mcp/releases/latest/download/mcp-filepuff_<version>_darwin_amd64.tar.gz | tar xz
|
|
||||||
mv mcp-filepuff ~/.local/bin/
|
|
||||||
|
|
||||||
# Linux (ARM64)
|
# Linux (ARM64)
|
||||||
curl -L https://github.com/lukaszraczylo/filepuff-mcp/releases/latest/download/mcp-filepuff_<version>_linux_arm64.tar.gz | tar xz
|
curl -fsSL -o mcp-filepuff https://github.com/lukaszraczylo/filepuff-mcp/releases/latest/download/mcp-filepuff_<version>_linux_arm64
|
||||||
mv mcp-filepuff ~/.local/bin/
|
chmod +x mcp-filepuff && mv mcp-filepuff ~/.local/bin/
|
||||||
|
|
||||||
# Linux (AMD64)
|
# Linux (AMD64)
|
||||||
curl -L https://github.com/lukaszraczylo/filepuff-mcp/releases/latest/download/mcp-filepuff_<version>_linux_amd64.tar.gz | tar xz
|
curl -fsSL -o mcp-filepuff https://github.com/lukaszraczylo/filepuff-mcp/releases/latest/download/mcp-filepuff_<version>_linux_amd64
|
||||||
mv mcp-filepuff ~/.local/bin/
|
chmod +x mcp-filepuff && mv mcp-filepuff ~/.local/bin/
|
||||||
|
|
||||||
# Windows (PowerShell)
|
# Windows (PowerShell)
|
||||||
Invoke-WebRequest -Uri "https://github.com/lukaszraczylo/filepuff-mcp/releases/latest/download/mcp-filepuff_<version>_windows_amd64.zip" -OutFile mcp-filepuff.zip
|
Invoke-WebRequest -Uri "https://github.com/lukaszraczylo/filepuff-mcp/releases/latest/download/mcp-filepuff_<version>_windows_amd64.exe" -OutFile mcp-filepuff.exe
|
||||||
Expand-Archive mcp-filepuff.zip -DestinationPath $env:USERPROFILE\.local\bin
|
Move-Item mcp-filepuff.exe $env:USERPROFILE\.local\bin\
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace `<version>` with the actual version (e.g., `v1.0.0`).
|
Replace `<version>` with the actual version (e.g., `v1.0.0`).
|
||||||
|
|||||||
+23
-26
@@ -59,10 +59,12 @@ detect_platform() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Warn about unsupported combinations
|
# Intel Macs are no longer receiving macOS updates; we only ship Apple
|
||||||
if [ "$os" = "linux" ] && [ "$arch" = "arm64" ]; then
|
# Silicon builds. Users on older hardware can build from source.
|
||||||
print_error "Linux ARM64 builds are not currently available due to CGO cross-compilation complexity"
|
if [ "$os" = "darwin" ] && [ "$arch" = "amd64" ]; then
|
||||||
print_error "Please build from source: https://github.com/lukaszraczylo/filepuff-mcp#build-from-source"
|
print_error "macOS Intel (x86_64) is no longer supported."
|
||||||
|
print_error "Apple Silicon binaries are available; for Intel, build from source:"
|
||||||
|
print_error " https://github.com/lukaszraczylo/filepuff-mcp#build-from-source"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -73,7 +75,7 @@ check_dependencies() {
|
|||||||
local missing_deps=()
|
local missing_deps=()
|
||||||
|
|
||||||
# Check for required commands
|
# Check for required commands
|
||||||
for cmd in curl tar; do
|
for cmd in curl; do
|
||||||
if ! command -v "$cmd" &> /dev/null; then
|
if ! command -v "$cmd" &> /dev/null; then
|
||||||
missing_deps+=("$cmd")
|
missing_deps+=("$cmd")
|
||||||
fi
|
fi
|
||||||
@@ -210,14 +212,15 @@ download_and_install() {
|
|||||||
|
|
||||||
print_info "Downloading mcp-filepuff ${version} for ${platform}..."
|
print_info "Downloading mcp-filepuff ${version} for ${platform}..."
|
||||||
|
|
||||||
# Construct download URLs
|
# Releases ship raw binaries named mcp-filepuff_<version>_<os>_<arch>
|
||||||
local archive_name="mcp-filepuff_${version#v}_${platform}.tar.gz"
|
# (with .exe on Windows — not handled here).
|
||||||
local archive_url="https://github.com/${REPO}/releases/download/${version}/${archive_name}"
|
local asset_name="mcp-filepuff_${version#v}_${platform}"
|
||||||
|
local asset_url="https://github.com/${REPO}/releases/download/${version}/${asset_name}"
|
||||||
local checksum_url="https://github.com/${REPO}/releases/download/${version}/checksums.txt"
|
local checksum_url="https://github.com/${REPO}/releases/download/${version}/checksums.txt"
|
||||||
|
|
||||||
# Download archive
|
# Download binary
|
||||||
if ! curl -sSfL "$archive_url" -o "$tmpdir/$archive_name"; then
|
if ! curl -sSfL "$asset_url" -o "$tmpdir/$asset_name"; then
|
||||||
print_error "Failed to download $archive_url"
|
print_error "Failed to download $asset_url"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -227,26 +230,24 @@ download_and_install() {
|
|||||||
else
|
else
|
||||||
print_info "Verifying checksum..."
|
print_info "Verifying checksum..."
|
||||||
cd "$tmpdir"
|
cd "$tmpdir"
|
||||||
|
|
||||||
# Extract expected checksum for our archive
|
|
||||||
local expected_checksum
|
local expected_checksum
|
||||||
expected_checksum=$(grep "$archive_name" checksums.txt | awk '{print $1}')
|
expected_checksum=$(grep "$asset_name" checksums.txt | awk '{print $1}')
|
||||||
|
|
||||||
if [ -z "$expected_checksum" ]; then
|
if [ -z "$expected_checksum" ]; then
|
||||||
print_warn "Checksum not found for $archive_name, skipping verification"
|
print_warn "Checksum not found for $asset_name, skipping verification"
|
||||||
else
|
else
|
||||||
# Calculate actual checksum (use shasum on macOS, sha256sum on Linux)
|
|
||||||
local actual_checksum
|
local actual_checksum
|
||||||
if command -v sha256sum &> /dev/null; then
|
if command -v sha256sum &> /dev/null; then
|
||||||
actual_checksum=$(sha256sum "$archive_name" | awk '{print $1}')
|
actual_checksum=$(sha256sum "$asset_name" | awk '{print $1}')
|
||||||
elif command -v shasum &> /dev/null; then
|
elif command -v shasum &> /dev/null; then
|
||||||
actual_checksum=$(shasum -a 256 "$archive_name" | awk '{print $1}')
|
actual_checksum=$(shasum -a 256 "$asset_name" | awk '{print $1}')
|
||||||
else
|
else
|
||||||
print_warn "No checksum utility found, skipping verification"
|
print_warn "No checksum utility found, skipping verification"
|
||||||
cd - > /dev/null
|
cd - > /dev/null
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$expected_checksum" = "$actual_checksum" ]; then
|
if [ "$expected_checksum" = "$actual_checksum" ]; then
|
||||||
print_info "Checksum verification passed"
|
print_info "Checksum verification passed"
|
||||||
else
|
else
|
||||||
@@ -259,10 +260,6 @@ download_and_install() {
|
|||||||
cd - > /dev/null
|
cd - > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Extract archive
|
|
||||||
print_info "Extracting archive..."
|
|
||||||
tar -xzf "$tmpdir/$archive_name" -C "$tmpdir"
|
|
||||||
|
|
||||||
# Ensure install directory exists
|
# Ensure install directory exists
|
||||||
if [ ! -d "$INSTALL_DIR" ]; then
|
if [ ! -d "$INSTALL_DIR" ]; then
|
||||||
print_info "Creating installation directory: $INSTALL_DIR"
|
print_info "Creating installation directory: $INSTALL_DIR"
|
||||||
@@ -272,11 +269,11 @@ download_and_install() {
|
|||||||
# Install binary
|
# Install binary
|
||||||
print_info "Installing to $INSTALL_DIR/$BINARY_NAME..."
|
print_info "Installing to $INSTALL_DIR/$BINARY_NAME..."
|
||||||
if [ -w "$INSTALL_DIR" ]; then
|
if [ -w "$INSTALL_DIR" ]; then
|
||||||
cp "$tmpdir/$BINARY_NAME" "$INSTALL_DIR/$BINARY_NAME"
|
cp "$tmpdir/$asset_name" "$INSTALL_DIR/$BINARY_NAME"
|
||||||
chmod +x "$INSTALL_DIR/$BINARY_NAME"
|
chmod +x "$INSTALL_DIR/$BINARY_NAME"
|
||||||
else
|
else
|
||||||
print_warn "No write permission to $INSTALL_DIR, trying with sudo..."
|
print_warn "No write permission to $INSTALL_DIR, trying with sudo..."
|
||||||
sudo cp "$tmpdir/$BINARY_NAME" "$INSTALL_DIR/$BINARY_NAME"
|
sudo cp "$tmpdir/$asset_name" "$INSTALL_DIR/$BINARY_NAME"
|
||||||
sudo chmod +x "$INSTALL_DIR/$BINARY_NAME"
|
sudo chmod +x "$INSTALL_DIR/$BINARY_NAME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user