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 »

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: 16088
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 »

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
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 »

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: 16088
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 »

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
Software > Drama • https://www.patreon.com/renpytom

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 »

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: 16088
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 »

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
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Vamp-sama