AltServer-Windows on VS 2019
In order to compile AltServer on VS 2019 there a few things required. If you are using the Community edition of VS you will need to install the installer plugin from here.
- clone the repository recursively and checkout the experimental branch
- install and bootstrap VCPKG
- with vckpg install the following packages (it takes reaaaaaally long): cpprestsdk dirent mdnsresponder
- in the folder (root)\Dependencies\libmobiledevice-vs run get-source to download the source code
- download an compile WinSparkle; you will need to copy the generated LIB in (root)\Dependencies\release
- in the project LDID change the language standard from c++14 to c++17, turn off intellisense errors (misleading) and fix the two errors fixed in this PR
- add the following import in Connection.cpp:
#include <codecvt>
- in DeviceManager.cpp replace
idevice_new
call withidevice_new_with_options(&device, udid, IDEVICE_LOOKUP_USBMUX);
- in the same file replace
idevice_new_ignore_network
withidevice_new_with_options(&device, udid, (idevice_options)(IDEVICE_LOOKUP_USBMUX | IDEVICE_LOOKUP_NETWORK));
- Fix the path for the icons in the RC file.
- Copy all binaries in a single folder, including the Apple.pem file
The code should now compile, download the certificate, sign and install. TODO: fix the installer project by placing the files in the proper folder.