From 4d310953db468ea0424ebc1d6972244166fd54fc Mon Sep 17 00:00:00 2001 From: Zxilly Date: Fri, 31 May 2024 23:02:00 +0800 Subject: [PATCH] docs: add repology badge --- README.md | 22 +++++++++++++++------- README_zh-CN.md | 24 +++++++++++++++++------- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 51c8169898..8dedc025cf 100644 --- a/README.md +++ b/README.md @@ -2,27 +2,35 @@ [![Go Report Card](https://goreportcard.com/badge/github.com/Zxilly/go-size-analyzer)](https://goreportcard.com/report/github.com/Zxilly/go-size-analyzer) [![Tests](https://github.com/Zxilly/go-size-analyzer/actions/workflows/tests.yml/badge.svg)](https://github.com/Zxilly/go-size-analyzer/actions/workflows/tests.yml) -[![codecov](https://codecov.io/github/Zxilly/go-size-analyzer/graph/badge.svg?token=Q4TDH6RFZN)](https://codecov.io/github/Zxilly/go-size-analyzer) +![Codecov](https://img.shields.io/codecov/c/gh/Zxilly/go-size-analyzer) [![GitHub release](https://img.shields.io/github/v/release/Zxilly/go-size-analyzer)](https://github.com/Zxilly/go-size-analyzer/releases) -[![homebrew version](https://img.shields.io/homebrew/v/go-size-analyzer)](https://formulae.brew.sh/formula/go-size-analyzer) English | [简体中文](./README_zh-CN.md) A simple tool to analyze the size of a Go compiled binary. +[![Packaging status](https://repology.org/badge/vertical-allrepos/go-size-analyzer.svg)](https://repology.org/project/go-size-analyzer/versions) + ## Installation -Download the latest release from the [release page](https://github.com/Zxilly/go-size-analyzer/releases) +### [Download the latest binary](https://github.com/Zxilly/go-size-analyzer/releases) -You can use Homebrew to install `go-size-analyzer` +### MacOS / Linux via Homebrew: -```bash +Using [Homebrew](https://brew.sh/) +``` brew install go-size-analyzer ``` -Or use the following command to install the latest version: +### Windows: -```bash +Using [scoop](https://scoop.sh/) +``` +scoop install go-size-analyzer +``` + +### Go Install: +``` go install github.com/Zxilly/go-size-analyzer/cmd/gsa@latest ``` diff --git a/README_zh-CN.md b/README_zh-CN.md index 7955798662..4338159da5 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -2,25 +2,35 @@ [![Go Report Card](https://goreportcard.com/badge/github.com/Zxilly/go-size-analyzer)](https://goreportcard.com/report/github.com/Zxilly/go-size-analyzer) [![Tests](https://github.com/Zxilly/go-size-analyzer/actions/workflows/tests.yml/badge.svg)](https://github.com/Zxilly/go-size-analyzer/actions/workflows/tests.yml) -[![codecov](https://codecov.io/github/Zxilly/go-size-analyzer/graph/badge.svg?token=Q4TDH6RFZN)](https://codecov.io/github/Zxilly/go-size-analyzer) +![Codecov](https://img.shields.io/codecov/c/gh/Zxilly/go-size-analyzer) [![GitHub release](https://img.shields.io/github/v/release/Zxilly/go-size-analyzer)](https://github.com/Zxilly/go-size-analyzer/releases) -[![homebrew version](https://img.shields.io/homebrew/v/go-size-analyzer)](https://formulae.brew.sh/formula/go-size-analyzer) 一个简单的工具,用于分析 Go 编译二进制文件的大小。 +[![Packaging status](https://repology.org/badge/vertical-allrepos/go-size-analyzer.svg)](https://repology.org/project/go-size-analyzer/versions) + ## 安装 -从[发布页面](https://github.com/Zxilly/go-size-analyzer/releases)下载最新版本。 +### 安装 -你可以使用 Homebrew 安装 `go-size-analyzer` +### [下载最新二进制文件](https://github.com/Zxilly/go-size-analyzer/releases) -```bash +### 通过 Homebrew 安装 MacOS / Linux: + +使用 [Homebrew](https://brew.sh/) +``` brew install go-size-analyzer ``` -或者使用以下命令安装最新版本: +### Windows: -```bash +使用 [scoop](https://scoop.sh/) +``` +scoop install go-size-analyzer +``` + +### Go 安装: +``` go install github.com/Zxilly/go-size-analyzer/cmd/gsa@latest ```