From 85751e1cb2c41320b583aa5f3802532036adbf17 Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 2 Apr 2025 18:58:00 +0300 Subject: [PATCH] Enhance GoReleaser configuration for Windows archive formats and expand installation instructions in README.md for various platforms. --- .goreleaser.yaml | 11 ++++++++--- README.md | 51 +++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 50 insertions(+), 12 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 18fcc9e..77965d5 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -16,9 +16,14 @@ builds: - -s -w archives: - - format_overrides: - - formats: 'zip' - goos: windows + - name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else }}{{ .Arch }}{{ end }} + format_overrides: + - goos: windows + formats: zip changelog: use: github diff --git a/README.md b/README.md index cc9c7ad..3d4a2d5 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,39 @@ The Model Context Protocol (MCP) is a system that lets AI apps, like Claude Desk ## Installation +### From Releases + +#### Windows +1. Download the latest release for your architecture: + - [Windows x64](https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Windows_x86_64.zip) + - [Windows ARM64](https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Windows_arm64.zip) +2. Extract the `.zip` file +3. Add the extracted directory to your PATH or move `telegram-mcp.exe` to a directory in your PATH + +#### macOS +```bash +# Intel Mac (x86_64) +curl -L https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Darwin_x86_64.tar.gz | tar xz -C /usr/local/bin + +# Apple Silicon (M1/M2) +curl -L https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Darwin_arm64.tar.gz | tar xz -C /usr/local/bin +``` + +#### Linux +```bash +# x86_64 (64-bit) +curl -L https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Linux_x86_64.tar.gz | tar xz -C /usr/local/bin + +# ARM64 +curl -L https://github.com/chaindead/telegram-mcp/releases/latest/download/telegram-mcp_Linux_arm64.tar.gz | tar xz -C /usr/local/bin +``` + +### From Source + +Requirements: +- Go 1.24 or later +- GOBIN in PATH + ```bash go install github.com/chaindead/telegram-mcp@latest ``` @@ -58,19 +91,19 @@ Example of Configuring Claude Desktop to recognize the Telegram MCP server. for Claude desktop: ```json - { - "mcpServers": { - "telegram": { - "command": "telegram-mcp", - "env": { + { + "mcpServers": { + "telegram": { + "command": "telegram-mcp", + "env": { "TG_APP_ID": "", "TG_API_HASH": "", "PATH": "", "HOME": "