Skip to content

About

Lightweight Chromium wrapper for the Endfield cloud game, built specifically for Steam Deck (SteamOS 3.x / Arch Linux). Native Web Gamepad API passthrough. No reverse engineering, no game data tampering — just a thin shell.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Endfield Cloud Client

专为 Steam Deck 设计的轻量级 Chromium 封装壳,用来游玩鹰角《云·明日方舟:终末地》网页云游戏。

Latest Release License: MIT Platform: Linux Steam Deck Ready Engine: Electron Backend: XWayland

English · 中文


中文

这是什么

一个极简桌面客户端,只做一件事:把官方云游戏网页 endfield.hypergryph.com/cloud 包成原生窗口,在 Steam Deck 上像玩原生游戏一样点开即玩。

它不做什么 —— 本项目明确不包含、也不会加入以下内容:

  • ❌ 不抓包、不解析、不篡改游戏数据流
  • ❌ 不逆向、不修改、不绕过鹰角登录 / 滑块 / 协议校验
  • ❌ 不模拟、不伪造输入源
  • ❌ 不外挂、不加速、不修改云游戏串流协议

它只是壳。Chromium 内核 + 系统原生手柄 + 持久化 Cookie。所有游戏数据、所有登录校验、所有协议交互均经官方云游戏网页处理。

核心特性

特性 说明
Chromium 内核 Electron 33,加载鹰角官方云游戏网页
Steam Deck 原生分辨率 默认 1280×800(无窗口状态时取主显示器 75%),外接显示器自动适配
无边框全屏 F11 切换 / ESC 退出,全屏时窗口不黑边
3D 鼠标 / 视角控制 转视角时光标被真正锁在窗口内(见下方「3D 鼠标」章节)
原生 Web Gamepad API 透传 Steam Deck / Xbox / DS4 / DualSense 全支持,不做键鼠模拟映射
持久 Cookie 会话 记住鹰角账号登录状态,不存储任何明文凭据
F12 临时禁手柄 滑块验证时关闭手柄,用触控板 / 鼠标操作,验证完恢复
XWayland 渲染后端 桌面模式与掌机模式统一走 XWayland,GPU/Vulkan + VA-API 硬件加速
Steam Input 兼容 加进 Steam 库后,Steam 控制器布局完整叠加生效
轻量 关闭扩展、后台、同步、翻译、域名可靠性等无关模块,降低 CPU/内存占用

3D 鼠标(视角控制)

云终末地的网页端在转视角时需要指针锁定(Pointer Lock API),否则系统光标会跑出画面, 视角随即失效(页面会收到 mouseleave 并主动 blur)。

本客户端保证该功能可用:

  • 光标真正锁在窗口内 —— 走 XWayland 的 XGrabPointer 硬约束,不是"隐藏光标"那种软锁
  • 窗口内鼠标操作不受影响 —— 点击、滚轮、UI 交互全部照常;不使用 setIgnoreMouseEvents (那会吞掉点击)
  • ESC 始终可退出 —— 锁定状态下按 ESC 释放光标(不会退出全屏);未锁定时 ESC 退出全屏
  • 不会卡住光标 —— 浏览器/游戏强制解锁的按键不会被客户端吞掉

兼容性垫片说明:官方网页端调用 requestPointerLock({ unadjustedMovement: true }), 而 unadjustedMovement(原始鼠标输入)在 Chromium 上只有 Windows / macOS 支持, Linux 上会直接抛 NotSupportedError,且官方页面没有 fallback —— 于是指针永远锁不上。 本项目在浏览器层注入一个兼容垫片(src/shim.js),在调用时去掉该平台不支持的可选参数。 这属于浏览器平台兼容补丁(性质同 User-Agent 覆盖 / polyfill), 不修改官方页面代码、不绕过任何登录或校验、不触碰游戏数据与协议。

快速开始

Steam Deck 用户(桌面模式)

# 1. 在桌面模式开 Konsole,克隆项目
cd ~
git clone https://github.com/RoderickEzreal/endfield-cloud-steamdeck.git
cd endfield-cloud-steamdeck

# 2. 一键安装依赖(runtime + dev + npm + udev 规则)
./scripts/install-deps-arch.sh

# 3. 打包 AppImage(约 5-10 分钟,首次会下载 Electron 二进制)
#    项目自带 .npmrc(include=dev),不用管系统里有没有 omit=dev
./scripts/build-appimage.sh

# 4. 装到 ~/apps/
mkdir -p ~/apps
cp dist/endfield-cloud-client-*.AppImage ~/apps/endfield-cloud-client.AppImage
chmod +x ~/apps/endfield-cloud-client.AppImage

# 5. 用 wrapper 启动(自动适配桌面/掌机模式)
./scripts/launch-steamdeck.sh ~/apps/endfield-cloud-client.AppImage
# 或拷到 ~/bin 后(默认读 $HOME/apps/...):
cp scripts/launch-steamdeck.sh ~/bin/endfield-cloud
chmod +x ~/bin/endfield-cloud
~/bin/endfield-cloud

Steam Deck 用户(下载预编译版本)

# 下载最新版本
mkdir -p ~/apps
cd ~/apps
APPIMAGE_URL=$(curl -sL https://api.github.com/repos/RoderickEzreal/endfield-cloud-steamdeck/releases/latest \
  | grep browser_download_url | grep AppImage | cut -d '"' -f 4)
curl -L -o endfield-cloud-client.AppImage "$APPIMAGE_URL"
chmod +x endfield-cloud-client.AppImage

# 启动(直接跑;客户端内部固定走 XWayland)
./endfield-cloud-client.AppImage

快捷键

按键 行为
F11 无边框全屏切换
ESC 退出全屏(3D 鼠标锁定中时改为释放光标)
F5 刷新页面(忽略缓存)
F12 临时开关手柄输入
Ctrl+Q / Cmd+Q 退出应用
Alt+F4 退出应用

CLI 参数

endfield-cloud-client --url=https://endfield.hypergryph.com/cloud
endfield-cloud-client --window-size=1920x1080
endfield-cloud-client --fullscreen
endfield-cloud-client --windowed                   # 强制窗口化(覆盖记忆)
endfield-cloud-client --window-mode=fullscreen     # auto / fullscreen / windowed

添加到 Steam 库(可选)

让游戏模式(Gamescope)能像原生游戏一样启动:

  1. Steam → 游戏 → 在库中添加非 Steam 的游戏
  2. 浏览 → ~/apps/endfield-cloud-client.AppImage
  3. 添加

详细 Steam Input 手柄布局配置见 docs/steam-input-config.md。

💡 wrapper 里的 --no-sandbox 来自 Chromium SUID helper 与 AppImage FUSE namespace 在 SteamOS 内核下的冲突,不影响安全(见 src/main.js 里 contextIsolation: true / nodeIntegration: false)。

文档

文档 内容
docs/steam-deck-setup.md Steam Deck 完整安装流程
docs/steam-library-add.md 加进 Steam 库的多种方法
docs/steam-input-config.md Steam Input 手柄布局配置
docs/troubleshooting.md 故障排查(手柄 / GPU / 网页)

兼容性

平台 状态
SteamOS 3.5+ (Steam Deck 原生) ✅ 验证通过
Arch Linux 2024+ (Wayland 桌面) ✅ 验证通过(经 XWayland)
Manjaro (Wayland 桌面) ✅ 应该可用(未实测)
纯 X11 桌面(无 Wayland) ✅ 可用
macOS / Windows ❌ 不在支持范围(Steam Deck + Linux 项目)

x86_64 only。

为什么统一走 XWayland? 两条硬理由:

  1. 掌机模式:Gamescope 只能合成 X11/XWayland 客户端,原生 Wayland surface 渲染不出来;
  2. 3D 鼠标:Electron 在 v40.5.0 之前没有实现原生 Wayland 的指针锁定 (Chromium 的实现写在 Chrome 专用类里,Electron 用不到),只能退回"软件锁" ——光标被隐藏但仍能跑出窗口。XWayland 走的是真正的 XGrabPointer 硬约束。

因此客户端默认 --ozone-platform-hint=x11,桌面模式与掌机模式行为一致。

开发

从源码运行(开发者)

git clone https://github.com/RoderickEzreal/endfield-cloud-steamdeck.git
cd endfield-cloud-steamdeck
npm install
npm start              # 直接跑源码,不打包
npm run start:debug    # 调试日志

目录结构

endfield-cloud-steamdeck/
├── package.json              # Electron + electron-builder 配置
├── .npmrc                    # 强制安装 devDependencies(绕开部分系统的 omit=dev)
├── src/
│   ├── main.js               # 主进程:窗口 / 快捷键 / 生命周期 / 垫片注入 / 焦点
│   ├── preload.js            # 提前注入 main world 垫片 + 转发指针锁定状态
│   └── shim.js               # main world 兼容垫片(Pointer Lock / F12 静音)
├── resources/
│   ├── icon.svg              # 图标源文件
│   └── icons/                # 自动生成的 PNG(electron-builder 用)
├── scripts/
│   ├── install-deps-arch.sh  # Arch 依赖一键装
│   ├── build-appimage.sh     # AppImage 打包
│   ├── launch-steamdeck.sh   # Steam Deck 启动 wrapper(自动探测会话)
│   └── steam-add.sh          # 加进 Steam 库的 VDF 注入
├── test/
│   └── pointerlock-probe.html # 指针锁定自测页(?selftest=1 自动跑)
└── docs/                     # 详细文档

技术栈

  • Electron 33.4.11 — Chromium 内核
  • electron-builder 25.1.8 — AppImage 打包
  • Chromium 130 — 渲染引擎
  • Node 20 — 仅打包期使用(运行时无 Node API 暴露)

安全与合规

本项目所有游戏数据流、所有登录校验、所有协议交互均经官方云游戏网页处理。本项目:

  • ✅ 不收集任何用户数据
  • ✅ 不向任何第三方服务器发送游戏相关信息
  • ✅ 不保存用户名 / 密码 / Token(仅存官方 Cookie,标准浏览器机制)
  • ✅ 不读取或修改游戏运行时数据
  • ✅ 不注入、不改写官方页面的业务逻辑 —— src/shim.js 只做浏览器平台兼容: 去掉该平台不支持的可选参数、转发浏览器原生事件,不改任何游戏逻辑

如果你认为本项目违反了鹰角官方用户协议,请不要使用。

License

MIT — 但请遵守上述安全与合规约束。


English

What is this

A minimal desktop client that wraps the official Endfield cloud game webpage into a native window, optimized for Steam Deck.

It is strictly a thin shell:

  • ❌ No reverse engineering
  • ❌ No packet capture / data tampering
  • ❌ No login / captcha / protocol bypass
  • ❌ No input simulation — gamepad events flow through the standard Web Gamepad API
  • ❌ No cheats, hacks, or stream modifications

Features

  • Chromium kernel (Electron 33)
  • Steam Deck native resolution — 1280×800 default, auto-detects external displays
  • Borderless fullscreen — F11 toggle, ESC exit
  • 3D mouse / camera control — the pointer is genuinely confined to the window while you look around
  • Native Web Gamepad API passthrough — Steam Deck / Xbox / DS4 / DualSense
  • Persistent cookie sessions — no plaintext credentials stored
  • F12 toggles gamepad for slider verification
  • XWayland backend — same code path on desktop and in gaming mode; Vulkan + VA-API acceleration
  • Steam Input compatible — add to Steam library for full overlay support

3D mouse (camera control)

The official page locks the pointer (Pointer Lock API) when you rotate the camera. Without that lock the OS cursor escapes the video element, the page sees mouseleave and blurs the session — the camera stops responding.

This client makes it work:

  • The pointer is really confined — via XWayland's XGrabPointer, not a "hide the cursor" soft lock
  • Normal mouse interaction still works — clicks, wheel and UI behave normally; setIgnoreMouseEvents is deliberately not used (it would swallow clicks)
  • ESC always gets you out — releases the pointer when locked, exits fullscreen otherwise
  • The cursor can never get stuck — the browser/game's forced unlock is never swallowed

Compatibility shim: the official page calls requestPointerLock({ unadjustedMovement: true }), but unadjustedMovement (raw mouse input) is only supported on Windows/macOS in Chromium — on Linux it rejects with NotSupportedError, and the page has no fallback, so the pointer could never be locked. This project injects a browser-level shim (src/shim.js) that drops the unsupported optional argument. It is a platform compatibility patch (like a User-Agent override / polyfill) — it does not modify the official page, bypass any login or verification, or touch game data or protocols.

Quick Start (Steam Deck)

# Desktop mode, in Konsole:
git clone https://github.com/RoderickEzreal/endfield-cloud-steamdeck.git
cd endfield-cloud-steamdeck
./scripts/install-deps-arch.sh
./scripts/build-appimage.sh
mkdir -p ~/apps
cp dist/endfield-cloud-client-*.AppImage ~/apps/endfield-cloud-client.AppImage
chmod +x ~/apps/endfield-cloud-client.AppImage

# Launch via wrapper (auto-adapts to desktop / gaming mode):
./scripts/launch-steamdeck.sh ~/apps/endfield-cloud-client.AppImage

Or download a pre-built AppImage from the latest release and run it directly.

Shortcuts

Key Action
F11 Toggle borderless fullscreen
ESC Exit fullscreen (releases the pointer instead while 3D mouse is locked)
F5 Reload page (ignore cache)
F12 Toggle gamepad input
Ctrl+Q / Cmd+Q Quit
Alt+F4 Quit

CLI Options

endfield-cloud-client --url=https://endfield.hypergryph.com/cloud
endfield-cloud-client --window-size=1920x1080
endfield-cloud-client --fullscreen
endfield-cloud-client --windowed                   # force windowed (overrides memory)
endfield-cloud-client --window-mode=fullscreen     # auto / fullscreen / windowed

Compatibility

Platform Status
SteamOS 3.5+ (Steam Deck) ✅ Verified
Arch Linux 2024+ (Wayland desktop) ✅ Verified (through XWayland)
Manjaro (Wayland desktop) ✅ Should work (untested)
Pure X11 desktop (no Wayland) ✅ Works
macOS / Windows ❌ Out of scope (Steam Deck + Linux project)

x86_64 only.

Why XWayland everywhere? Two hard reasons:

  1. Gaming mode — Gamescope only composites X11/XWayland clients; native Wayland surfaces do not render.
  2. 3D mouse — Electron did not implement native-Wayland pointer lock before v40.5.0 (Chromium's implementation lives in a Chrome-only class), so it falls back to a "software lock" that still lets the cursor escape. XWayland uses a real XGrabPointer instead.

The client therefore defaults to --ozone-platform-hint=x11, giving identical behaviour in desktop and gaming mode.

Development

git clone https://github.com/RoderickEzreal/endfield-cloud-steamdeck.git
cd endfield-cloud-steamdeck
npm install
npm start              # run from source, no packaging
npm run start:debug    # with verbose logging
npm run build:linux    # produce AppImage in dist/

Documentation

Document Content
docs/steam-deck-setup.md Full Steam Deck install walkthrough
docs/steam-library-add.md Adding to Steam library (multiple methods)
docs/steam-input-config.md Steam Input gamepad layout config
docs/troubleshooting.md Troubleshooting (gamepad / GPU / webpage)

License

MIT — see LICENSE. Please respect the security & compliance constraints above.

About

Lightweight Chromium wrapper for the Endfield cloud game, built specifically for Steam Deck (SteamOS 3.x / Arch Linux). Native Web Gamepad API passthrough. No reverse engineering, no game data tampering — just a thin shell.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages