@mcesystems/apple-kit 1.0.90 → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +258 -258
- package/dist/index.js +74 -67
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +74 -67
- package/dist/index.mjs.map +3 -3
- package/dist/resources/bin/darwin/idevice_id +0 -0
- package/dist/resources/bin/darwin/idevicedebug +0 -0
- package/dist/resources/bin/darwin/idevicediagnostics +0 -0
- package/dist/resources/bin/darwin/ideviceinfo +0 -0
- package/dist/resources/bin/darwin/ideviceinstaller +0 -0
- package/dist/resources/bin/darwin/idevicename +0 -0
- package/dist/resources/bin/darwin/idevicepair +0 -0
- package/dist/resources/bin/darwin/idevicescreenshot +0 -0
- package/dist/resources/bin/darwin/idevicesyslog +0 -0
- package/dist/resources/bin/darwin/iproxy +0 -0
- package/dist/resources/bin/darwin/libcrypto.3.dylib +0 -0
- package/dist/resources/bin/darwin/libimobiledevice-1.0.6.dylib +0 -0
- package/dist/resources/bin/darwin/libimobiledevice-glue-1.0.0.dylib +0 -0
- package/dist/resources/bin/darwin/liblzma.5.dylib +0 -0
- package/dist/resources/bin/darwin/libplist-2.0.4.dylib +0 -0
- package/dist/resources/bin/darwin/libssl.3.dylib +0 -0
- package/dist/resources/bin/darwin/libusbmuxd-2.0.7.dylib +0 -0
- package/dist/resources/bin/darwin/libzip.5.dylib +0 -0
- package/dist/resources/bin/darwin/libzstd.1.dylib +0 -0
- package/dist/resources/licenses/LGPL-2.1.txt +33 -0
- package/dist/resources/plist/certificate-trust.xml +43 -43
- package/dist/resources/plist/wifi-enterprise.xml +59 -59
- package/dist/resources/plist/wifi-standard.xml +50 -50
- package/dist/types/index.d.ts +7 -1
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/logic/actions/activation.d.ts +12 -0
- package/dist/types/logic/actions/activation.d.ts.map +1 -0
- package/dist/types/logic/actions/device.d.ts +15 -0
- package/dist/types/logic/actions/device.d.ts.map +1 -0
- package/dist/types/logic/actions/install.d.ts +10 -0
- package/dist/types/logic/actions/install.d.ts.map +1 -0
- package/dist/types/logic/actions/pair.d.ts +6 -0
- package/dist/types/logic/actions/pair.d.ts.map +1 -0
- package/dist/types/logic/actions/proxy.d.ts +23 -0
- package/dist/types/logic/actions/proxy.d.ts.map +1 -0
- package/dist/types/logic/actions/restore.d.ts +36 -0
- package/dist/types/logic/actions/restore.d.ts.map +1 -0
- package/dist/types/logic/actions/tool.d.ts +8 -0
- package/dist/types/logic/actions/tool.d.ts.map +1 -0
- package/dist/types/logic/activationFlow.d.ts +15 -0
- package/dist/types/logic/activationFlow.d.ts.map +1 -0
- package/dist/types/logic/appleDeviceKit.d.ts +164 -0
- package/dist/types/logic/appleDeviceKit.d.ts.map +1 -0
- package/dist/types/logic/dataParser.d.ts +23 -0
- package/dist/types/logic/dataParser.d.ts.map +1 -0
- package/dist/types/logic/iosCli.d.ts +6 -0
- package/dist/types/logic/iosCli.d.ts.map +1 -0
- package/dist/types/logic/utils/resolvePath.d.ts +13 -0
- package/dist/types/logic/utils/resolvePath.d.ts.map +1 -0
- package/dist/types/types/activation.d.ts +28 -0
- package/dist/types/types/activation.d.ts.map +1 -0
- package/dist/types/types/ios.d.ts +152 -0
- package/dist/types/types/ios.d.ts.map +1 -0
- package/dist/types/types/trust.d.ts +10 -0
- package/dist/types/types/trust.d.ts.map +1 -0
- package/dist/types/types/types.d.ts +47 -0
- package/dist/types/types/types.d.ts.map +1 -0
- package/dist/types/types/wifi.d.ts +19 -0
- package/dist/types/types/wifi.d.ts.map +1 -0
- package/dist/types/types.d.ts +140 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils/debug.d.ts +17 -0
- package/dist/types/utils/debug.d.ts.map +1 -0
- package/dist/types/utils/templateLoader.d.ts +8 -0
- package/dist/types/utils/templateLoader.d.ts.map +1 -0
- package/dist/types/utils/wifiProfile.d.ts +14 -0
- package/dist/types/utils/wifiProfile.d.ts.map +1 -0
- package/package.json +5 -5
- package/scripts/README.md +209 -209
- package/scripts/build-windows.sh.template +222 -222
- package/resources/ios.exe +0 -0
- package/resources/wintun-LICENSE.txt +0 -84
- package/resources/wintun.dll +0 -0
|
@@ -1,222 +1,222 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# =============================================================================
|
|
3
|
-
# libimobiledevice Windows Build Script
|
|
4
|
-
# =============================================================================
|
|
5
|
-
#
|
|
6
|
-
# This script builds libimobiledevice and related tools from source using
|
|
7
|
-
# MSYS2/MinGW environment.
|
|
8
|
-
#
|
|
9
|
-
# Prerequisites:
|
|
10
|
-
# 1. MSYS2 installed (https://www.msys2.org/)
|
|
11
|
-
# 2. Run this script from MSYS2 MinGW 64-bit shell
|
|
12
|
-
# 3. Required packages installed (see below)
|
|
13
|
-
#
|
|
14
|
-
# To install required packages, run in MSYS2 MinGW 64-bit shell:
|
|
15
|
-
# pacman -S base-devel git mingw-w64-x86_64-gcc make libtool autoconf automake-wrapper
|
|
16
|
-
#
|
|
17
|
-
# Usage:
|
|
18
|
-
# bash build-windows.sh
|
|
19
|
-
#
|
|
20
|
-
# =============================================================================
|
|
21
|
-
|
|
22
|
-
set -e
|
|
23
|
-
|
|
24
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
25
|
-
TARGET_DIR="{{TARGET_DIR}}"
|
|
26
|
-
BUILD_DIR="$SCRIPT_DIR/limd-build"
|
|
27
|
-
|
|
28
|
-
echo "=== libimobiledevice Windows Build ==="
|
|
29
|
-
echo ""
|
|
30
|
-
echo "Target directory: $TARGET_DIR"
|
|
31
|
-
echo "Build directory: $BUILD_DIR"
|
|
32
|
-
echo ""
|
|
33
|
-
|
|
34
|
-
# Check if running in MinGW environment
|
|
35
|
-
if [[ -z "$MSYSTEM" ]] || [[ "$MSYSTEM" != "MINGW64" ]]; then
|
|
36
|
-
echo "Error: This script must be run from MSYS2 MinGW 64-bit shell"
|
|
37
|
-
echo "Open 'MSYS2 MinGW 64-bit' from Start menu and run this script again."
|
|
38
|
-
exit 1
|
|
39
|
-
fi
|
|
40
|
-
|
|
41
|
-
# Check for required tools
|
|
42
|
-
echo "Checking prerequisites..."
|
|
43
|
-
for cmd in gcc make git autoconf automake libtool; do
|
|
44
|
-
if ! command -v $cmd &> /dev/null; then
|
|
45
|
-
echo "Error: $cmd not found. Please install required packages:"
|
|
46
|
-
echo " pacman -S base-devel git mingw-w64-x86_64-gcc make libtool autoconf automake-wrapper"
|
|
47
|
-
exit 1
|
|
48
|
-
fi
|
|
49
|
-
done
|
|
50
|
-
echo "✓ All prerequisites found"
|
|
51
|
-
echo ""
|
|
52
|
-
|
|
53
|
-
# Create build directory
|
|
54
|
-
mkdir -p "$BUILD_DIR"
|
|
55
|
-
cd "$BUILD_DIR"
|
|
56
|
-
|
|
57
|
-
# Download and run the official build script
|
|
58
|
-
echo "Downloading libimobiledevice build script..."
|
|
59
|
-
curl -Ls -o limd-build-msys2.sh https://is.gd/limdmsys2
|
|
60
|
-
|
|
61
|
-
echo ""
|
|
62
|
-
echo "Running libimobiledevice build script..."
|
|
63
|
-
echo "(This may take 10-30 minutes depending on your system)"
|
|
64
|
-
echo ""
|
|
65
|
-
|
|
66
|
-
bash ./limd-build-msys2.sh
|
|
67
|
-
|
|
68
|
-
# After build, copy the binaries to target directory
|
|
69
|
-
echo ""
|
|
70
|
-
echo "Copying binaries to target directory..."
|
|
71
|
-
|
|
72
|
-
mkdir -p "$TARGET_DIR"
|
|
73
|
-
|
|
74
|
-
# The build script installs to /mingw64 by default
|
|
75
|
-
MINGW_BIN="/mingw64/bin"
|
|
76
|
-
|
|
77
|
-
TOOLS=(
|
|
78
|
-
"idevice_id.exe"
|
|
79
|
-
"ideviceinfo.exe"
|
|
80
|
-
"idevicepair.exe"
|
|
81
|
-
"idevicename.exe"
|
|
82
|
-
"idevicedebug.exe"
|
|
83
|
-
"ideviceinstaller.exe"
|
|
84
|
-
"iproxy.exe"
|
|
85
|
-
"ideviceactivation.exe"
|
|
86
|
-
"idevicesyslog.exe"
|
|
87
|
-
"idevicescreenshot.exe"
|
|
88
|
-
"idevicediagnostics.exe"
|
|
89
|
-
"idevicerestore.exe"
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
for tool in "${TOOLS[@]}"; do
|
|
93
|
-
if [[ -f "$MINGW_BIN/$tool" ]]; then
|
|
94
|
-
cp "$MINGW_BIN/$tool" "$TARGET_DIR/"
|
|
95
|
-
echo "✓ Copied $tool"
|
|
96
|
-
else
|
|
97
|
-
echo "- Skipping $tool (not found)"
|
|
98
|
-
fi
|
|
99
|
-
done
|
|
100
|
-
|
|
101
|
-
# Copy required DLLs by discovering dependencies
|
|
102
|
-
echo ""
|
|
103
|
-
echo "Discovering and copying required DLLs..."
|
|
104
|
-
|
|
105
|
-
# Function to recursively find all DLL dependencies
|
|
106
|
-
find_dll_deps() {
|
|
107
|
-
local file="$1"
|
|
108
|
-
ldd "$file" 2>/dev/null | grep '/mingw64' | awk '{print $3}' | sort -u
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
# Collect all unique DLLs needed by all tools
|
|
112
|
-
ALL_DLLS=""
|
|
113
|
-
for tool in "${TOOLS[@]}"; do
|
|
114
|
-
if [[ -f "$TARGET_DIR/$tool" ]]; then
|
|
115
|
-
TOOL_DLLS=$(find_dll_deps "$TARGET_DIR/$tool")
|
|
116
|
-
ALL_DLLS="$ALL_DLLS $TOOL_DLLS"
|
|
117
|
-
fi
|
|
118
|
-
done
|
|
119
|
-
|
|
120
|
-
# Also check dependencies of the DLLs themselves (transitive deps)
|
|
121
|
-
# Do multiple passes to ensure we get all nested dependencies
|
|
122
|
-
for pass in {1..3}; do
|
|
123
|
-
for dll_path in $ALL_DLLS; do
|
|
124
|
-
if [[ -f "$dll_path" ]]; then
|
|
125
|
-
NESTED_DLLS=$(find_dll_deps "$dll_path")
|
|
126
|
-
ALL_DLLS="$ALL_DLLS $NESTED_DLLS"
|
|
127
|
-
fi
|
|
128
|
-
done
|
|
129
|
-
done
|
|
130
|
-
|
|
131
|
-
# Get unique list
|
|
132
|
-
UNIQUE_DLLS=$(echo "$ALL_DLLS" | tr ' ' '\n' | sort -u | grep -v '^$')
|
|
133
|
-
|
|
134
|
-
# Copy each DLL
|
|
135
|
-
for dll_path in $UNIQUE_DLLS; do
|
|
136
|
-
if [[ -f "$dll_path" ]]; then
|
|
137
|
-
dll_name=$(basename "$dll_path")
|
|
138
|
-
cp "$dll_path" "$TARGET_DIR/"
|
|
139
|
-
echo "✓ Copied $dll_name"
|
|
140
|
-
fi
|
|
141
|
-
done
|
|
142
|
-
|
|
143
|
-
# Specifically check for idevicerestore dependencies (libirecovery, libidevicerestore)
|
|
144
|
-
if [[ -f "$TARGET_DIR/idevicerestore.exe" ]]; then
|
|
145
|
-
echo ""
|
|
146
|
-
echo "Checking idevicerestore-specific dependencies..."
|
|
147
|
-
|
|
148
|
-
# Look for libirecovery and libidevicerestore DLLs
|
|
149
|
-
IRECOVERY_DLLS=$(find "$MINGW_BIN" -name "libirecovery*.dll" 2>/dev/null || true)
|
|
150
|
-
IDEVICERESTORE_DLLS=$(find "$MINGW_BIN" -name "libidevicerestore*.dll" 2>/dev/null || true)
|
|
151
|
-
|
|
152
|
-
for dll in $IRECOVERY_DLLS $IDEVICERESTORE_DLLS; do
|
|
153
|
-
if [[ -f "$dll" ]]; then
|
|
154
|
-
dll_name=$(basename "$dll")
|
|
155
|
-
if [[ ! -f "$TARGET_DIR/$dll_name" ]]; then
|
|
156
|
-
cp "$dll" "$TARGET_DIR/"
|
|
157
|
-
echo "✓ Copied $dll_name (idevicerestore dependency)"
|
|
158
|
-
fi
|
|
159
|
-
fi
|
|
160
|
-
done
|
|
161
|
-
fi
|
|
162
|
-
|
|
163
|
-
# Explicitly copy all libimobiledevice core libraries
|
|
164
|
-
echo ""
|
|
165
|
-
echo "Copying libimobiledevice core libraries..."
|
|
166
|
-
CORE_LIBS=(
|
|
167
|
-
"libimobiledevice-1.0.dll"
|
|
168
|
-
"libimobiledevice-glue-1.0.dll"
|
|
169
|
-
"libusbmuxd-2.0.dll"
|
|
170
|
-
"libplist-2.0.dll"
|
|
171
|
-
"libirecovery-1.0.dll"
|
|
172
|
-
"libidevicerestore-1.0.dll"
|
|
173
|
-
"libideviceactivation-1.0.dll"
|
|
174
|
-
)
|
|
175
|
-
|
|
176
|
-
for lib in "${CORE_LIBS[@]}"; do
|
|
177
|
-
if [[ -f "$MINGW_BIN/$lib" ]] && [[ ! -f "$TARGET_DIR/$lib" ]]; then
|
|
178
|
-
cp "$MINGW_BIN/$lib" "$TARGET_DIR/"
|
|
179
|
-
echo "✓ Copied $lib (core library)"
|
|
180
|
-
fi
|
|
181
|
-
done
|
|
182
|
-
|
|
183
|
-
# Also copy these common runtime DLLs that might not show up in ldd
|
|
184
|
-
RUNTIME_DLLS=(
|
|
185
|
-
"libgcc_s_seh-1.dll"
|
|
186
|
-
"libwinpthread-1.dll"
|
|
187
|
-
"libstdc++-6.dll"
|
|
188
|
-
"libssl-3-x64.dll"
|
|
189
|
-
"libcrypto-3-x64.dll"
|
|
190
|
-
"liblzma-5.dll"
|
|
191
|
-
"libzstd.dll"
|
|
192
|
-
"zlib1.dll"
|
|
193
|
-
)
|
|
194
|
-
|
|
195
|
-
echo ""
|
|
196
|
-
echo "Copying runtime DLLs..."
|
|
197
|
-
for dll in "${RUNTIME_DLLS[@]}"; do
|
|
198
|
-
if [[ -f "$MINGW_BIN/$dll" ]] && [[ ! -f "$TARGET_DIR/$dll" ]]; then
|
|
199
|
-
cp "$MINGW_BIN/$dll" "$TARGET_DIR/"
|
|
200
|
-
echo "✓ Copied $dll"
|
|
201
|
-
fi
|
|
202
|
-
done
|
|
203
|
-
|
|
204
|
-
# List all DLLs that were copied for verification
|
|
205
|
-
echo ""
|
|
206
|
-
echo "=== Summary of copied libraries ==="
|
|
207
|
-
echo "Core libimobiledevice libraries:"
|
|
208
|
-
for lib in "${CORE_LIBS[@]}"; do
|
|
209
|
-
if [[ -f "$TARGET_DIR/$lib" ]]; then
|
|
210
|
-
echo " ✓ $lib"
|
|
211
|
-
else
|
|
212
|
-
echo " ✗ $lib (missing)"
|
|
213
|
-
fi
|
|
214
|
-
done
|
|
215
|
-
|
|
216
|
-
echo ""
|
|
217
|
-
echo "=== Build Complete ==="
|
|
218
|
-
echo "Windows binaries exported to: $TARGET_DIR"
|
|
219
|
-
echo ""
|
|
220
|
-
echo "Note: On Windows, iTunes or Apple Mobile Device Support must be installed"
|
|
221
|
-
echo "for USB communication to work."
|
|
222
|
-
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# =============================================================================
|
|
3
|
+
# libimobiledevice Windows Build Script
|
|
4
|
+
# =============================================================================
|
|
5
|
+
#
|
|
6
|
+
# This script builds libimobiledevice and related tools from source using
|
|
7
|
+
# MSYS2/MinGW environment.
|
|
8
|
+
#
|
|
9
|
+
# Prerequisites:
|
|
10
|
+
# 1. MSYS2 installed (https://www.msys2.org/)
|
|
11
|
+
# 2. Run this script from MSYS2 MinGW 64-bit shell
|
|
12
|
+
# 3. Required packages installed (see below)
|
|
13
|
+
#
|
|
14
|
+
# To install required packages, run in MSYS2 MinGW 64-bit shell:
|
|
15
|
+
# pacman -S base-devel git mingw-w64-x86_64-gcc make libtool autoconf automake-wrapper
|
|
16
|
+
#
|
|
17
|
+
# Usage:
|
|
18
|
+
# bash build-windows.sh
|
|
19
|
+
#
|
|
20
|
+
# =============================================================================
|
|
21
|
+
|
|
22
|
+
set -e
|
|
23
|
+
|
|
24
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
25
|
+
TARGET_DIR="{{TARGET_DIR}}"
|
|
26
|
+
BUILD_DIR="$SCRIPT_DIR/limd-build"
|
|
27
|
+
|
|
28
|
+
echo "=== libimobiledevice Windows Build ==="
|
|
29
|
+
echo ""
|
|
30
|
+
echo "Target directory: $TARGET_DIR"
|
|
31
|
+
echo "Build directory: $BUILD_DIR"
|
|
32
|
+
echo ""
|
|
33
|
+
|
|
34
|
+
# Check if running in MinGW environment
|
|
35
|
+
if [[ -z "$MSYSTEM" ]] || [[ "$MSYSTEM" != "MINGW64" ]]; then
|
|
36
|
+
echo "Error: This script must be run from MSYS2 MinGW 64-bit shell"
|
|
37
|
+
echo "Open 'MSYS2 MinGW 64-bit' from Start menu and run this script again."
|
|
38
|
+
exit 1
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
# Check for required tools
|
|
42
|
+
echo "Checking prerequisites..."
|
|
43
|
+
for cmd in gcc make git autoconf automake libtool; do
|
|
44
|
+
if ! command -v $cmd &> /dev/null; then
|
|
45
|
+
echo "Error: $cmd not found. Please install required packages:"
|
|
46
|
+
echo " pacman -S base-devel git mingw-w64-x86_64-gcc make libtool autoconf automake-wrapper"
|
|
47
|
+
exit 1
|
|
48
|
+
fi
|
|
49
|
+
done
|
|
50
|
+
echo "✓ All prerequisites found"
|
|
51
|
+
echo ""
|
|
52
|
+
|
|
53
|
+
# Create build directory
|
|
54
|
+
mkdir -p "$BUILD_DIR"
|
|
55
|
+
cd "$BUILD_DIR"
|
|
56
|
+
|
|
57
|
+
# Download and run the official build script
|
|
58
|
+
echo "Downloading libimobiledevice build script..."
|
|
59
|
+
curl -Ls -o limd-build-msys2.sh https://is.gd/limdmsys2
|
|
60
|
+
|
|
61
|
+
echo ""
|
|
62
|
+
echo "Running libimobiledevice build script..."
|
|
63
|
+
echo "(This may take 10-30 minutes depending on your system)"
|
|
64
|
+
echo ""
|
|
65
|
+
|
|
66
|
+
bash ./limd-build-msys2.sh
|
|
67
|
+
|
|
68
|
+
# After build, copy the binaries to target directory
|
|
69
|
+
echo ""
|
|
70
|
+
echo "Copying binaries to target directory..."
|
|
71
|
+
|
|
72
|
+
mkdir -p "$TARGET_DIR"
|
|
73
|
+
|
|
74
|
+
# The build script installs to /mingw64 by default
|
|
75
|
+
MINGW_BIN="/mingw64/bin"
|
|
76
|
+
|
|
77
|
+
TOOLS=(
|
|
78
|
+
"idevice_id.exe"
|
|
79
|
+
"ideviceinfo.exe"
|
|
80
|
+
"idevicepair.exe"
|
|
81
|
+
"idevicename.exe"
|
|
82
|
+
"idevicedebug.exe"
|
|
83
|
+
"ideviceinstaller.exe"
|
|
84
|
+
"iproxy.exe"
|
|
85
|
+
"ideviceactivation.exe"
|
|
86
|
+
"idevicesyslog.exe"
|
|
87
|
+
"idevicescreenshot.exe"
|
|
88
|
+
"idevicediagnostics.exe"
|
|
89
|
+
"idevicerestore.exe"
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
for tool in "${TOOLS[@]}"; do
|
|
93
|
+
if [[ -f "$MINGW_BIN/$tool" ]]; then
|
|
94
|
+
cp "$MINGW_BIN/$tool" "$TARGET_DIR/"
|
|
95
|
+
echo "✓ Copied $tool"
|
|
96
|
+
else
|
|
97
|
+
echo "- Skipping $tool (not found)"
|
|
98
|
+
fi
|
|
99
|
+
done
|
|
100
|
+
|
|
101
|
+
# Copy required DLLs by discovering dependencies
|
|
102
|
+
echo ""
|
|
103
|
+
echo "Discovering and copying required DLLs..."
|
|
104
|
+
|
|
105
|
+
# Function to recursively find all DLL dependencies
|
|
106
|
+
find_dll_deps() {
|
|
107
|
+
local file="$1"
|
|
108
|
+
ldd "$file" 2>/dev/null | grep '/mingw64' | awk '{print $3}' | sort -u
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
# Collect all unique DLLs needed by all tools
|
|
112
|
+
ALL_DLLS=""
|
|
113
|
+
for tool in "${TOOLS[@]}"; do
|
|
114
|
+
if [[ -f "$TARGET_DIR/$tool" ]]; then
|
|
115
|
+
TOOL_DLLS=$(find_dll_deps "$TARGET_DIR/$tool")
|
|
116
|
+
ALL_DLLS="$ALL_DLLS $TOOL_DLLS"
|
|
117
|
+
fi
|
|
118
|
+
done
|
|
119
|
+
|
|
120
|
+
# Also check dependencies of the DLLs themselves (transitive deps)
|
|
121
|
+
# Do multiple passes to ensure we get all nested dependencies
|
|
122
|
+
for pass in {1..3}; do
|
|
123
|
+
for dll_path in $ALL_DLLS; do
|
|
124
|
+
if [[ -f "$dll_path" ]]; then
|
|
125
|
+
NESTED_DLLS=$(find_dll_deps "$dll_path")
|
|
126
|
+
ALL_DLLS="$ALL_DLLS $NESTED_DLLS"
|
|
127
|
+
fi
|
|
128
|
+
done
|
|
129
|
+
done
|
|
130
|
+
|
|
131
|
+
# Get unique list
|
|
132
|
+
UNIQUE_DLLS=$(echo "$ALL_DLLS" | tr ' ' '\n' | sort -u | grep -v '^$')
|
|
133
|
+
|
|
134
|
+
# Copy each DLL
|
|
135
|
+
for dll_path in $UNIQUE_DLLS; do
|
|
136
|
+
if [[ -f "$dll_path" ]]; then
|
|
137
|
+
dll_name=$(basename "$dll_path")
|
|
138
|
+
cp "$dll_path" "$TARGET_DIR/"
|
|
139
|
+
echo "✓ Copied $dll_name"
|
|
140
|
+
fi
|
|
141
|
+
done
|
|
142
|
+
|
|
143
|
+
# Specifically check for idevicerestore dependencies (libirecovery, libidevicerestore)
|
|
144
|
+
if [[ -f "$TARGET_DIR/idevicerestore.exe" ]]; then
|
|
145
|
+
echo ""
|
|
146
|
+
echo "Checking idevicerestore-specific dependencies..."
|
|
147
|
+
|
|
148
|
+
# Look for libirecovery and libidevicerestore DLLs
|
|
149
|
+
IRECOVERY_DLLS=$(find "$MINGW_BIN" -name "libirecovery*.dll" 2>/dev/null || true)
|
|
150
|
+
IDEVICERESTORE_DLLS=$(find "$MINGW_BIN" -name "libidevicerestore*.dll" 2>/dev/null || true)
|
|
151
|
+
|
|
152
|
+
for dll in $IRECOVERY_DLLS $IDEVICERESTORE_DLLS; do
|
|
153
|
+
if [[ -f "$dll" ]]; then
|
|
154
|
+
dll_name=$(basename "$dll")
|
|
155
|
+
if [[ ! -f "$TARGET_DIR/$dll_name" ]]; then
|
|
156
|
+
cp "$dll" "$TARGET_DIR/"
|
|
157
|
+
echo "✓ Copied $dll_name (idevicerestore dependency)"
|
|
158
|
+
fi
|
|
159
|
+
fi
|
|
160
|
+
done
|
|
161
|
+
fi
|
|
162
|
+
|
|
163
|
+
# Explicitly copy all libimobiledevice core libraries
|
|
164
|
+
echo ""
|
|
165
|
+
echo "Copying libimobiledevice core libraries..."
|
|
166
|
+
CORE_LIBS=(
|
|
167
|
+
"libimobiledevice-1.0.dll"
|
|
168
|
+
"libimobiledevice-glue-1.0.dll"
|
|
169
|
+
"libusbmuxd-2.0.dll"
|
|
170
|
+
"libplist-2.0.dll"
|
|
171
|
+
"libirecovery-1.0.dll"
|
|
172
|
+
"libidevicerestore-1.0.dll"
|
|
173
|
+
"libideviceactivation-1.0.dll"
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
for lib in "${CORE_LIBS[@]}"; do
|
|
177
|
+
if [[ -f "$MINGW_BIN/$lib" ]] && [[ ! -f "$TARGET_DIR/$lib" ]]; then
|
|
178
|
+
cp "$MINGW_BIN/$lib" "$TARGET_DIR/"
|
|
179
|
+
echo "✓ Copied $lib (core library)"
|
|
180
|
+
fi
|
|
181
|
+
done
|
|
182
|
+
|
|
183
|
+
# Also copy these common runtime DLLs that might not show up in ldd
|
|
184
|
+
RUNTIME_DLLS=(
|
|
185
|
+
"libgcc_s_seh-1.dll"
|
|
186
|
+
"libwinpthread-1.dll"
|
|
187
|
+
"libstdc++-6.dll"
|
|
188
|
+
"libssl-3-x64.dll"
|
|
189
|
+
"libcrypto-3-x64.dll"
|
|
190
|
+
"liblzma-5.dll"
|
|
191
|
+
"libzstd.dll"
|
|
192
|
+
"zlib1.dll"
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
echo ""
|
|
196
|
+
echo "Copying runtime DLLs..."
|
|
197
|
+
for dll in "${RUNTIME_DLLS[@]}"; do
|
|
198
|
+
if [[ -f "$MINGW_BIN/$dll" ]] && [[ ! -f "$TARGET_DIR/$dll" ]]; then
|
|
199
|
+
cp "$MINGW_BIN/$dll" "$TARGET_DIR/"
|
|
200
|
+
echo "✓ Copied $dll"
|
|
201
|
+
fi
|
|
202
|
+
done
|
|
203
|
+
|
|
204
|
+
# List all DLLs that were copied for verification
|
|
205
|
+
echo ""
|
|
206
|
+
echo "=== Summary of copied libraries ==="
|
|
207
|
+
echo "Core libimobiledevice libraries:"
|
|
208
|
+
for lib in "${CORE_LIBS[@]}"; do
|
|
209
|
+
if [[ -f "$TARGET_DIR/$lib" ]]; then
|
|
210
|
+
echo " ✓ $lib"
|
|
211
|
+
else
|
|
212
|
+
echo " ✗ $lib (missing)"
|
|
213
|
+
fi
|
|
214
|
+
done
|
|
215
|
+
|
|
216
|
+
echo ""
|
|
217
|
+
echo "=== Build Complete ==="
|
|
218
|
+
echo "Windows binaries exported to: $TARGET_DIR"
|
|
219
|
+
echo ""
|
|
220
|
+
echo "Note: On Windows, iTunes or Apple Mobile Device Support must be installed"
|
|
221
|
+
echo "for USB communication to work."
|
|
222
|
+
|
package/resources/ios.exe
DELETED
|
Binary file
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
Prebuilt Binaries License
|
|
2
|
-
-------------------------
|
|
3
|
-
|
|
4
|
-
1. DEFINITIONS. "Software" means the precise contents of the "wintun.dll"
|
|
5
|
-
files that are included in the .zip file that contains this document as
|
|
6
|
-
downloaded from wintun.net/builds.
|
|
7
|
-
|
|
8
|
-
2. LICENSE GRANT. WireGuard LLC grants to you a non-exclusive and
|
|
9
|
-
non-transferable right to use Software for lawful purposes under certain
|
|
10
|
-
obligations and limited rights as set forth in this agreement.
|
|
11
|
-
|
|
12
|
-
3. RESTRICTIONS. Software is owned and copyrighted by WireGuard LLC. It is
|
|
13
|
-
licensed, not sold. Title to Software and all associated intellectual
|
|
14
|
-
property rights are retained by WireGuard. You must not:
|
|
15
|
-
a. reverse engineer, decompile, disassemble, extract from, or otherwise
|
|
16
|
-
modify the Software;
|
|
17
|
-
b. modify or create derivative work based upon Software in whole or in
|
|
18
|
-
parts, except insofar as only the API interfaces of the "wintun.h" file
|
|
19
|
-
distributed alongside the Software (the "Permitted API") are used;
|
|
20
|
-
c. remove any proprietary notices, labels, or copyrights from the Software;
|
|
21
|
-
d. resell, redistribute, lease, rent, transfer, sublicense, or otherwise
|
|
22
|
-
transfer rights of the Software without the prior written consent of
|
|
23
|
-
WireGuard LLC, except insofar as the Software is distributed alongside
|
|
24
|
-
other software that uses the Software only via the Permitted API;
|
|
25
|
-
e. use the name of WireGuard LLC, the WireGuard project, the Wintun
|
|
26
|
-
project, or the names of its contributors to endorse or promote products
|
|
27
|
-
derived from the Software without specific prior written consent.
|
|
28
|
-
|
|
29
|
-
4. LIMITED WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF
|
|
30
|
-
ANY KIND. WIREGUARD LLC HEREBY EXCLUDES AND DISCLAIMS ALL IMPLIED OR
|
|
31
|
-
STATUTORY WARRANTIES, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
32
|
-
FOR A PARTICULAR PURPOSE, QUALITY, NON-INFRINGEMENT, TITLE, RESULTS,
|
|
33
|
-
EFFORTS, OR QUIET ENJOYMENT. THERE IS NO WARRANTY THAT THE PRODUCT WILL BE
|
|
34
|
-
ERROR-FREE OR WILL FUNCTION WITHOUT INTERRUPTION. YOU ASSUME THE ENTIRE
|
|
35
|
-
RISK FOR THE RESULTS OBTAINED USING THE PRODUCT. TO THE EXTENT THAT
|
|
36
|
-
WIREGUARD LLC MAY NOT DISCLAIM ANY WARRANTY AS A MATTER OF APPLICABLE LAW,
|
|
37
|
-
THE SCOPE AND DURATION OF SUCH WARRANTY WILL BE THE MINIMUM PERMITTED UNDER
|
|
38
|
-
SUCH LAW. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
|
|
39
|
-
WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR
|
|
40
|
-
A PARTICULAR PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
|
|
41
|
-
EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
|
|
42
|
-
|
|
43
|
-
5. LIMITATION OF LIABILITY. To the extent not prohibited by law, in no event
|
|
44
|
-
WireGuard LLC or any third-party-developer will be liable for any lost
|
|
45
|
-
revenue, profit or data or for special, indirect, consequential, incidental
|
|
46
|
-
or punitive damages, however caused regardless of the theory of liability,
|
|
47
|
-
arising out of or related to the use of or inability to use Software, even
|
|
48
|
-
if WireGuard LLC has been advised of the possibility of such damages.
|
|
49
|
-
Solely you are responsible for determining the appropriateness of using
|
|
50
|
-
Software and accept full responsibility for all risks associated with its
|
|
51
|
-
exercise of rights under this agreement, including but not limited to the
|
|
52
|
-
risks and costs of program errors, compliance with applicable laws, damage
|
|
53
|
-
to or loss of data, programs or equipment, and unavailability or
|
|
54
|
-
interruption of operations. The foregoing limitations will apply even if
|
|
55
|
-
the above stated warranty fails of its essential purpose. You acknowledge,
|
|
56
|
-
that it is in the nature of software that software is complex and not
|
|
57
|
-
completely free of errors. In no event shall WireGuard LLC or any
|
|
58
|
-
third-party-developer be liable to you under any theory for any damages
|
|
59
|
-
suffered by you or any user of Software or for any special, incidental,
|
|
60
|
-
indirect, consequential or similar damages (including without limitation
|
|
61
|
-
damages for loss of business profits, business interruption, loss of
|
|
62
|
-
business information or any other pecuniary loss) arising out of the use or
|
|
63
|
-
inability to use Software, even if WireGuard LLC has been advised of the
|
|
64
|
-
possibility of such damages and regardless of the legal or quitable theory
|
|
65
|
-
(contract, tort, or otherwise) upon which the claim is based.
|
|
66
|
-
|
|
67
|
-
6. TERMINATION. This agreement is affected until terminated. You may
|
|
68
|
-
terminate this agreement at any time. This agreement will terminate
|
|
69
|
-
immediately without notice from WireGuard LLC if you fail to comply with
|
|
70
|
-
the terms and conditions of this agreement. Upon termination, you must
|
|
71
|
-
delete Software and all copies of Software and cease all forms of
|
|
72
|
-
distribution of Software.
|
|
73
|
-
|
|
74
|
-
7. SEVERABILITY. If any provision of this agreement is held to be
|
|
75
|
-
unenforceable, this agreement will remain in effect with the provision
|
|
76
|
-
omitted, unless omission would frustrate the intent of the parties, in
|
|
77
|
-
which case this agreement will immediately terminate.
|
|
78
|
-
|
|
79
|
-
8. RESERVATION OF RIGHTS. All rights not expressly granted in this agreement
|
|
80
|
-
are reserved by WireGuard LLC. For example, WireGuard LLC reserves the
|
|
81
|
-
right at any time to cease development of Software, to alter distribution
|
|
82
|
-
details, features, specifications, capabilities, functions, licensing
|
|
83
|
-
terms, release dates, APIs, ABIs, general availability, or other
|
|
84
|
-
characteristics of the Software.
|
package/resources/wintun.dll
DELETED
|
Binary file
|