summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2025-02-09 09:48:32 +0100
committerAetias <aetias@outlook.com>2025-02-09 09:48:32 +0100
commit726c3be443b298a5489bf3418e65626863d4cf02 (patch)
tree712d9557ff71d59d0117d409916a3c1a0f72969c /tools
parent57de07939724a1a1762422c915814ca2f9dc760c (diff)
parent142e17b99d097296027f576a7ac33ae209fa80df (diff)
Merge remote-tracking branch 'zeldaret/main' into decomp-PlayerControl
Diffstat (limited to 'tools')
-rw-r--r--tools/configure.py2
-rw-r--r--tools/setup.py15
2 files changed, 15 insertions, 2 deletions
diff --git a/tools/configure.py b/tools/configure.py
index 7f2c5b26..f3c34311 100644
--- a/tools/configure.py
+++ b/tools/configure.py
@@ -10,7 +10,7 @@ import ninja_syntax
parser = argparse.ArgumentParser(description="Generates build.ninja")
-parser.add_argument('-w', type=str, default="wine", dest="wine", required=False, help="Path to Wine (linux only)")
+parser.add_argument('-w', type=str, default="./wibo", dest="wine", required=False, help="Path to Wine/Wibo (linux only)")
parser.add_argument('version', help='Game version')
args = parser.parse_args()
diff --git a/tools/setup.py b/tools/setup.py
index bc322e1d..f81ca25d 100644
--- a/tools/setup.py
+++ b/tools/setup.py
@@ -3,8 +3,10 @@ import zipfile
import io
from pathlib import Path
import platform
+import stat
DSD_VERSION = 'v0.4.0'
+WIBO_VERSION = '0.6.16'
tools_path = Path(__file__).parent
@@ -30,8 +32,10 @@ match platform.machine().lower():
print('\nInstalling dsd...')
response = requests.get(f'https://github.com/AetiasHax/ds-decomp/releases/download/{DSD_VERSION}/dsd-{system}-{machine}{EXE}')
-with open(root_path / f'dsd{EXE}', 'wb') as f:
+dsd_path = root_path / f'dsd{EXE}'
+with open(dsd_path, 'wb') as f:
f.write(response.content)
+dsd_path.chmod(dsd_path.stat().st_mode | stat.S_IEXEC)
print('\nInstalling toolchain...')
@@ -39,3 +43,12 @@ response = requests.get('http://decomp.aetias.com/files/mwccarm.zip')
zip_file = zipfile.ZipFile(io.BytesIO(response.content))
zip_file.extractall(tools_path)
+
+if system == "linux":
+ print('\nInstalling wibo...')
+ response = requests.get(f'https://github.com/decompals/wibo/releases/download/{WIBO_VERSION}/wibo')
+ wibo_path = root_path / 'wibo'
+ with open(wibo_path, 'wb') as f:
+ f.write(response.content)
+ wibo_path.chmod(wibo_path.stat().st_mode | stat.S_IEXEC)
+