doc: Mac installation
neverchanje opened this issue · 2 comments
Hi there,
I'm interested in this project but I found no instruction for Mac installation in your doc https://dorothy-ssr.net/docs/tutorial/intro. My CPU is Apple M1 Pro.
Tools/tolua++/build.sh
xcodebuild ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -project Project/macOS/Dorothy.xcodeproj -target Dorothy
I followed the commands in the CI: https://github.com/pigpigyyy/Dorothy-SSR/blob/main/.github/workflows/macos.yml
For my ARM, ARCHS=x86_64
should be changed to arm64
:
xcodebuild ARCHS=arm64 ONLY_ACTIVE_ARCH=NO -project Project/macOS/Dorothy.xcodeproj -target Dorothy
Since I was on my first build of xcode project, I was also required to run xcodebuild -runFirstLaunch
After all the steps, the build has succeeded. The binary is in ./Project/macOS/build/Release/Dorothy.app
Yes, the comands in CI are just for building test, and the arch is set to be x86_64 only for speeding up compilation.
Tried to add a Homebrew release, if you got Homebrew installed, you can now get a latest release with commands
brew tap pigpigyyy/dorothy-ssr
brew install --cask dorothy-ssr
Since the release is built by github action, the macOS system will warning you about "Untrusted developer". You can just ignore the message in the "Setting > Privacy and Security" panel.