mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-18 19:43:22 +08:00
初始化:独立 oclaw 仓库首提交
- 在 oclaw/ 下重新初始化 Git 仓库 - 补齐子仓库 .gitignore,避免提交本地运行态数据(_local、node_modules、logs 等) - 提交当前工程代码与配置 Made-with: Cursor
This commit is contained in:
commit
ba3836f00f
579 changed files with 83112 additions and 0 deletions
49
desktop/README.md
Normal file
49
desktop/README.md
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# Desktop Shell
|
||||
|
||||
Electron wrapper for existing `admin/chat` frontend with an embedded local backend process.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Node.js 20+
|
||||
- Python 3.10+ (available in `PATH` as `python`)
|
||||
- Python deps installed in repo root:
|
||||
|
||||
```powershell
|
||||
python -m pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
From this `oclaw/desktop` directory:
|
||||
|
||||
```powershell
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
The app will:
|
||||
|
||||
1. Pick an available local port (default prefers `8787`).
|
||||
2. Start backend using `python -m oclaw.ops gateway start --host 127.0.0.1 --port <port>`.
|
||||
3. Open `http://127.0.0.1:<port>/chat` in the desktop window.
|
||||
|
||||
Logs are written under:
|
||||
|
||||
- `%APPDATA%/oclaw/logs/backend.log` (Windows)
|
||||
|
||||
## Environment knobs
|
||||
|
||||
- `PYTHON_EXECUTABLE`: absolute path to python executable.
|
||||
- `AIA_DESKTOP_BACKEND_PORT`: preferred backend port.
|
||||
|
||||
## Packaging (Windows)
|
||||
|
||||
```powershell
|
||||
npm run pack:win
|
||||
```
|
||||
|
||||
Output goes to `oclaw/desktop/dist/`, e.g.:
|
||||
|
||||
- `oclaw-setup-<version>.exe`
|
||||
- `oclaw-setup-<version>.exe.blockmap`
|
||||
- `win-unpacked/oclaw.exe`
|
||||
Loading…
Add table
Add a link
Reference in a new issue