@mcesystems/apple-kit 1.0.35 → 1.0.37
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/package.json
CHANGED
|
Binary file
|
|
@@ -97,31 +97,63 @@ for tool in "${TOOLS[@]}"; do
|
|
|
97
97
|
fi
|
|
98
98
|
done
|
|
99
99
|
|
|
100
|
-
# Copy required DLLs
|
|
100
|
+
# Copy required DLLs by discovering dependencies
|
|
101
101
|
echo ""
|
|
102
|
-
echo "
|
|
102
|
+
echo "Discovering and copying required DLLs..."
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
|
|
104
|
+
# Function to recursively find all DLL dependencies
|
|
105
|
+
find_dll_deps() {
|
|
106
|
+
local file="$1"
|
|
107
|
+
ldd "$file" 2>/dev/null | grep '/mingw64' | awk '{print $3}' | sort -u
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
# Collect all unique DLLs needed by all tools
|
|
111
|
+
ALL_DLLS=""
|
|
112
|
+
for tool in "${TOOLS[@]}"; do
|
|
113
|
+
if [[ -f "$TARGET_DIR/$tool" ]]; then
|
|
114
|
+
TOOL_DLLS=$(find_dll_deps "$TARGET_DIR/$tool")
|
|
115
|
+
ALL_DLLS="$ALL_DLLS $TOOL_DLLS"
|
|
116
|
+
fi
|
|
117
|
+
done
|
|
118
|
+
|
|
119
|
+
# Also check dependencies of the DLLs themselves (transitive deps)
|
|
120
|
+
for dll_path in $ALL_DLLS; do
|
|
121
|
+
if [[ -f "$dll_path" ]]; then
|
|
122
|
+
NESTED_DLLS=$(find_dll_deps "$dll_path")
|
|
123
|
+
ALL_DLLS="$ALL_DLLS $NESTED_DLLS"
|
|
124
|
+
fi
|
|
125
|
+
done
|
|
126
|
+
|
|
127
|
+
# Get unique list
|
|
128
|
+
UNIQUE_DLLS=$(echo "$ALL_DLLS" | tr ' ' '\n' | sort -u | grep -v '^$')
|
|
129
|
+
|
|
130
|
+
# Copy each DLL
|
|
131
|
+
for dll_path in $UNIQUE_DLLS; do
|
|
132
|
+
if [[ -f "$dll_path" ]]; then
|
|
133
|
+
dll_name=$(basename "$dll_path")
|
|
134
|
+
cp "$dll_path" "$TARGET_DIR/"
|
|
135
|
+
echo "✓ Copied $dll_name"
|
|
136
|
+
fi
|
|
137
|
+
done
|
|
138
|
+
|
|
139
|
+
# Also copy these common runtime DLLs that might not show up in ldd
|
|
140
|
+
RUNTIME_DLLS=(
|
|
141
|
+
"libgcc_s_seh-1.dll"
|
|
142
|
+
"libwinpthread-1.dll"
|
|
143
|
+
"libstdc++-6.dll"
|
|
109
144
|
"libssl-3-x64.dll"
|
|
110
145
|
"libcrypto-3-x64.dll"
|
|
111
|
-
"libzip-5.dll"
|
|
112
146
|
"liblzma-5.dll"
|
|
113
147
|
"libzstd.dll"
|
|
114
|
-
"
|
|
115
|
-
"libwinpthread-1.dll"
|
|
116
|
-
"libstdc++-6.dll"
|
|
148
|
+
"zlib1.dll"
|
|
117
149
|
)
|
|
118
150
|
|
|
119
|
-
|
|
120
|
-
|
|
151
|
+
echo ""
|
|
152
|
+
echo "Copying runtime DLLs..."
|
|
153
|
+
for dll in "${RUNTIME_DLLS[@]}"; do
|
|
154
|
+
if [[ -f "$MINGW_BIN/$dll" ]] && [[ ! -f "$TARGET_DIR/$dll" ]]; then
|
|
121
155
|
cp "$MINGW_BIN/$dll" "$TARGET_DIR/"
|
|
122
156
|
echo "✓ Copied $dll"
|
|
123
|
-
else
|
|
124
|
-
echo "- Skipping $dll (not found)"
|
|
125
157
|
fi
|
|
126
158
|
done
|
|
127
159
|
|