diff --git a/apps/openclaw-zh/README.md b/apps/openclaw-zh/README.md new file mode 100644 index 000000000..e58e31d97 --- /dev/null +++ b/apps/openclaw-zh/README.md @@ -0,0 +1,19 @@ +# OpenClaw 汉化发行版 + +适用于任何操作系统的 AI 智能体 Gateway 网关,支持 WhatsApp、Telegram、Discord、iMessage 等 + +![OpenClaw](https://file.lifebus.top/imgs/openclaw_banner.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +> “去壳!去壳!” — 大概是一只太空龙虾说的 + +OpenClaw 通过单个 Gateway 网关进程将聊天应用连接到 Pi 等编程智能体。它为 OpenClaw 助手提供支持,并支持本地或远程部署。 + + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) +![Ms Studio](https://analytics.lifebus.top/p/wJix5nI1W) diff --git a/apps/openclaw-zh/data.yml b/apps/openclaw-zh/data.yml new file mode 100644 index 000000000..d79a31e1d --- /dev/null +++ b/apps/openclaw-zh/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + key: openclaw-zh + name: OpenClaw 汉化发行版 + tags: + - WebSite + - Local + shortDescZh: 您自己的个人AI助手。任何操作系统。任何平台。小龙虾计划。 🦞 + shortDescEn: Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞 + type: website + crossVersionUpdate: true + limit: 0 + website: https://openclaw.qt.cool/ + github: https://github.com/1186258278/OpenClawChineseTranslation/ + document: https://openclaw.qt.cool/ + architectures: + - amd64 + - arm64 diff --git a/apps/openclaw-zh/latest/config/openclaw.json b/apps/openclaw-zh/latest/config/openclaw.json new file mode 100644 index 000000000..d328beec5 --- /dev/null +++ b/apps/openclaw-zh/latest/config/openclaw.json @@ -0,0 +1,24 @@ +{ + "gateway": { + "mode": "local", + "controlUi": { + "dangerouslyAllowHostHeaderOriginFallback": true + } + }, + "agents": { + "defaults": { + "workspace": "/home/node/.openclaw/workspace" + }, + "list": [ + { + "id": "main", + "workspace": "/home/node/.openclaw/workspace", + "identity": { + "name": "Clawd", + "theme": "helpful assistant", + "emoji": "🦞" + } + } + ] + } +} diff --git a/apps/openclaw-zh/latest/data.yml b/apps/openclaw-zh/latest/data.yml new file mode 100644 index 000000000..9d66efa0e --- /dev/null +++ b/apps/openclaw-zh/latest/data.yml @@ -0,0 +1,24 @@ +additionalProperties: + formFields: + - default: "/home/openclaw-zh" + edit: true + envKey: OPENCLAW_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 18789 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "" + edit: false + envKey: OPENCLAW_GATEWAY_TOKEN + labelZh: 网关 token + labelEn: Gateway token + required: true + type: password diff --git a/apps/openclaw-zh/latest/docker-compose.yml b/apps/openclaw-zh/latest/docker-compose.yml new file mode 100644 index 000000000..48b193626 --- /dev/null +++ b/apps/openclaw-zh/latest/docker-compose.yml @@ -0,0 +1,23 @@ +networks: + 1panel-network: + external: true + +services: + openclaw-zh: + image: 1186258278/openclaw-zh:latest + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + init: true + ports: + - ${PANEL_APP_PORT_HTTP}:18789 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${OPENCLAW_ROOT_PATH}/data:/root/.openclaw + environment: + - TZ=Asia/Shanghai diff --git a/apps/openclaw-zh/latest/envs/default.env b/apps/openclaw-zh/latest/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/openclaw-zh/latest/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/openclaw-zh/latest/envs/global.env b/apps/openclaw-zh/latest/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/openclaw-zh/latest/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/openclaw-zh/latest/scripts/init.sh b/apps/openclaw-zh/latest/scripts/init.sh new file mode 100644 index 000000000..c4328ab42 --- /dev/null +++ b/apps/openclaw-zh/latest/scripts/init.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + mkdir -p "$OPENCLAW_ROOT_PATH" + mkdir -p "$OPENCLAW_ROOT_PATH/data" + mkdir -p "$OPENCLAW_ROOT_PATH/data/config" + mkdir -p "$OPENCLAW_ROOT_PATH/data/workspace" + + cp ./config/openclaw.json "$OPENCLAW_ROOT_PATH/data/config/openclaw.json" + + chown -R 1000:1000 "$OPENCLAW_ROOT_PATH" + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/openclaw-zh/latest/scripts/uninstall.sh b/apps/openclaw-zh/latest/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/openclaw-zh/latest/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/openclaw-zh/latest/scripts/upgrade.sh b/apps/openclaw-zh/latest/scripts/upgrade.sh new file mode 100644 index 000000000..09c2c9349 --- /dev/null +++ b/apps/openclaw-zh/latest/scripts/upgrade.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + chown -R 1000:1000 "$OPENCLAW_ROOT_PATH" + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/openclaw-zh/logo.png b/apps/openclaw-zh/logo.png new file mode 100644 index 000000000..525515be7 Binary files /dev/null and b/apps/openclaw-zh/logo.png differ diff --git a/apps/openclaw-zh/logo.svg b/apps/openclaw-zh/logo.svg new file mode 100644 index 000000000..bcbc1e10c --- /dev/null +++ b/apps/openclaw-zh/logo.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + +