Page 1 of 1

Building from a command line?

Posted: Sat Jan 18, 2014 1:43 am
by DarkMorford
I want to set up a build server for my project (using Jenkins) so the various devs and testers can get the latest version on demand. Obviously, I can't use the Ren'Py Launcher and its handy Build Distributions button since the server is headless and unattended. Is there a way to kick off builds of the various packages (Windows, Mac, Linux, etc.) from the shell?

Re: Building from a command line?

Posted: Sat Jan 18, 2014 2:09 am
by PyTom
Yes. Run the command:

renpy.sh launcher distribute /path/to/mygame

Re: Building from a command line?

Posted: Sat Jan 18, 2014 3:00 am
by DarkMorford
Ah, excellent. Though that builds all the packages in one shot; I'd like to be able to do one at a time depending on who's requesting it.

Also, it spit out a couple lines that look like errors to me (repeated twice more often than not), but it continued to do the build anyway:

Code: Select all

Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Do I need to set that environment variable before calling the script, or is this safe to ignore?

Re: Building from a command line?

Posted: Sat Jan 18, 2014 11:51 am
by PyTom
These are safe to ignore.

Re: Building from a command line?

Posted: Sat Nov 26, 2016 3:43 am
by Enerccio
is there a way to do compile rpy to rpyc (and py to pyc) and then disable including rpy (py) files from terminal build?

Re: Building from a command line?

Posted: Sun Nov 27, 2016 12:37 am
by PyTom
Just do the usual build.classify rule. It works from the launcher and the command line the same way - and Ren'Py will compile the .rpycs before each build, if required.