发布页:ScienceMate + Windows 安装说明
This commit is contained in:
parent
ec54fd4be5
commit
9b10b03459
90
README.md
90
README.md
|
|
@ -1,4 +1,4 @@
|
|||
# Agent for Science 科研平台
|
||||
# ScienceMate
|
||||
|
||||
装上、打开、说一句你想研究什么 —— 它自己写代码、跑计算、看结果、出论文。
|
||||
|
||||
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
---
|
||||
|
||||
## macOS 安装
|
||||
## macOS(Apple Silicon)
|
||||
|
||||
一条命令(Apple Silicon):
|
||||
一条命令:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://desktop-9el2944.taile9f15e.ts.net/wangd/sciencemate/raw/branch/main/install.sh | sh
|
||||
|
|
@ -36,39 +36,13 @@ sh install.sh
|
|||
|
||||
</details>
|
||||
|
||||
## Windows 安装
|
||||
## Windows 10 / 11(64 位)
|
||||
|
||||
一条命令(PowerShell):
|
||||
从 [Releases](https://desktop-9el2944.taile9f15e.ts.net/wangd/sciencemate/releases) 下 **`ScienceMate-Setup.exe`**,双击。
|
||||
|
||||
```powershell
|
||||
irm https://desktop-9el2944.taile9f15e.ts.net/wangd/sciencemate/raw/branch/main/install.ps1 | iex
|
||||
```
|
||||
它会装到 `%LOCALAPPDATA%\Programs\ScienceMate` 并自己启动 —— **不需要管理员权限**。
|
||||
|
||||
装完会自己打开。**不会弹「Windows 已保护你的电脑」** —— SmartScreen 只拦带「网络来源标记」的文件,那个标记是浏览器打的,这条路用 `Invoke-WebRequest`,不打。
|
||||
|
||||
<details>
|
||||
<summary>想先看脚本做什么,或者手动装</summary>
|
||||
|
||||
脚本只做四件事:下载 `Setup.exe` → 用 `SHA256SUMS` 核对 → 去掉网络来源标记 → 运行安装器(自解压到 `%LOCALAPPDATA%\Programs\AgentForScience` 并启动)。任何一步失败就停。
|
||||
|
||||
先看再跑:
|
||||
|
||||
```powershell
|
||||
irm https://desktop-9el2944.taile9f15e.ts.net/wangd/sciencemate/raw/branch/main/install.ps1 -OutFile install.ps1
|
||||
notepad install.ps1
|
||||
.\install.ps1
|
||||
```
|
||||
|
||||
只想看它打算做什么、先不动手:`$env:AFS_DRY_RUN=1; .\install.ps1`
|
||||
只装不启动:`$env:AFS_NO_LAUNCH=1; .\install.ps1`
|
||||
|
||||
也可以从 [Releases](https://desktop-9el2944.taile9f15e.ts.net/wangd/sciencemate/releases) 直接下 `AgentForScience-Setup.exe` 双击。走浏览器下载的话,第一次运行 SmartScreen 会拦一下:**更多信息 → 仍要运行**。
|
||||
|
||||
**不需要管理员权限**,装在你自己的用户目录下。
|
||||
|
||||
</details>
|
||||
|
||||
> **双击启动后会有一个控制台黑窗** —— 那是壳(它负责起后端、开浏览器、退出时收摊)。**别关它**,关了后端就一起停了。内嵌窗口的版本还在做。
|
||||
第一次运行 Windows 会拦一下(应用还没买签名证书):**「更多信息」→「仍要运行」**。每台机器只需要这一次。
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -87,55 +61,39 @@ notepad install.ps1
|
|||
|
||||
发布件都带 ed25519 签名,签名对不上一律拒收。
|
||||
|
||||
> Windows 版的自更新还没接(v0.4.0 只发了安装器)。有新版本时重新跑一次上面那条 `irm ... | iex` 即可,项目数据不受影响。
|
||||
|
||||
## 你的东西放在哪
|
||||
|
||||
**macOS**
|
||||
| | |
|
||||
|---|---|
|
||||
| macOS | `~/.harness-framework/` |
|
||||
| Windows | `%LOCALAPPDATA%\afs\` |
|
||||
|
||||
```
|
||||
~/.harness-framework/
|
||||
db.sqlite 设置与索引(仅本人可读)
|
||||
project-worktrees/ 每个项目一个 git 仓库
|
||||
logs/backend.log 出问题时看这里
|
||||
```
|
||||
里面是设置库(仅本人可读)、每个项目一个 git 仓库、以及出问题时要看的 `logs/backend.log`。
|
||||
|
||||
**Windows**
|
||||
|
||||
```
|
||||
%LOCALAPPDATA%\afs\ 数据(同上三样)
|
||||
%LOCALAPPDATA%\Programs\AgentForScience\ 程序本体
|
||||
```
|
||||
|
||||
卸载 = macOS 把「应用程序」里的图标扔进废纸篓;Windows 删掉 `%LOCALAPPDATA%\Programs\AgentForScience` 整个目录。两边数据都留在上面那个数据目录,你自己决定要不要删。
|
||||
卸载 = 删掉应用(macOS 扔废纸篓;Windows 删 `%LOCALAPPDATA%\Programs\ScienceMate`)。数据留在上面那个目录,你自己决定要不要删。
|
||||
|
||||
## 系统要求
|
||||
|
||||
| | macOS | Windows |
|
||||
|---|---|---|
|
||||
| 版本 | 13 或更新,Apple Silicon(M 系列) | 10 / 11,64 位 |
|
||||
| 磁盘 | 约 1.5 GB | 约 1 GB(装完 915 MB) |
|
||||
| 权限 | 普通用户 | 普通用户,**不用管理员** |
|
||||
- **macOS** 13 或更新,Apple Silicon(M 系列)
|
||||
- **Windows** 10 / 11,64 位
|
||||
- 约 1.5 GB 磁盘
|
||||
- 一个能用的模型 API key
|
||||
|
||||
两边都要一个能用的模型 API key。Python、git、LaTeX(tectonic)、跑实验用的 bash 都随包带,**不用先装任何东西**。
|
||||
Python、git、LaTeX 都随包带,**不用先装任何东西**,也不需要管理员权限。
|
||||
|
||||
## 出问题了
|
||||
|
||||
1. 看日志最后几十行:
|
||||
- macOS:`~/.harness-framework/logs/backend.log`
|
||||
- Windows:`%LOCALAPPDATA%\afs\logs\backend.log`
|
||||
2. 应用自检:
|
||||
1. 看日志:macOS `~/.harness-framework/logs/backend.log`,Windows `%LOCALAPPDATA%\afs\logs\backend.log`
|
||||
2. 应用自检 —— 它会印出数据根、界面、harness、git、PDF 引擎、版本、沙箱各在哪,有一项是 `not found` 就是它:
|
||||
|
||||
macOS
|
||||
```sh
|
||||
"/Applications/Agent for Science.app/Contents/Resources/python/bin/python3" -m app.launcher doctor
|
||||
# macOS
|
||||
"/Applications/ScienceMate.app/Contents/Resources/python/bin/python3" -m app.launcher doctor
|
||||
```
|
||||
Windows
|
||||
```powershell
|
||||
& "$env:LOCALAPPDATA\Programs\AgentForScience\Resources\python\python.exe" -m app.launcher doctor
|
||||
# Windows
|
||||
& "$env:LOCALAPPDATA\Programs\ScienceMate\Resources\python\python.exe" -m app.launcher doctor
|
||||
```
|
||||
|
||||
它会印出数据根、界面、harness、git、模型 shell、PDF 引擎、沙箱各在哪 —— 有一项是 `not found` 就是它。
|
||||
3. 还是不行,把上面两样发给我。
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Reference in a new issue