Add Windows deploy script and fix Windows build

This commit is contained in:
uncor3
2025-09-16 19:21:54 +00:00
parent b9bff056fd
commit 6812609d3f
6 changed files with 112 additions and 3 deletions
+2 -2
View File
@@ -76,8 +76,8 @@ plist_t get_device_info(const char *udid, int use_network, int simple,
}
plist_t disk_info = nullptr;
u_int64_t total_space = 0;
u_int64_t free_space = 0;
uint64_t total_space = 0;
uint64_t free_space = 0;
/* {
"AmountDataAvailable": 6663077888,
"AmountDataReserved": 209715200,
+2
View File
@@ -25,7 +25,9 @@
#include <libimobiledevice/notification_proxy.h>
#include <libtatsu/tss.h>
#include <plist/plist.h>
#ifndef _WIN32
#include <printf.h>
#endif
QPair<bool, plist_t> _get_mounted_image(const char *udid)
{
+3 -1
View File
@@ -19,9 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#define _GNU_SOURCE 1
#include "../../iDescriptor.h"
#include <stdlib.h>
#define _GNU_SOURCE 1
#define __USE_GNU 1
#include <errno.h>
#include <getopt.h>
@@ -45,7 +45,9 @@
#include <libimobiledevice/notification_proxy.h>
#include <libtatsu/tss.h>
#include <plist/plist.h>
#ifndef _WIN32
#include <printf.h>
#endif
static int list_mode = 0;
static int use_network = 0;
+3
View File
@@ -35,6 +35,9 @@
#include <libkern/OSByteOrder.h>
#include <machine/endian.h>
#define htobe32(x) OSSwapHostToBigInt32(x)
#elif defined(_WIN32)
#include <winsock2.h>
#define htobe32(x) htonl(x)
#else
#include <endian.h>
#endif