diff options
| author | Aetias <aetias@outlook.com> | 2025-02-06 18:07:21 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2025-02-06 18:07:21 +0100 |
| commit | de6431687dcf257063cc91745e189f93997f8d01 (patch) | |
| tree | 946199ea16c24d17dd28f45cf9e8d8a5e1c16692 /tools | |
| parent | 1a4f5a62d12a57dbafbde2529014127777342717 (diff) | |
`chmod +x` on dsd
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/setup.py b/tools/setup.py index bc322e1d..1af78e32 100644 --- a/tools/setup.py +++ b/tools/setup.py @@ -3,6 +3,7 @@ import zipfile import io from pathlib import Path import platform +import stat DSD_VERSION = 'v0.4.0' @@ -30,8 +31,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...') |
