Exclude Files from Web Build

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
User avatar
Tess
Regular
Posts: 59
Joined: Thu Aug 04, 2022 3:43 pm
Projects: The Songbird Guild
Organization: Yurisoft
Github: wainwt2
Discord: Tess#7782
Contact:

Exclude Files from Web Build

#1 Post by Tess »

We have a private itch page hosting a web build that the non-programmers in our group use to play the most recent version of the game. One of the extensions we're using doesn't seem to work with web builds though, so I'm trying to exclude those folders in that type of build. Really struggling to get it to work though.

So far I have this, but it doesn't do the trick:

Code: Select all

#Tells Ren'Py to only include the Animalese and pydub folder contents in windows, mac, and linux builds
init python:
	build.classify("Extensions/Animalese/**","windows mac linux")
	build.classify("pydub/**","windows mac linux")

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3792
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Exclude Files from Web Build

#2 Post by Imperf3kt »

set them to None while building Web builds

Code: Select all

#Uncomment to not include the Animalese and pydub folder contents in web builds
    build.classify("Extensions/Animalese/**","None")
    build.classify("pydub/**","None")
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users