Allow to build with Mac OS

This commit is contained in:
Matteo Piazzolla 2024-08-27 01:11:10 +02:00
parent 5064f222df
commit 78d1af11c8
3 changed files with 8 additions and 3 deletions

View File

@ -2074,6 +2074,11 @@ mgs_reversing also provides a helper script `run.py` that starts the built game
- Download a ZIP file with the emulator into `PCSX-REDUX-PATH` directory. [Click here for Windows builds](https://install.appcenter.ms/orgs/grumpycoders/apps/pcsx-redux-win64/distribution_groups/public). [Click here for Linux builds](https://install.appcenter.ms/orgs/grumpycoders/apps/pcsx-redux-linux64/distribution_groups/public). You don't have to unzip the file.
3. You should run this command in a separate command prompt. While this command is running, you can rebuild the game (with `python3 build.py --variant=dev_exe`) and the tool will automatically relaunch the emulator with the latest build.
### Mac OS
In order to build on Mac OS you need to install wine using brew
```
brew install --cask --no-quarantine wine-stable
```
### Matching builds (main executable, VR executable)

View File

@ -21,8 +21,8 @@ has_wine = bool(which('wine'))
has_wibo = bool(which('wibo'))
has_cpp = bool(which('cpp'))
# Native preprocesor doesn't work under WSL
if "microsoft-standard" in platform.uname().release:
# Native preprocesor doesn't work under WSL or MacOs
if "microsoft-standard" in platform.uname().release or platform.system() == 'Darwin':
has_cpp = False
def parse_arguments():

View File

@ -36,7 +36,7 @@ def parse_args():
def is_pcsx_redux_exe(path):
path = str(path)
if path.endswith('.AppImage') or path.endswith('pcsx-redux.exe'):
if path.endswith('.AppImage') or path.endswith('pcsx-redux.exe') or path.endswith('PCSX-Redux'):
if Path(path).exists():
return True