chore: 同步上游 v0.1.1(周期表分区 / 全屏视线 / 跨平台打包)

上游 v0.1.1 重写为新的 git 历史(无共同祖先),因此以 v0.1.1 为基线
重新应用本移植分支的全部改动(不是 merge commit):

- 上游新增:周期表 s/p/d/ds/f 五大分区与自定义改色、33ms 全屏视线轮询、
  窗口表情包图标、electron-builder 跨平台目标、人设提示词 v1.0、跨平台 CI
- 保留本移植:platform.ts 能力降级、KWin 全局光标桥接、scripts/linux 安装脚本、
  Linux/Wayland 文档与致谢
- 合并视线跟随:主进程 33ms 轮询 + KWin 桥接(Wayland 原生窗口上方也有效),
  保留 NaN 复位;点击穿透在 Linux 上不传 forward
- 清理仓库根目录误提交的 Chromium 日志文件
This commit is contained in:
2026-12-02 15:22:29 +09:00
parent a4a579eaf3
commit 845fc73b89
61 changed files with 1031 additions and 94 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
# 开发模式在 Linux 上运行(不安装,直接用仓库里的 out/ + electron)
# scripts/linux/run.sh [electron 参数...]
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
cd "$ROOT"
ELECTRON="node_modules/electron/dist/electron"
if [ ! -x "$ELECTRON" ]; then
echo "[run] 先安装依赖…"
npm install --no-audit --no-fund
if [ ! -x "$ELECTRON" ]; then
ELECTRON_MIRROR="${ELECTRON_MIRROR:-https://npmmirror.com/mirrors/electron/}" \
node node_modules/electron/install.js
fi
fi
[ -f out/main/index.js ] || npm run build
ozone="${SODIUM_PET_OZONE:-auto}"
if [ "$ozone" = "auto" ]; then
if [ -n "${WAYLAND_DISPLAY:-}" ] || [ "${XDG_SESSION_TYPE:-}" = "wayland" ]; then
if [ -n "${DISPLAY:-}" ]; then ozone="x11"; else ozone="wayland"; fi
else
ozone="x11"
fi
fi
if [ "$ozone" = "x11" ] && [ -z "${DISPLAY:-}" ]; then
echo "[run] 没有 DISPLAY,改用原生 Wayland(窗口位置/置顶会受限)" >&2
ozone="wayland"
fi
echo "[run] backend=$ozone"
exec "$ELECTRON" --ozone-platform="$ozone" . "$@"