Page 1 of 1

Building distribution options from command line

Posted: Sat Jul 28, 2018 7:07 pm
by kivik
Sorry if I'm being dumb and missing something. I found this thread that is a good starting point for me, but I need help to figure out the rest:

viewtopic.php?t=24850

The command renpy.sh launcher distribute /path/to/mygame builds 5 versions for me currently: linux, mac, market, pc and win, in the folder [renpy projects]/[game_name]-[config.version]-dists

I have two questions basically:

1 - is it possible to only build specific distros, e.g. just pc, mac and linux?
2 - can I specify where the dists are placed?

I'm experimenting with GitLab and its pipelines, and if the two things above are possible, it'd save me creating a bash file to move, rename and delete files and folders. My end goal is to push commits that triggers a pipeline:

- pull / sync images files from separate location (probably google drive). I'm separating the images folder to save bandwidth when committing.
- build distributions for the 3 versions: mac, pc, linux
- upload the distributions to google drive

Re: Building distribution options from command line

Posted: Sun Nov 11, 2018 7:46 pm
by Hijikata
Not sure if it's still relevant for you, but I've been looking into a similar problem, and decided to share my findings.
I skimmed through some Ren'Py launcher code to figured out the proper args for this command, but you can in fact just run it with --help argument to get the full list of commands.

Code: Select all

distribute command arguments:
  --destination DESTINATION, --dest DESTINATION
                        The directory where the packaged files should be
                        placed.
  --packagedest PACKAGEDEST
                        If given, gives the full path to the package file,
                        without extensions.
  --no-update           Prevents updates from being built.
  --package PACKAGE     If given, a package to build. Defaults to building all
                        packages.
  --no-archive          If given, files will not be added to archives.
  project               The path to the project directory.

Re: Building distribution options from command line

Posted: Wed Nov 06, 2019 2:18 pm
by morganw
Did anyone ever work out the commands to build a subset of packages?
This builds everything into 'D:\buildtest':

Code: Select all

renpy launcher distribute --dest D:\buildtest C:\path\to\game
This seems to do nothing, but also doesn't log any errors:

Code: Select all

renpy launcher distribute --dest D:\buildtest --package pc C:\path\to\game
I couldn't see that the package names or how to pass them is documented anywhere.