Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build

on:
workflow_run:
workflows: ["Sync with Upstream"] # 2026.1.15: 监听同步上游完成后运行
types:
- completed
workflow_dispatch:
push:
branches-ignore:
Expand All @@ -20,6 +24,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }} # 2026.1.15: 上游完成且成功才运行
steps:
- name: Get Release Info
id: release-info
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/sync_with_upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: Sync with Upstream

on:
schedule:
- cron: '0 0 * * *'
- cron: '0 4 * * *' # 2025.1.15: 北京时间12点自动运行
workflow_dispatch:

permissions:
contents: write # 2026.1.15: 允许写入

jobs:
sync:
runs-on: ubuntu-latest
Expand All @@ -17,8 +20,12 @@ jobs:

- name: Configure Git
run: |
git config user.name 'Shanwer'
git config user.email 'Shanwer@qq.com'
# git config user.name 'Shanwer'
# git config user.email 'Shanwer@qq.com'

# 2026.1.15: 提交用户改为 github-actions[bot]
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'

- name: Add upstream remote
run: git remote add upstream https://github.com/GeyserMC/Geyser.git
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### 下载须知:
这是Geyser的非官方版本,旨在恢复了不安全的mojang账号登录功能以提供Authlib-injector支持,该Repo使用GitHub Action与Upstream每日定时同步以保证源代码最新,但由于Action的限制,不能做到同步代码后自动构建,需要更新可以自行clone编译或者踢我一下来开一个Action的手动构建。我自己也是服主,所以一般基岩协议版本更新的时候我都会在那构建一下。
### 关于本仓库:
这是 Geyser 的非官方版本。本版本恢复了被 Geyser 官方移除的 Mojang 账号登录功能。Mojang 账号登录功能是提供 Authlib-injector 功能所必须的。本仓库使用 GitHub Action 进行自动同步、合并上游,并自动构建。构建于每日正午(12点)生成在 [Build](https://github.com/NiuexDev/tbc-Geyser-with-mojang-login-build/actions/workflows/build.yml) Workflow 中。本仓库的 Mojang 账户登录功能恢复 fork 自仓库 [Shanwer/Geyser](https://github.com/Shanwer/Geyser),特别感谢 Shanwer 大佬。

This is the unofficial version of Geyser. It aims to revert the insecure function of mojang account login which gives you access to inject authlib. This repo uses GitHub Action to keep up-todate with the upstream everyday, however, due to the action's limit, it cannot automatically build after syncing the source code. If you need update, you can clone it and build by yourself or inform me to launch a workflow dispatch. Me myself am a server owner and whenever the bedrock protocol updates I will build it on action.
#### About this repository
This is an unofficial version of Geyser. It restores the Mojang account login feature removed by the official repository, which is required for Authlib-injector support. This repository uses GitHub Actions to automatically sync, merge, and build from upstream daily at 12:00 PM. You can find the latest builds in the [Build](https://github.com/NiuexDev/tbc-Geyser-with-mojang-login-build/actions/workflows/build.yml) workflow. The patch for restoring Mojang login is forked from [Shanwer/Geyser](https://github.com/Shanwer/Geyser). Special thanks to Shanwer.

<img src="https://geysermc.org/img/geyser-1760-860.png" alt="Geyser" width="600"/>

Expand Down