Enhance GoReleaser configuration for Windows archive formats and expand installation instructions in README.md for various platforms.

This commit is contained in:
John Doe 2025-04-02 18:58:00 +03:00
parent de3f5d07b8
commit 85751e1cb2
2 changed files with 50 additions and 12 deletions

View file

@ -16,9 +16,14 @@ builds:
- -s -w - -s -w
archives: archives:
- format_overrides: - name_template: >-
- formats: 'zip' {{ .ProjectName }}_
goos: windows {{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
formats: zip
changelog: changelog:
use: github use: github

View file

@ -22,6 +22,39 @@ The Model Context Protocol (MCP) is a system that lets AI apps, like Claude Desk
## Installation ## 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 ```bash
go install github.com/chaindead/telegram-mcp@latest 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: for Claude desktop:
```json ```json
{ {
"mcpServers": { "mcpServers": {
"telegram": { "telegram": {
"command": "telegram-mcp", "command": "telegram-mcp",
"env": { "env": {
"TG_APP_ID": "<your-app-id>", "TG_APP_ID": "<your-app-id>",
"TG_API_HASH": "<your-api-hash>", "TG_API_HASH": "<your-api-hash>",
"PATH": "<path_to_telegram-mcp_binary_dir>", "PATH": "<path_to_telegram-mcp_binary_dir>",
"HOME": "<path_to_your_home_directory" "HOME": "<path_to_your_home_directory"
} }
} }
} }
} }
``` ```
for Cursor: for Cursor: