mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-08 18:28:49 +01:00
19 lines
507 B
Python
19 lines
507 B
Python
class PatchTask:
|
|
def __init__(self, config, input_dir, output_dir):
|
|
self.config = config
|
|
self.input_dir = input_dir
|
|
self.output_dir = output_dir
|
|
|
|
def pre_build(self):
|
|
import subprocess
|
|
print("================Initiating patching==================")
|
|
|
|
try:
|
|
subprocess.run(["patch", f"/tmp/cache/{self.config['ver']}/renpy.py", "./build_patch/patch.diff"])
|
|
except Exception as e:
|
|
print(e)
|
|
raise e
|
|
print("================File Patched==================")
|
|
|
|
def post_build(self):
|
|
pass
|