Skip to content
Open
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
7 changes: 3 additions & 4 deletions .github/workflows/Get_Epic_Game.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ jobs:
- name: Clone Claimer Repository
uses: actions/checkout@v2
with:
repository: lingsamuel/epicgames-freebies-claimer
ref: 'aa21c57d0ef19948a4f2864207173c86d5c0ffb7'
repository: Revadike/epicgames-freebies-claimer
path: workdir

# 在 'Settings' - 'Secrets' 添加 EMAIL (你的 Epic 邮箱),PASSWD (你的 Epic 密码),SECRET(二步验证 Secret)
- name: Get Gifts
run: |
cp auths/device_auths.json workdir/data/device_auths.json
cd workdir
npm install
node claimer '${{ secrets.EMAIL }}' '${{ secrets.PASSWD }}' 0 '${{ secrets.SECRET }}' > games.info
node claimer > games.info

- name: Edit Games.info
if: always()
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

# 配置方法

在 GitHub 的 'Settings' - 'Secrets' 添加 EMAIL (你的 Epic 邮箱),PASSWD (你的 Epic 密码),SECRET(二步验证 Secret)
1. 使用 [DeviceAuthGenerator](https://github.com/jackblk/DeviceAuthGenerator/releases) 登录 Epic 并生成 `device_auths.json`

二步验证的 Secret 在 EpicGames 启用二步验证、扫描二维码的时候会显示。如果你已经启用了,那么关闭再启用即可看到
2. 由于 `device_auths.json` 包含用户个人信息,建议 fork 本项目后更改为 private repository ( [如何更改?](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility) )

并且,修改 .github/workflows/Get_Epic_Game.yml 文件,去掉开头的 `#` 号,如下:
2. 将 `device_auths.json` 放置到 [`auths`](./auths) 文件夹下。

3. 修改 .github/workflows/Get_Epic_Game.yml 文件,去掉开头的 `#` 号,如下:

```yaml
on:
Expand All @@ -29,4 +31,6 @@ on:

- GitHub Actions 的 Schedule 触发不精确,可能有约 5~10 分钟的延迟。

- 重复的 Lego Batman Trilogy 领取提示,更新 Claimer 脚本后修复了。
- 重复的 Lego Batman Trilogy 领取提示,更新 Claimer 脚本后修复了。

- 项目基于 [Revadike 的 epicgames-freebies-claimer V1.5.7](https://github.com/Revadike/epicgames-freebies-claimer/releases/tag/V1.5.7) 。2FA 由 [DeviceAuthGenerator](https://github.com/jackblk/DeviceAuthGenerator/releases) 支持。
Empty file added auths/.gitkeep
Empty file.