Skip to content

Commit e73748d

Browse files
chore: migrate to bootcs-dev organization and bootcs.dev domain
1 parent bb47589 commit e73748d

File tree

10 files changed

+32
-32
lines changed

10 files changed

+32
-32
lines changed

.github/workflows/build-cli-image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# 学员只需使用一个镜像,无需选择
55
#
66
# 镜像标签:
7-
# - ghcr.io/bootcs-cn/bootcs-cli:latest (推荐)
8-
# - ghcr.io/bootcs-cn/bootcs-cli:v2.0.0 (版本号)
7+
# - ghcr.io/bootcs-dev/bootcs-cli:latest (推荐)
8+
# - ghcr.io/bootcs-dev/bootcs-cli:v2.0.0 (版本号)
99

1010
name: Build CLI Image
1111

@@ -31,7 +31,7 @@ on:
3131

3232
env:
3333
REGISTRY: ghcr.io
34-
IMAGE_NAME: bootcs-cn/bootcs-cli
34+
IMAGE_NAME: bootcs-dev/bootcs-cli
3535

3636
jobs:
3737
build:
@@ -101,8 +101,8 @@ jobs:
101101
echo "" >> $GITHUB_STEP_SUMMARY
102102
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
103103
echo "# 本地评测" >> $GITHUB_STEP_SUMMARY
104-
echo "docker run --rm -v \$(pwd):/workspace ghcr.io/bootcs-cn/cli check cs50/hello" >> $GITHUB_STEP_SUMMARY
104+
echo "docker run --rm -v \$(pwd):/workspace ghcr.io/bootcs-dev/bootcs-cli check cs50/hello" >> $GITHUB_STEP_SUMMARY
105105
echo "" >> $GITHUB_STEP_SUMMARY
106106
echo "# 提交代码" >> $GITHUB_STEP_SUMMARY
107-
echo "docker run --rm -v \$(pwd):/workspace ghcr.io/bootcs-cn/cli submit cs50/hello" >> $GITHUB_STEP_SUMMARY
107+
echo "docker run --rm -v \$(pwd):/workspace ghcr.io/bootcs-dev/bootcs-cli submit cs50/hello" >> $GITHUB_STEP_SUMMARY
108108
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ bootcs-cli 基于 [check50](https://github.com/cs50/check50) 和 [lib50](https:/
1212

1313
```bash
1414
# 克隆仓库
15-
git clone https://github.com/bootcs-cn/bootcs-cli.git
15+
git clone https://github.com/bootcs-dev/bootcs-cli.git
1616
cd bootcs-cli
1717

1818
# 创建虚拟环境
@@ -84,9 +84,9 @@ bootcs-cli/
8484

8585
| 变量 | 说明 | 默认值 |
8686
| -------------------- | ----------------------------- | ------------------------------------- |
87-
| `BOOTCS_API_URL` | API 服务地址 | `https://api.bootcs.cn` |
87+
| `BOOTCS_API_URL` | API 服务地址 | `https://api.bootcs.dev` |
8888
| `BOOTCS_CHECKS_PATH` | 本地 checks 路径 (评测环境用) | - |
89-
| `BOOTCS_CLI_IMAGE` | Docker 镜像 (开发用) | `ghcr.io/bootcs-cn/bootcs-cli:latest` |
89+
| `BOOTCS_CLI_IMAGE` | Docker 镜像 (开发用) | `ghcr.io/bootcs-dev/bootcs-cli:latest` |
9090

9191
## Docker 镜像构建
9292

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
```bash
88
# 1. 安装(只需一次)
9-
curl -fsSL https://raw.githubusercontent.com/bootcs-cn/bootcs-cli/main/scripts/install-docker.sh | bash
9+
curl -fsSL https://raw.githubusercontent.com/bootcs-dev/bootcs-cli/main/scripts/install-docker.sh | bash
1010

1111
# 2. 登录(只需一次)
1212
bootcs login
@@ -24,7 +24,7 @@ bootcs submit cs50/hello
2424
### 推荐方式:一键安装
2525

2626
```bash
27-
curl -fsSL https://raw.githubusercontent.com/bootcs-cn/bootcs-cli/main/scripts/install-docker.sh | bash
27+
curl -fsSL https://raw.githubusercontent.com/bootcs-dev/bootcs-cli/main/scripts/install-docker.sh | bash
2828
```
2929

3030
> 需要先安装 [Docker Desktop](https://www.docker.com/products/docker-desktop/)
@@ -143,8 +143,8 @@ Error: Could not find checks for 'xxx'
143143

144144
## 📚 更多帮助
145145

146-
- [BootCS 官网](https://bootcs.cn)
147-
- [课程文档](https://docs.bootcs.cn)
146+
- [BootCS 官网](https://bootcs.dev)
147+
- [课程文档](https://docs.bootcs.dev)
148148

149149
---
150150

@@ -156,22 +156,22 @@ Error: Could not find checks for 'xxx'
156156
如果你不想使用 Docker,可以用 pip 安装:
157157

158158
```bash
159-
pip install git+https://github.com/bootcs-cn/bootcs-cli.git
159+
pip install git+https://github.com/bootcs-dev/bootcs-cli.git
160160
```
161161

162162
需要自行配置 C/Python/Java 编译环境。
163163

164164
### 环境变量
165165

166-
| 变量 | 说明 | 默认值 |
167-
| -------------------- | ---------------- | ----------------------- |
168-
| `BOOTCS_API_URL` | API 地址 | `https://api.bootcs.cn` |
169-
| `BOOTCS_CHECKS_PATH` | 本地 checks 路径 | - |
166+
| 变量 | 说明 | 默认值 |
167+
| -------------------- | ---------------- | ------------------------ |
168+
| `BOOTCS_API_URL` | API 地址 | `https://api.bootcs.dev` |
169+
| `BOOTCS_CHECKS_PATH` | 本地 checks 路径 | - |
170170

171171
### 开发模式
172172

173173
```bash
174-
git clone https://github.com/bootcs-cn/bootcs-cli.git
174+
git clone https://github.com/bootcs-dev/bootcs-cli.git
175175
cd bootcs-cli
176176
pip install -e ".[dev]"
177177
pytest

bootcs/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def run_submit(args):
476476
if result.status == "EVALUATING":
477477
print()
478478
termcolor.cprint("💡 Your code is being evaluated. Check results at:", "cyan")
479-
print(f" https://bootcs.cn/submissions/{result.submission_id}")
479+
print(f" https://bootcs.dev/submissions/{result.submission_id}")
480480

481481
return 0
482482

bootcs/api/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
# Default API base URL
14-
DEFAULT_API_BASE = "https://api.bootcs.cn"
14+
DEFAULT_API_BASE = "https://api.bootcs.dev"
1515

1616

1717
def get_api_base() -> str:

bootcs/auth/device_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TokenResponse:
3939

4040

4141
# Default API base URL - can be overridden via environment
42-
DEFAULT_API_BASE = "https://api.bootcs.cn"
42+
DEFAULT_API_BASE = "https://api.bootcs.dev"
4343

4444

4545
def get_api_base() -> str:

docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# 与评测环境一致,避免"本地通过、线上失败"问题
55
#
66
# 使用方式:
7-
# docker run --rm -v $(pwd):/workspace ghcr.io/bootcs-cn/bootcs-cli check cs50/hello
8-
# docker run --rm -v $(pwd):/workspace ghcr.io/bootcs-cn/bootcs-cli submit cs50/hello
7+
# docker run --rm -v $(pwd):/workspace ghcr.io/bootcs-dev/bootcs-cli check cs50/hello
8+
# docker run --rm -v $(pwd):/workspace ghcr.io/bootcs-dev/bootcs-cli submit cs50/hello
99
#
1010
# 支持课程:
1111
# - CS50 (C, Python)
@@ -16,7 +16,7 @@
1616

1717
FROM python:3.11-slim
1818

19-
LABEL org.opencontainers.image.source="https://github.com/bootcs-cn/bootcs-cli"
19+
LABEL org.opencontainers.image.source="https://github.com/bootcs-dev/bootcs-cli"
2020
LABEL org.opencontainers.image.description="bootcs-cli development environment for students"
2121
LABEL org.opencontainers.image.licenses="MIT"
2222

@@ -68,7 +68,7 @@ ENV PATH="${JAVA_HOME}/bin:${PATH}"
6868
# ============================================
6969
# 安装 bootcs-cli (从 GitHub 安装)
7070
# ============================================
71-
RUN pip install --no-cache-dir git+https://github.com/bootcs-cn/bootcs-cli.git
71+
RUN pip install --no-cache-dir git+https://github.com/bootcs-dev/bootcs-cli.git
7272

7373
# ============================================
7474
# 环境配置

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "BootCS CLI - Check and submit your code, based on check50/lib50"
99
readme = "README.md"
1010
license = { text = "GPL-3.0-or-later" }
1111
requires-python = ">=3.9"
12-
authors = [{ name = "BootCS Team", email = "team@bootcs.cn" }]
12+
authors = [{ name = "BootCS Team", email = "team@bootcs.dev" }]
1313
classifiers = [
1414
"Development Status :: 4 - Beta",
1515
"Environment :: Console",
@@ -41,8 +41,8 @@ dev = ["pytest>=7.0", "pytest-cov>=4.0", "black>=23.0", "ruff>=0.1"]
4141
bootcs = "bootcs.__main__:main"
4242

4343
[project.urls]
44-
Homepage = "https://bootcs.cn"
45-
Repository = "https://github.com/bootcs-cn/bootcs-cli"
44+
Homepage = "https://bootcs.dev"
45+
Repository = "https://github.com/bootcs-dev/bootcs-cli"
4646

4747
[tool.setuptools.packages.find]
4848
where = ["."]

scripts/bootcs-wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
set -e
1515

1616
# 配置
17-
IMAGE="${BOOTCS_CLI_IMAGE:-ghcr.io/bootcs-cn/bootcs-cli:latest}"
17+
IMAGE="${BOOTCS_CLI_IMAGE:-ghcr.io/bootcs-dev/bootcs-cli:latest}"
1818
CONFIG_DIR="${HOME}/.bootcs"
1919

2020
# 确保配置目录存在

scripts/install-docker.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# bootcs-cli Docker 版一键安装脚本
33
#
44
# 使用方式:
5-
# curl -fsSL https://raw.githubusercontent.com/bootcs-cn/bootcs-cli/main/scripts/install-docker.sh | bash
5+
# curl -fsSL https://raw.githubusercontent.com/bootcs-dev/bootcs-cli/main/scripts/install-docker.sh | bash
66
#
77
# 或本地执行:
88
# ./scripts/install-docker.sh
@@ -18,7 +18,7 @@ CYAN='\033[0;36m'
1818
NC='\033[0m' # No Color
1919

2020
# 配置
21-
IMAGE="${BOOTCS_CLI_IMAGE:-ghcr.io/bootcs-cn/bootcs-cli:latest}"
21+
IMAGE="${BOOTCS_CLI_IMAGE:-ghcr.io/bootcs-dev/bootcs-cli:latest}"
2222
WRAPPER_NAME="bootcs"
2323
INSTALL_DIR="/usr/local/bin"
2424
CONFIG_DIR="${HOME}/.bootcs"
@@ -104,7 +104,7 @@ WRAPPER_SCRIPT='#!/bin/bash
104104
# bootcs-cli Docker wrapper
105105
# 自动生成,请勿手动编辑
106106
107-
IMAGE="ghcr.io/bootcs-cn/bootcs-cli:latest"
107+
IMAGE="ghcr.io/bootcs-dev/bootcs-cli:latest"
108108
CONFIG_DIR="${HOME}/.bootcs"
109109
110110
# 确保配置目录存在

0 commit comments

Comments
 (0)