Building distribution options from command line

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
kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Building distribution options from command line

#1 Post 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

Hijikata
Newbie
Posts: 17
Joined: Mon Oct 02, 2017 9:00 am
Completed: Lucy Got Problems
Projects: CrocApoca!!
Organization: Flat Chest
itch: flatchest
Contact:

Re: Building distribution options from command line

#2 Post 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.
Image Image Follow us on Twitter
Resident hacker cat.

morganw
Regular
Posts: 51
Joined: Fri Nov 20, 2015 7:00 pm
Contact:

Re: Building distribution options from command line

#3 Post 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.

Post Reply

Who is online

Users browsing this forum: Google [Bot]