diff options
| author | Aetias <aetias@outlook.com> | 2025-02-09 09:48:32 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2025-02-09 09:48:32 +0100 |
| commit | 726c3be443b298a5489bf3418e65626863d4cf02 (patch) | |
| tree | 712d9557ff71d59d0117d409916a3c1a0f72969c /tools/setup.py | |
| parent | 57de07939724a1a1762422c915814ca2f9dc760c (diff) | |
| parent | 142e17b99d097296027f576a7ac33ae209fa80df (diff) | |
Merge remote-tracking branch 'zeldaret/main' into decomp-PlayerControl
Diffstat (limited to 'tools/setup.py')
| -rw-r--r-- | tools/setup.py | 15 |
1 files changed, 14 insertions, 1 deletions
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) + |
