Skip to content

Commit 23f93f1

Browse files
committed
Unified macOS bundle: use binary plist from x64 build (macos 10.9+). Ignore the newer (binary) NIBArchive introduced with macOS 10.13.
1 parent d6c1fe0 commit 23f93f1

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

helpers_bundles.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,22 +216,33 @@ create_unified_vm_macOS() {
216216
# echo ln -s `readlink "$A/$f"` "$O/$f"
217217
elif [ ! -f "$A/$f" ]; then
218218
echo "$A/$f does not exist; how come?"
219-
elif [[ ! "$f" =~ ^.*MainMenu.nib$ ]] && [ ! -f "$B/$f" ]; then
219+
elif [[ ! "$f" =~ ^.*MainMenu\.nib$ ]] && [ ! -f "$B/$f" ]; then
220220
echo "$B/$f does not exist; how come?"
221221
else
222222
case `file -b "$A/$f"` in
223223
Mach-O*)
224224
lipo -create -output "$O/$f" "$A/$f" "$B/$f";;
225225
*)
226-
if [[ "$f" =~ ^.*MainMenu.nib$ ]] || [ cmp -s "$A/$f" "$B/$f" ]; then
226+
if [ -f "$B/$f" ] && (cmp -s "$A/$f" "$B/$f"); then
227227
cp "$A/$f" "$O/$f"
228228
else
229-
echo "EXCLUDING $f because it differs"
230229
case "$f" in
231230
*.plist)
231+
echo "EXCLUDING $f because it differs"
232232
MISMATCHINGPLISTS="$MISMATCHINGPLISTS $f"
233233
;;
234+
*MainMenu.nib)
235+
# Use old binary plist from x64 bundle.
236+
# Ignore NIBArchive keyedobjects-101300.nib.
237+
# Ignore NIBArchive MainMenu.nib from ARM bundle.
238+
if [ -d "$B/$f" ]; then
239+
cp "$B/$f/keyedobjects.nib" "$O/$f"
240+
else
241+
echo "$B/$f should be a directory; how come?"
242+
fi
243+
;;
234244
*.nib)
245+
echo "REPLACING $f because it differs"
235246
MISMATCHINGNIBS="$MISMATCHINGNIBS $f"
236247
echo "using $B version"
237248
cp "$B/$f" "$O/$f"

0 commit comments

Comments
 (0)