fix
Build Futon with Niadd patch / Build Futon Niadd debug APK (push) Failing after 10m25s

This commit is contained in:
gandc committed 2026-08-10 01:22:32 +03:00
1 parent 897874169d
commit 008379a09a
2 files changed
+178

No files matched your search

+28
View File
@@ -7,6 +7,7 @@ on:
paths:
- ".gitea/workflows/build.yml"
- "scripts/**"
- "patches/**"
workflow_dispatch:
env:
@@ -57,6 +58,7 @@ jobs:
test -f scripts/patch_futon_niadd.py
test -f scripts/patch_ninemanga_niadd.py
test -f patches/futon-niadd-range-download.patch
python3 -m py_compile \
scripts/patch_futon_niadd.py \
@@ -148,6 +150,32 @@ jobs:
git -C work/Futon diff --check
- name: Apply Niadd range-download workaround
shell: bash
run: |
set -euxo pipefail
patch --dry-run -p1 \
-d work/Futon \
< patches/futon-niadd-range-download.patch
patch -p1 \
-d work/Futon \
< patches/futon-niadd-range-download.patch
PAGE_LOADER="work/Futon/app/src/main/kotlin/io/github/landwarderer/futon/reader/domain/PageLoader.kt"
grep -F 'NIADD_RANGE_CHUNK_SIZE = 16L * 1024L' \
"${PAGE_LOADER}"
grep -F 'MangaParserSource.NINEMANGA_RU' \
"${PAGE_LOADER}"
grep -F '.header("Range", "bytes=$offset-$requestedEnd")' \
"${PAGE_LOADER}"
git -C work/Futon diff --check
- name: Apply Niadd parser modifications
shell: bash
run: |