diff options
| author | Aetias <144526980+AetiasHax@users.noreply.github.com> | 2025-02-08 13:08:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-08 13:08:51 +0100 |
| commit | 142e17b99d097296027f576a7ac33ae209fa80df (patch) | |
| tree | 93f53b01c3ee14f1957e9c75c76a398ff5604e9e /tools/setup.py | |
| parent | 344163309c0febd621c4e9b208ed82d54c0f4a61 (diff) | |
| parent | 2e6d7cf10aa2df0e02953aeb93976c0872f3e20b (diff) | |
Merge pull request #68 from AetiasHax/cleanup
Cleanup + improved Linux setup
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) + |
