@mcesystems/apple-kit 1.0.31 → 1.0.33

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.
Files changed (29) hide show
  1. package/README.md +284 -284
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs.map +1 -1
  4. package/dist/types/utils/portManager.d.ts +68 -0
  5. package/dist/types/utils/portManager.d.ts.map +1 -0
  6. package/package.json +1 -1
  7. package/scripts/README.md +209 -209
  8. package/scripts/build-windows.sh.template +134 -134
  9. package/scripts/export-resources.mts +690 -690
  10. package/dist/resources/bin/darwin/idevice_id +0 -0
  11. package/dist/resources/bin/darwin/idevicedebug +0 -0
  12. package/dist/resources/bin/darwin/idevicediagnostics +0 -0
  13. package/dist/resources/bin/darwin/ideviceinfo +0 -0
  14. package/dist/resources/bin/darwin/ideviceinstaller +0 -0
  15. package/dist/resources/bin/darwin/idevicename +0 -0
  16. package/dist/resources/bin/darwin/idevicepair +0 -0
  17. package/dist/resources/bin/darwin/idevicescreenshot +0 -0
  18. package/dist/resources/bin/darwin/idevicesyslog +0 -0
  19. package/dist/resources/bin/darwin/iproxy +0 -0
  20. package/dist/resources/bin/darwin/libcrypto.3.dylib +0 -0
  21. package/dist/resources/bin/darwin/libimobiledevice-1.0.6.dylib +0 -0
  22. package/dist/resources/bin/darwin/libimobiledevice-glue-1.0.0.dylib +0 -0
  23. package/dist/resources/bin/darwin/liblzma.5.dylib +0 -0
  24. package/dist/resources/bin/darwin/libplist-2.0.4.dylib +0 -0
  25. package/dist/resources/bin/darwin/libssl.3.dylib +0 -0
  26. package/dist/resources/bin/darwin/libusbmuxd-2.0.7.dylib +0 -0
  27. package/dist/resources/bin/darwin/libzip.5.dylib +0 -0
  28. package/dist/resources/bin/darwin/libzstd.1.dylib +0 -0
  29. package/dist/resources/licenses/LGPL-2.1.txt +0 -33
@@ -1,134 +1,134 @@
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
- )
90
-
91
- for tool in "${TOOLS[@]}"; do
92
- if [[ -f "$MINGW_BIN/$tool" ]]; then
93
- cp "$MINGW_BIN/$tool" "$TARGET_DIR/"
94
- echo "✓ Copied $tool"
95
- else
96
- echo "- Skipping $tool (not found)"
97
- fi
98
- done
99
-
100
- # Copy required DLLs
101
- echo ""
102
- echo "Copying required DLLs..."
103
-
104
- DLLS=(
105
- "libimobiledevice-1.0-6.dll"
106
- "libusbmuxd-2.0-6.dll"
107
- "libplist-2.0-4.dll"
108
- "libimobiledevice-glue-1.0-0.dll"
109
- "libssl-3-x64.dll"
110
- "libcrypto-3-x64.dll"
111
- "libzip-5.dll"
112
- "liblzma-5.dll"
113
- "libzstd.dll"
114
- "libgcc_s_seh-1.dll"
115
- "libwinpthread-1.dll"
116
- "libstdc++-6.dll"
117
- )
118
-
119
- for dll in "${DLLS[@]}"; do
120
- if [[ -f "$MINGW_BIN/$dll" ]]; then
121
- cp "$MINGW_BIN/$dll" "$TARGET_DIR/"
122
- echo "✓ Copied $dll"
123
- else
124
- echo "- Skipping $dll (not found)"
125
- fi
126
- done
127
-
128
- echo ""
129
- echo "=== Build Complete ==="
130
- echo "Windows binaries exported to: $TARGET_DIR"
131
- echo ""
132
- echo "Note: On Windows, iTunes or Apple Mobile Device Support must be installed"
133
- echo "for USB communication to work."
134
-
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
+ )
90
+
91
+ for tool in "${TOOLS[@]}"; do
92
+ if [[ -f "$MINGW_BIN/$tool" ]]; then
93
+ cp "$MINGW_BIN/$tool" "$TARGET_DIR/"
94
+ echo "✓ Copied $tool"
95
+ else
96
+ echo "- Skipping $tool (not found)"
97
+ fi
98
+ done
99
+
100
+ # Copy required DLLs
101
+ echo ""
102
+ echo "Copying required DLLs..."
103
+
104
+ DLLS=(
105
+ "libimobiledevice-1.0-6.dll"
106
+ "libusbmuxd-2.0-6.dll"
107
+ "libplist-2.0-4.dll"
108
+ "libimobiledevice-glue-1.0-0.dll"
109
+ "libssl-3-x64.dll"
110
+ "libcrypto-3-x64.dll"
111
+ "libzip-5.dll"
112
+ "liblzma-5.dll"
113
+ "libzstd.dll"
114
+ "libgcc_s_seh-1.dll"
115
+ "libwinpthread-1.dll"
116
+ "libstdc++-6.dll"
117
+ )
118
+
119
+ for dll in "${DLLS[@]}"; do
120
+ if [[ -f "$MINGW_BIN/$dll" ]]; then
121
+ cp "$MINGW_BIN/$dll" "$TARGET_DIR/"
122
+ echo "✓ Copied $dll"
123
+ else
124
+ echo "- Skipping $dll (not found)"
125
+ fi
126
+ done
127
+
128
+ echo ""
129
+ echo "=== Build Complete ==="
130
+ echo "Windows binaries exported to: $TARGET_DIR"
131
+ echo ""
132
+ echo "Note: On Windows, iTunes or Apple Mobile Device Support must be installed"
133
+ echo "for USB communication to work."
134
+