macOS
Prerequisites
- Make sure
cargoand Xcode are installed. Runcargo -Vin the terminal to check. If not installed, click here to follow the installation steps. - Download the source code from GitHub:
- Using git, run
git clone https://github.com/TeamFlos/phira.gitin the terminal to clone the repository. - Alternatively, on the Phira repository page, click the Code button, select
Download ZIP, and extract to any local directory. - If you cannot connect to GitHub, you may use a Git mirror/accelerator to clone or download.
- To build a specific version of Phira, go to the release page, download
Source code (tar.gz)from Assets, and extract to any path. - Warning: To avoid unexpected issues, we recommend the path not contain any characters outside ASCII.
- Using git, run
- For the static library files, download from ESA or EdgeOne. After downloading, extract directly to the project root directory. If prompted to overwrite files, click overwrite.
Building
- Open the terminal and navigate to the project root directory.
- Run
cargo build -r --bin phira-mainand wait for compilation to finish. - Copy all files from the
./assets/directory to./target/release/assets/. The build process is now complete. You can runphira-mainto verify that the resource files are intact.
- Note: At the time this document was written, the resource files in the code directory are incomplete. If the main program crashes on startup, go to the release page and download any version's Windows or Linux archive to get the missing resource files.
Troubleshooting
Q. Build output: failed to connect to GitHub
A. Check your network environment, or download prpr-miniquad, prpr-macroquad, sasa and phira-mp locally, then specify their paths in Cargo.toml (e.g., prpr-miniquad = { path = "../../prpr-miniquad" }) and rebuild.
Other issues, please supplement.