Skip to content

Commit

Permalink
Unified macOS bundle: Use regex matching to work around MainMenu.nib
Browse files Browse the repository at this point in the history
  • Loading branch information
marceltaeumel committed Jan 16, 2024
1 parent ea088d9 commit d6c1fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers_bundles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,14 @@ create_unified_vm_macOS() {
# echo ln -s `readlink "$A/$f"` "$O/$f"
elif [ ! -f "$A/$f" ]; then
echo "$A/$f does not exist; how come?"
elif [ "$f" != *"MainMenu.nib" ] && [ ! -f "$B/$f" ]; then
elif [[ ! "$f" =~ ^.*MainMenu.nib$ ]] && [ ! -f "$B/$f" ]; then
echo "$B/$f does not exist; how come?"
else
case `file -b "$A/$f"` in
Mach-O*)
lipo -create -output "$O/$f" "$A/$f" "$B/$f";;
*)
if [ "$f" == *"MainMenu.nib" ] || [ cmp -s "$A/$f" "$B/$f" ]; then
if [[ "$f" =~ ^.*MainMenu.nib$ ]] || [ cmp -s "$A/$f" "$B/$f" ]; then
cp "$A/$f" "$O/$f"
else
echo "EXCLUDING $f because it differs"
Expand Down

0 comments on commit d6c1fe0

Please sign in to comment.