Squashed commit for update 1.3.7
This commit is contained in:
19
build_patch/patch.py
Normal file
19
build_patch/patch.py
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
Reference in New Issue
Block a user