NyaMisty / AltServer-Linux

AltServer for AltStore, but on-device
GNU Affero General Public License v3.0
946 stars 73 forks source link

support macOS #57

Open prife opened 2 years ago

prife commented 2 years ago
  1. add cmake support, only macOS now
  2. add libraries/corecrypto porting from rileytestut without any change, cause corecrypto.zip from apple's site can't be built on arm macOS.
  3. add an all-in-one in-place patch script makefiles/patch.py
  4. tested on m1 macOS, x86 macOS should be okay.

build:

  1. install dependencies
$  brew install cpprestsdk boost openssl
  1. patch code
$ python3 makefiles/patch.py
  1. build with cmake
$ mkdir build && cd build
$ cmake ..
$ make -j10
prife commented 2 years ago

Linux/windows building with cmake will be supported in future when I've some spare time.

prife commented 2 years ago

Maybe should build the project with vcpkg?

jawshoeadan commented 2 years ago

I'm currently getting this error when building. AltServer-Linux-Build/AltServer-Linux/upstream_repo/AltSign/Archiver.cpp:323:71: error: use of undeclared identifier 'APPEND_STATUS_CREATE I'm on macOS 12.4 M1 Max MBP

SternXD commented 1 year ago

Be nice to build and get it to work on Windows because of how Altserver on Windows needs Administrator Access while from what I understand this probably wouldn't.