[SOLVED] Can't build for android from CLI (doc misunderstanding)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Amethysts
Regular
Posts: 40
Joined: Thu Aug 23, 2018 1:17 pm
Projects: Coalescence
Skype: amethysts-studio
itch: amethysts
Contact:

[SOLVED] Can't build for android from CLI (doc misunderstanding)

#1 Post by Amethysts » Thu Sep 24, 2020 1:50 pm

I really do not understand renpy CLI. It doesn't work as descibed in the '--help' page...

Commands like

Code: Select all

renpy.sh /path/to/game android_build
always fail with the error "renpy.py: error: Command android_build is unknown"

But it is noticed in the help page that it should be possible... Proof here :
image

Moreover, some commands work and aren't displayed in the help page :
image

I'm just trying to build for android from the CLI, is it possible ?
Last edited by Amethysts on Sun Jan 24, 2021 4:33 pm, edited 1 time in total.

User avatar
Amethysts
Regular
Posts: 40
Joined: Thu Aug 23, 2018 1:17 pm
Projects: Coalescence
Skype: amethysts-studio
itch: amethysts
Contact:

Re: Can't build for android from CLI (because of a doc issue?)

#2 Post by Amethysts » Sun Jan 24, 2021 4:32 pm

Okay so the answer is just to run

Code: Select all

./renpy.sh launcher android_build ../your_game_folder assembleRelease --dest ../build_folder
from the renpy installation folder, even if the CLI says

Code: Select all

usage: renpy.py [--savedir DIRECTORY] [--trace LEVEL] [--version] [--compile]
                [--keep-orphan-rpyc] [--json-dump FILE] [--json-dump-private]
                [--json-dump-common] [-h] [--profile-display]
                [--debug-image-cache] [--warp WARP]
                [basedir] [command]

The Ren'Py visual novel engine.

positional arguments:
  basedir              The base directory containing of the project to run.
                       This defaults to the directory containing the Ren'Py
                       executable.
  command              The command to execute. Available commands are:
                       add_from, android_build, compile, dialogue, director,
                       distribute, extract_strings, generate_gui,
                       get_projects_directory, gui_images, ios_create,
                       ios_populate, lint, merge_strings, quit, rmpersistent,
                       run, set_projects_directory, test, translate, update.
                       Defaults to 'run'.
I thought I have to run

Code: Select all

./renpy.sh /path/to/game android_build
because of the way the doc was written.

Post Reply

Who is online

Users browsing this forum: No registered users