Building from a 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
DarkMorford
Newbie
Posts: 9
Joined: Thu May 09, 2013 11:09 pm
Contact:

Building from a command line?

#1 Post by DarkMorford » Sat Jan 18, 2014 1:43 am

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?

User avatar
PyTom
Ren'Py Creator
Posts: 15497
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Building from a command line?

#2 Post by PyTom » Sat Jan 18, 2014 2:09 am

Yes. Run the command:

renpy.sh launcher distribute /path/to/mygame
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

DarkMorford
Newbie
Posts: 9
Joined: Thu May 09, 2013 11:09 pm
Contact:

Re: Building from a command line?

#3 Post by DarkMorford » Sat Jan 18, 2014 3:00 am

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?

User avatar
PyTom
Ren'Py Creator
Posts: 15497
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Building from a command line?

#4 Post by PyTom » Sat Jan 18, 2014 11:51 am

These are safe to ignore.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Enerccio
Miko-Class Veteran
Posts: 616
Joined: Thu Oct 26, 2006 4:23 pm
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
Location: Slovakia, Kosice
Contact:

Re: Building from a command line?

#5 Post by Enerccio » Sat Nov 26, 2016 3:43 am

is there a way to do compile rpy to rpyc (and py to pyc) and then disable including rpy (py) files from terminal build?
Image
http://www.bishojo.tk is technically ONLINE!
Songs of Araiah promo: http://www.youtube.com/watch?v=CalchucuoDU

User avatar
PyTom
Ren'Py Creator
Posts: 15497
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Building from a command line?

#6 Post by PyTom » Sun Nov 27, 2016 12:37 am

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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Google [Bot]