magiatranslate-client/README.md
segfault-bilibili 2e4f815732
Automatic build with GitHub Actions (#5)
* extract armv7 lib; make build.bat immune to spaced path

* update submodules

1.update dobby to latest:
original commit hash: b0176de574104726bb68dff3b77ee666300fc338
plus compilation error fix

2.update untp to include plistlib fix

* fix build errors

1. define RS_SUCCESS in MagiaClient.cpp,
which was deleted in Dobby f4643b8d14d7cc94516b446ca77d952d0b986d50

2. fix dobby not being statically linked

* terminate build script on error

let build.sh exit on error
let build.bat fail if signing fails

* sign_example.bat: use zipalign and apksigner

* upgrade to apktool 2.7.0; check hash of apktool

* handle fake python3

* control whether to include audiofix

* build.bat: go back to base dir on exit

* update readme

* update suggested ndk path

* build and release with GitHub Actions

* avoid unnecessary rebuild

* remove nodejs dependency

fix Dobby so that we can implement audiofix in MagiaHook again

* automatic build

* update apktool to 2.8.1

* fix max method number exceeded
2023-08-10 20:11:14 +01:00

2.3 KiB

Magia Translate

Discord Chat
This is the client source code for Magia Translate, an English translation modification for Magia Record JP. It is licenced under the GNU General Public License v3.0.

How to build

  • Clone the repository including all submodules git clone --recurse-submodules https://github.com/rayshift/magiatranslate
  • If you don't have Android Studio installed, you may download command line tools only.
  • Downlad NDK (ndk;25.2.9519653), CMake (cmake;3.22.1) and Android SDK Build-Tools (build-tools;33.0.2) with sdkmanager, or just use its GUI to install them if you have Android Studio installed.
  • Install the python requirements in requirements.txt.
  • Move sign_example.bat to sign.bat and add your jarsigner keystore, alias and password.
  • Place your magia record APKs in the apk and armv7apk directory.
  • Run build_release.bat.

Notes:

  • Use build_debug.bat if you want a debug build with debug symbols.
  • If your apk has split ABIs (armeabi-v7a/arm64), you will need to move the other libmadomagi_native.so into build/app/lib/{ARCH}. For example, if the arm7 version of the game is placed in apk/, you need to move the arm8 .so manually, and vice versa.

Contributing

Create a pull request with your contributions. Please do not submit any copyrighted content (images) to this repository.

Ensure you test your changes on both armeabi-v7a and arm64-v8a. Also test an emulator such as Nox. To force install a specific ABI, use something like: adb.exe -s device install --abi arm64-v8a -r -d .\MagiaTranslate_v2.2.6_v110.apk

Further reading