mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-02 06:46:34 +01:00
Remove tasks.patch
This commit is contained in:
parent
ee8f5b04b7
commit
79dff8fcc9
3 changed files with 0 additions and 49 deletions
|
@ -1,29 +0,0 @@
|
|||
233a234
|
||||
> import os # @UnresolvedImport
|
||||
236a238,263
|
||||
>
|
||||
> # MODS STUFF
|
||||
> APP_ID = 1895350
|
||||
>
|
||||
> if not renpy.android:
|
||||
> try: # Android will try to run this for some reason and fail
|
||||
> mod_paths = [
|
||||
> f"../../workshop/content/{APP_ID}/",
|
||||
> f"/Users/{os.getlogin()}/Library/Application Support/Steam/steamapps/workshop/content/{APP_ID}/",
|
||||
> os.path.expanduser(f"~/Library/Application Support/Steam/steamapps/workshop/content/{APP_ID}/")
|
||||
> ]
|
||||
> except:
|
||||
> mod_paths = []
|
||||
>
|
||||
> new_paths = []
|
||||
> for path in mod_paths:
|
||||
> try:
|
||||
> if os.path.exists(path):
|
||||
> for name in os.listdir(path):
|
||||
> full_path = os.path.join(path, name)
|
||||
> if os.path.isdir(full_path):
|
||||
> new_paths.append(full_path)
|
||||
> except Exception as e:
|
||||
> renpy.display.log.write(f"Error while adding mod search paths: {e}")
|
||||
>
|
||||
> searchpath += new_paths
|
|
@ -1,19 +0,0 @@
|
|||
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
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
[options]
|
||||
clear_output_dir = false # whether to clear the output directory on startup
|
||||
task_dir = "./build_patch/"
|
||||
|
||||
[renutil]
|
||||
version = "8.3.0" # the Ren'Py version to use (required)
|
||||
|
|
Loading…
Reference in a new issue