Skip to content

Cannot build on windows using wsl. #82

@TheMispeled

Description

@TheMispeled

The apk file gets immediately deleted after building everything, and nothing can be done about it. Made sure to install deps and place the apk file correctly. Logs, if hopefuly the devs sees this :


=====================================
  GameHub Lite Patcher v1.0
=====================================

==> Checking dependencies...
[WARN] zipalign not found - APK may not be optimized
[OK] All dependencies found
==> Verifying source APK...
[OK] Source APK found: GameHub-5.1.0.apk
         MD5: 42db81116bf3c74e52e6f6afb4ec9f91
[OK] MD5 checksum verified.
==> Setting up signing keystore...
Generating 2,048 bit RSA key pair and self-signed certificate (SHA384withRSA) with a validity of 10,000 days
        for: CN=GameHub Lite, OU=Community, O=GameHub Lite, L=Unknown, ST=Unknown, C=XX
[Storing /home/newiie/projects/keystore/debug.keystore]
[OK] Created debug keystore
==> Decompiling APK (this may take a few minutes)...
I: Baksmaling classes9.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
[OK] APK decompiled to /home/newiie/projects/work/decompiled
[OK] Version: 5.1.0
==> Removing telemetry and unnecessary files...
[OK] Removed 13268 of 13268 files/directories
==> Applying code patches...
6 out of 15 hunks FAILED -- saving rejects to file /home/newiie/projects/work/decompiled/AndroidManifest.xml.rej
[WARN] Failed to patch: AndroidManifest.xml
2 out of 2 hunks FAILED -- saving rejects to file /home/newiie/projects/work/decompiled/apktool.yml.rej
[WARN] Failed to patch: apktool.yml
1 out of 1 hunk FAILED -- saving rejects to file /home/newiie/projects/work/decompiled/res/layout/llauncher_dialog_fragment_device_pop.xml.rej
[WARN] Failed to patch: res/layout/llauncher_dialog_fragment_device_pop.xml
1 out of 1 hunk FAILED -- saving rejects to file /home/newiie/projects/work/decompiled/res/layout/llauncher_game_sir_box_big_logo.xml.rej
[WARN] Failed to patch: res/layout/llauncher_game_sir_box_big_logo.xml
7 out of 24 hunks FAILED -- saving rejects to file /home/newiie/projects/work/decompiled/res/values/public.xml.rej
[WARN] Failed to patch: res/values/public.xml
1 out of 1 hunk FAILED -- saving rejects to file /home/newiie/projects/work/decompiled/res/xml/locales_config.xml.rej
[WARN] Failed to patch: res/xml/locales_config.xml
[WARN] Applied 214 patches, 6 failed
==> Applying binary replacements...
[OK] Replaced 6 binary files
==> Adding new files...
[OK] Added 2859 new files
==> Rebuilding APK...
W: /home/newiie/projects/work/decompiled/res/values/public.xml:15489: Originally defined here.
W:
W: /home/newiie/projects/work/decompiled/res/values/public.xml.rej:1: error: Error parsing XML: syntax error
W:
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [aapt, p, --min-sdk-version, 26, --target-sdk-version, 34, --version-code, 60, --version-name, 5.1.0, --no-version-vectors, -F, /tmp/APKTOOL13674010139705359956.tmp, -0, resources.arsc, -0, webm, -0, mp4, -0, png, -0, assets/dexopt/baseline.prof, -0, assets/dexopt/baseline.profm, -0, mp3, -0, webp, -0, gif, -0, jpg, -0, wav, -0, arsc, -I, /home/newiie/.local/share/apktool/framework/1.apk, -S, /home/newiie/projects/work/decompiled/res, -M, /home/newiie/projects/work/decompiled/AndroidManifest.xml]
[OK] APK rebuilt
==> Aligning APK...
[WARN] zipalign not found, skipping alignment
==> Signing APK -> GameHub-Lite.apk
jarsigner: unable to open jar file: /home/newiie/projects/work/unsigned.apk
[OK] APK signed: GameHub-Lite.apk
==> Cleaning up...
[OK] Cleanup complete

========================================
  GameHub Lite build complete!
========================================

Output APK: /home/newiie/projects/output/GameHub-Lite.apk
du: cannot access '/home/newiie/projects/output/GameHub-Lite.apk': No such file or directory
Size:

Install on your device:
  adb install /home/newiie/projects/output/GameHub-Lite.apk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions