Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# ApkHub CLI
# ApkHub

[English](README.md) | [简体中文](README_zh.md)

A distributed APK repository management tool, similar to Scoop for Windows, that enables you to create, maintain, and consume APK repositories with ease.

## 🎯 What is ApkHub?

ApkHub CLI is a **distributed APK repository system** that works like Scoop package manager:
ApkHub is a **distributed APK repository system** that works like Scoop package manager:

- **🏗️ Repository Mode**: Create and maintain APK repositories (like creating a Scoop bucket)
- **📱 Client Mode**: Search, download, and install APKs from multiple repositories (like using Scoop)
Expand Down Expand Up @@ -46,11 +46,11 @@ Consume APK repositories like a package manager:
## 📦 Installation

### Pre-built Binaries
Download the latest release from [GitHub Releases](https://github.com/huanfeng/apkhub-cli/releases):
Download the latest release from [GitHub Releases](https://github.com/huanfeng/apkhub/releases):

```bash
# Linux/macOS
curl -L https://github.com/huanfeng/apkhub-cli/releases/latest/download/apkhub-linux-x86_64.tar.gz -o apkhub.tar.gz
curl -L https://github.com/huanfeng/apkhub/releases/latest/download/apkhub-linux-x86_64.tar.gz -o apkhub.tar.gz
tar xzf apkhub.tar.gz
sudo mv apkhub /usr/local/bin/
```
Expand All @@ -71,8 +71,8 @@ scoop install apkhub

### Build from Source
```bash
git clone https://github.com/huanfeng/apkhub-cli.git
cd apkhub-cli
git clone https://github.com/huanfeng/apkhub.git
cd apkhub
go build -o apkhub
```

Expand Down Expand Up @@ -598,6 +598,6 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file

## 📞 Support

- 📖 [Documentation](https://github.com/huanfeng/apkhub-cli/wiki)
- 🐛 [Issue Tracker](https://github.com/huanfeng/apkhub-cli/issues)
- 💬 [Discussions](https://github.com/huanfeng/apkhub-cli/discussions)
- 📖 [Documentation](https://github.com/huanfeng/apkhub/wiki)
- 🐛 [Issue Tracker](https://github.com/huanfeng/apkhub/issues)
- 💬 [Discussions](https://github.com/huanfeng/apkhub/discussions)
16 changes: 8 additions & 8 deletions README_zh.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ApkHub CLI
# ApkHub

[English](README.md) | [简体中文](README_zh.md)

Expand Down Expand Up @@ -46,11 +46,11 @@ ApkHub CLI 是一个**分布式 APK 仓库系统**,工作方式类似 Scoop
## 📦 安装

### 预编译二进制文件
从 [GitHub Releases](https://github.com/huanfeng/apkhub-cli/releases) 下载最新版本:
从 [GitHub Releases](https://github.com/huanfeng/apkhub/releases) 下载最新版本:

```bash
# Linux/macOS
curl -L https://github.com/huanfeng/apkhub-cli/releases/latest/download/apkhub-linux-x86_64.tar.gz -o apkhub.tar.gz
curl -L https://github.com/huanfeng/apkhub/releases/latest/download/apkhub-linux-x86_64.tar.gz -o apkhub.tar.gz
tar xzf apkhub.tar.gz
sudo mv apkhub /usr/local/bin/
```
Expand All @@ -71,8 +71,8 @@ scoop install apkhub

### 从源码构建
```bash
git clone https://github.com/huanfeng/apkhub-cli.git
cd apkhub-cli
git clone https://github.com/huanfeng/apkhub.git
cd apkhub
go build -o apkhub
```

Expand Down Expand Up @@ -598,6 +598,6 @@ apkhub install --device emulator-5554 --version 1.2.3 com.example.app

## 📞 支持

- 📖 [文档](https://github.com/huanfeng/apkhub-cli/wiki)
- 🐛 [问题跟踪](https://github.com/huanfeng/apkhub-cli/issues)
- 💬 [讨论](https://github.com/huanfeng/apkhub-cli/discussions)
- 📖 [文档](https://github.com/huanfeng/apkhub/wiki)
- 🐛 [问题跟踪](https://github.com/huanfeng/apkhub/issues)
- 💬 [讨论](https://github.com/huanfeng/apkhub/discussions)
4 changes: 2 additions & 2 deletions docs/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ scoop install apkhub
```

### 直接下载
从 [Releases](https://github.com/huanfeng/apkhub-cli/releases) 页面下载对应平台的二进制文件。
从 [Releases](https://github.com/huanfeng/apkhub/releases) 页面下载对应平台的二进制文件。

## 开发构建

Expand All @@ -35,7 +35,7 @@ go build -o apkhub
### 包含版本信息的构建
```bash
# 手动指定版本
go build -ldflags "-X github.com/huanfeng/apkhub-cli/internal/version.Version=v1.0.0" -o apkhub
go build -ldflags "-X github.com/huanfeng/apkhub/internal/version.Version=v1.0.0" -o apkhub

# 查看版本
./apkhub version
Expand Down
12 changes: 6 additions & 6 deletions docs/DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

```bash
# 从源码构建
git clone https://github.com/huanfeng/apkhub-cli.git
cd apkhub-cli
git clone https://github.com/huanfeng/apkhub.git
cd apkhub
go build -o apkhub
sudo mv apkhub /usr/local/bin/

# 或者下载预编译版本
wget https://github.com/huanfeng/apkhub-cli/releases/latest/download/apkhub-linux-amd64
wget https://github.com/huanfeng/apkhub/releases/latest/download/apkhub-linux-amd64
chmod +x apkhub-linux-amd64
sudo mv apkhub-linux-amd64 /usr/local/bin/apkhub
```
Expand Down Expand Up @@ -185,10 +185,10 @@ COPY --from=golang:1.21 /usr/local/go /usr/local/go
ENV PATH="/usr/local/go/bin:${PATH}"

RUN apk add --no-cache git && \
git clone https://github.com/huanfeng/apkhub-cli.git && \
cd apkhub-cli && \
git clone https://github.com/huanfeng/apkhub.git && \
cd apkhub && \
go build -o /usr/local/bin/apkhub && \
rm -rf /apkhub-cli /usr/local/go && \
rm -rf /apkhub /usr/local/go && \
apk del git

# 配置 nginx
Expand Down
6 changes: 3 additions & 3 deletions docs/GORELEASER.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ GoReleaser 自动从 Git 标签获取版本号:
builds:
- ldflags:
# 自动注入版本信息
- -X github.com/huanfeng/apkhub-cli/internal/version.Version={{.Version}}
- -X github.com/huanfeng/apkhub-cli/internal/version.Commit={{.Commit}}
- -X github.com/huanfeng/apkhub-cli/internal/version.BuildDate={{.Date}}
- -X github.com/huanfeng/apkhub/internal/version.Version={{.Version}}
- -X github.com/huanfeng/apkhub/internal/version.Commit={{.Commit}}
- -X github.com/huanfeng/apkhub/internal/version.BuildDate={{.Date}}
```

## 常见问题
Expand Down
10 changes: 5 additions & 5 deletions docs/PACKAGE_MANAGERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ scoop-bucket/

### 4. 添加 Secrets 到主仓库

在 apkhub-cli 仓库中添加 secrets:
在 apkhub 仓库中添加 secrets:

1. 访问 `https://github.com/huanfeng/apkhub-cli/settings/secrets/actions`
1. 访问 `https://github.com/huanfeng/apkhub/settings/secrets/actions`
2. 添加以下 secrets:
- `HOMEBREW_TAP_GITHUB_TOKEN`
- `SCOOP_BUCKET_GITHUB_TOKEN`
Expand Down Expand Up @@ -97,7 +97,7 @@ scoop update apkhub

#### 直接下载

也可以从 [Releases](https://github.com/huanfeng/apkhub-cli/releases) 页面直接下载对应平台的二进制文件。
也可以从 [Releases](https://github.com/huanfeng/apkhub/releases) 页面直接下载对应平台的二进制文件。

## 发布流程

Expand Down Expand Up @@ -180,7 +180,7 @@ scoop install apkhub
```ruby
class Apkhub < Formula
desc "A command-line tool for managing distributed APK repositories"
homepage "https://github.com/huanfeng/apkhub-cli"
homepage "https://github.com/huanfeng/apkhub"
version "0.2.0"
license "MIT"

Expand All @@ -193,7 +193,7 @@ end
{
"version": "0.2.0",
"description": "A command-line tool for managing distributed APK repositories",
"homepage": "https://github.com/huanfeng/apkhub-cli",
"homepage": "https://github.com/huanfeng/apkhub",
"license": "MIT",
"architecture": {
"64bit": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ main() {
git push origin "$NEW_VERSION"

echo -e "${GREEN}标签已推送!GitHub Actions 将自动完成发布。${NC}"
echo "请访问 https://github.com/huanfeng/apkhub-cli/actions 查看进度"
echo "请访问 https://github.com/huanfeng/apkhub/actions 查看进度"
;;
3)
echo "退出"
Expand Down