A comic app with multiple sources built with flutter.
About this fork This repository (
WJ-T/PicaComic_ohos) is a HarmonyOS / OHOS adaptation of the upstream project Pacalini/PicaComic. The original project retains Android / desktop support; this fork focuses on keeping the OHOS host project and build scripts up to date.
Forked from nyne, provide extended support & fix, no guaranteed roadmap.
🛈 This fork does not publish official OHOS
.hapreleases yet — please follow the HarmonyOS / OHOS section below to build locally.
An AUR package is packed by Lilinzta:
paru -S pica-comic-bin- Clone the repository
git clone https://github.com/WJ-T/PicaComic_ohos- Install flutter: https://docs.flutter.dev/get-started/install
- Build Application: https://docs.flutter.dev/deployment
An OpenHarmony host project now lives under ohos/. To produce a .hap package:
-
Install the OpenHarmony or HarmonyOS SDK and set
OHOS_SDK_HOME(or runflutter config --ohos-sdk <path>). -
Enable the Flutter OHOS feature and fetch artifacts:
flutter config --enable-ohos flutter precache --ohos ./tool/prepare_ohos_har.sh
-
Build the QuickJS FFI library for HarmonyOS (needed for the in-app JS engine):
./tool/build_quickjs_ohos.sh
The script compiles
libflutter_qjs_plugin.soforarm64-v8aandx86_64with the DevEco / HarmonyOS toolchain. Re-run it whenever you updateflutter_qjs/cxx. -
Build the Hap from the repo root (arm64 by default):
flutter build hap --target-platform=ohos-arm64
The output appears under
build/ohos/outputs/. -
Build a release hap (make sure your
flutter.harcomes from the release engine; debug engines expect JIT artifacts and will crash on AOT packages):rm -f ohos/har/flutter.har ./tool/prepare_ohos_har.sh ohos-arm64-release cd ohos ohpm clean && ohpm install --all cd .. HOS_SDK_HOME=/path/to/HarmonyOS_SDK \ flutter build hap --release --target-platform=ohos-arm64
HOS_SDK_HOMEmust point to a HarmonyOS SDK that contains bothhmscoreandopenharmony; the OpenHarmony SDK bundled with DevEco Studio alone is not enough.- After the build finishes, run
unzip -p ohos/entry/build/default/outputs/default/entry-default-signed.hap module.json | grep buildModeto confirm it isrelease.
-
If you prefer to keep building/running directly inside DevEco Studio/Hvigor instead of
flutter build hap, run before each build:./tool/sync_ohos_flutter_assets.sh [debug|profile|release]
-
Optionally open the
ohosfolder in DevEco Studio 5.0+ to fine-tune signing or launch on a device/emulator.
The ohos/har directory is ignored by git—flutter build hap copies the required flutter.har there automatically. Most pure-Dart plugins work out of the box; native functionality still requires individual OHOS implementations.
Currently, Pica Comic has 5 built-in comic sources:
- picacg
- e-hentai/exhentai
- jmcomic
- hitomi
- htcomic
- nhentai
- Browse manga
- Online reading
- Download manga
- Manage local favorites and network favorites
- Data sync(using webdav)
- Reading history
This project initially started as an unofficial app for picacg and later evolved into an app that supports multiple comic sources.
The image restructuring algorithm used to display jm images is from this project.
The Chinese translation of the manga tags is from this project.