Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: logo icn and jiuwenswarm title

huanggawa3693e2cba2a5
diff --git a/jiuwenclaw/channels/desktop/desktop_app.py b/jiuwenclaw/channels/desktop/desktop_app.py
index f0feb60161..89a57d5915 100644
--- a/jiuwenclaw/channels/desktop/desktop_app.py
+++ b/jiuwenclaw/channels/desktop/desktop_app.py
@@ -414,31 +414,14 @@ class DesktopRuntime:
@staticmethod
def _build_loading_html() -> str:
- import base64
- import io
-
logo_svg = ""
- # 优先用 channels/web/frontend/dist(打包后可用),
- # 回退到 channels/web/frontend/public(开发时可用)
pkg_dir = Path(__file__).resolve().parent
- logo_path = pkg_dir.parent / "web" / "frontend" / "dist" / "logo.png"
+ logo_path = pkg_dir.parent / "web" / "frontend" / "dist" / "logo.svg"
if not logo_path.is_file():
- logo_path = pkg_dir.parent / "web" / "frontend" / "public" / "logo.png"
+ logo_path = pkg_dir.parent / "web" / "frontend" / "public" / "logo.svg"
if logo_path.is_file():
try:
- from PIL import Image
-
- img = Image.open(logo_path).convert("RGBA")
- img = img.resize((128, 128), Image.LANCZOS)
- buf = io.BytesIO()
- img.save(buf, format="PNG", optimize=True)
- logo_b64 = base64.b64encode(buf.getvalue()).decode("ascii")
- logo_svg = (
- '<svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg">'
- '<image href="data:image/png;base64,' + logo_b64
- + '" width="128" height="128"/>'
- '</svg>'
- )
+ logo_svg = logo_path.read_text(encoding="utf-8")
except Exception: # noqa: BLE001
pass
@@ -495,6 +478,7 @@ transition:opacity .4s ease,transform .4s ease}
<div class="tip-text" id="tip"></div>
</div>
<div class="dots" id="dots"></div>
+<div class="tip-label" style="margin-top:16px">服务启动加载中</div>
</div>
<script>
const tips=[
@@ -592,8 +576,8 @@ def _kill_process_tree(process: subprocess.Popen[bytes]) -> None:
def _parse_args() -> argparse.Namespace:
- parser = argparse.ArgumentParser(description="Launch JiuwenClaw desktop window.")
- parser.add_argument("--title", default="JiuwenClaw", help="Desktop window title.")
+ parser = argparse.ArgumentParser(description="Launch JiuwenSwarm desktop window.")
+ parser.add_argument("--title", default="JiuwenSwarm", help="Desktop window title.")
parser.add_argument("--width", type=int, default=1440, help="Initial window width.")
parser.add_argument(
"--height", type=int, default=960, help="Initial window height."
diff --git a/jiuwenclaw/channels/web/frontend/public/logo.icns b/jiuwenclaw/channels/web/frontend/public/logo.icns
index b5998f9f23..2832348864 100644
Binary files a/jiuwenclaw/channels/web/frontend/public/logo.icns and b/jiuwenclaw/channels/web/frontend/public/logo.icns differ
diff --git a/jiuwenclaw/channels/web/frontend/public/logo.ico b/jiuwenclaw/channels/web/frontend/public/logo.ico
index b3fcb3e315..9514f2941e 100644
Binary files a/jiuwenclaw/channels/web/frontend/public/logo.ico and b/jiuwenclaw/channels/web/frontend/public/logo.ico differ
diff --git a/scripts/installer.iss b/scripts/installer.iss
index 2fe6c5fd30..f9c2d18955 100644
--- a/scripts/installer.iss
+++ b/scripts/installer.iss
@@ -3,9 +3,9 @@
#define MyAppName "JiuwenSwarm"
#define MyAppVersion "0.1.11"
-#define MyAppPublisher "Jiuwen"
+#define MyAppPublisher "openJiuwen"
#define MyAppExeName "jiuwenswarm.exe"
-#define MyAppURL "https://jiuwenswarm.com"
+#define MyAppURL "https://openjiuwen.com"
[Setup]
AppId={{B8F3A2D1-7E4C-4A9B-8D6F-1C2E3F4A5B6C}
diff --git a/scripts/jiuwenclaw_exe_entry.py b/scripts/jiuwenclaw_exe_entry.py
index 41227ce9d9..f87e297008 100644
--- a/scripts/jiuwenclaw_exe_entry.py
+++ b/scripts/jiuwenclaw_exe_entry.py
@@ -32,7 +32,7 @@ _SINGLE_INSTANCE_LOCK_FD: int | None = None
def _acquire_single_instance_lock() -> bool:
"""Try to acquire a single-instance lock. Runs *before* any heavy imports."""
global _SINGLE_INSTANCE_LOCK_FD
- lock_path = Path.home() / ".jiuwenclaw" / ".desktop.lock"
+ lock_path = Path.home() / ".jiuwenswarm" / ".desktop.lock"
try:
lock_path.parent.mkdir(parents=True, exist_ok=True)
fd = os.open(str(lock_path), os.O_CREAT | os.O_RDWR, mode=0o644)
@@ -101,7 +101,7 @@ def _is_child_mode() -> bool:
def _write_child_error(exc: BaseException) -> None:
"""将子进程的未捕获异常写入日志文件。"""
try:
- log_dir = Path(os.environ.get("JIUWENCLAW_DATA_DIR", Path.home() / ".jiuwenclaw")) / "logs"
+ log_dir = Path(os.environ.get("JIUWENCLAW_DATA_DIR", Path.home() / ".jiuwenswarm")) / "logs"
log_dir.mkdir(parents=True, exist_ok=True)
log_file = log_dir / "child_error.log"
with open(log_file, "a", encoding="utf-8") as f:
diff --git a/uv.lock b/uv.lock
index 415f64259a..70214e401a 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1593,7 +1593,7 @@ requires-dist = [
{ name = "discord-py", specifier = ">=2.4.0" },
{ name = "google-genai", specifier = ">=1.68.0" },
{ name = "greenlet", specifier = ">=3.3.2" },
- { name = "jiuwenswarm-tui", marker = "extra == 'tui'", directory = "packages/jiuwenclaw-tui" },
+ { name = "jiuwenswarm-tui", marker = "extra == 'tui'", directory = "packages/jiuwenswarm-tui" },
{ name = "lark-oapi", specifier = ">=1.5.3" },
{ name = "loguru", specifier = ">=0.7.3" },
{ name = "mutagen", specifier = ">=1.47.0" },
@@ -1645,7 +1645,7 @@ test = [
[[package]]
name = "jiuwenswarm-tui"
version = "0.1.11"
-source = { directory = "packages/jiuwenclaw-tui" }
+source = { directory = "packages/jiuwenswarm-tui" }
[[package]]
name = "joserfc"