fix: use Hinln/ARTEX for authenticated release updates
This commit is contained in:
1 parent
e6ec569991
commit
f3e3f54b6c
6 files changed
+223
-15
No files matched your search
@@ -69,7 +69,7 @@ AI 自主渗透测试系统(Go 后端 + Next.js 前端)
|
||||
### 方式一:一键安装脚本(推荐)
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Autumn-27/ARTEX.git
|
||||
git clone https://github.com/Hinln/ARTEX.git
|
||||
cd ARTEX
|
||||
./install.sh
|
||||
```
|
||||
@@ -84,7 +84,7 @@ cd ARTEX
|
||||
### 方式二:Docker Compose(手动)
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Autumn-27/ARTEX.git
|
||||
git clone https://github.com/Hinln/ARTEX.git
|
||||
cd ARTEX
|
||||
cp .env.example .env # 填 POSTGRES_PASSWORD、可选 ANTHROPIC_API_KEY
|
||||
docker compose up -d # 拉取 autumn27/artex 镜像 + postgres
|
||||
@@ -100,7 +100,7 @@ docker compose up -d # 拉取 autumn27/artex 镜像 + postgres
|
||||
|
||||
### 方式三:下载预编译二进制(Releases)
|
||||
|
||||
到 [Releases](https://github.com/Autumn-27/ARTEX/releases) 下载对应平台的 zip,解压后得到 `artex` + `start.sh`(Windows 为 `start.bat`)+ `skills/` + `config.example.json`:
|
||||
到 [Releases](https://github.com/Hinln/ARTEX/releases) 下载对应平台的 zip,解压后得到 `artex` + `start.sh`(Windows 为 `start.bat`)+ `skills/` + `config.example.json`:
|
||||
|
||||
```bash
|
||||
cp config.example.json config.json # 填好 database 连接
|
||||
@@ -144,6 +144,21 @@ ARTEX_TARGETS=linux/amd64,windows/amd64 ./build.sh --release
|
||||
|
||||
> 升级只换程序、不动数据:Postgres 数据卷 `pgdata`、`./data`(jwt.key / SQLite 等)、`./skills` 都会保留。**数据库迁移无需手动执行**——`artex` 每次启动会幂等重跑 `schema.sql`(含 `ADD COLUMN` / `CREATE INDEX IF NOT EXISTS`),即“重启即迁移”。升级前仍建议先备份 `./data` 与数据库。
|
||||
|
||||
### 本仓库的私有 Release 更新源
|
||||
|
||||
页面一键更新固定从 [Hinln/ARTEX Releases](https://github.com/Hinln/ARTEX/releases) 检查和下载版本。克隆或通过 Git 更新源码也使用 `Hinln/ARTEX`;原项目的 Go module 路径保持不变。
|
||||
|
||||
这是私有仓库。请为运行 ARTEX 的后端进程设置 `ARTEX_UPDATE_GITHUB_TOKEN`,令牌只需本仓库的 **Contents: read** 权限。令牌由后端用于查询 Release 和下载附件,不发送给浏览器,也不要提交到 Git。
|
||||
|
||||
```bash
|
||||
# 先在当前 shell 或服务环境中安全设置 ARTEX_UPDATE_GITHUB_TOKEN
|
||||
./start.sh
|
||||
```
|
||||
|
||||
本地直接启动时,`start.sh` 不会自动读取 `.env`;必须将变量导出到进程环境。Docker Compose 部署则可在未纳入 Git 的 `.env` 中填写该变量,并重建 artex 容器;镜像需要包含本分支的更新代码,旧版镜像不会因此切换升级源。
|
||||
|
||||
需要先在本仓库发布非 draft、非 prerelease 的正式 Release,并附上 `artex-<版本>-<os>-<arch>.zip` 和 `SHA256SUMS`,页面才能提供可安装更新。仓库里只有源码时还不能在线升级。现有 Release 工作流会在推送 `v*` tag 时为当前仓库生成这些附件。
|
||||
|
||||
### 方式一:页面一键更新(推荐)
|
||||
|
||||
在 **系统配置** 页(侧边栏「系统配置」→ `/system/settings`)的**版本与更新**卡片里,可以直接检查并安装新版本,无需登录服务器。
|
||||
@@ -182,7 +197,7 @@ docker image prune -f # 清理旧镜像(可选)
|
||||
|
||||
### 方式四:预编译二进制(Releases)
|
||||
|
||||
到 [Releases](https://github.com/Autumn-27/ARTEX/releases) 下载新版本 zip,停掉旧进程后覆盖 `artex` 与 `skills/`(保留你的 `config.json` 与 `data/`),重启即可:
|
||||
到 [Releases](https://github.com/Hinln/ARTEX/releases) 下载新版本 zip,停掉旧进程后覆盖 `artex` 与 `skills/`(保留你的 `config.json` 与 `data/`),重启即可:
|
||||
|
||||
```bash
|
||||
cp -r <解压目录>/skills ./ && cp <解压目录>/artex ./
|
||||
|
||||
Reference in new issue
Block a user