From a3a6c7eaf0df9f1c4203bbdc11abda7f7f91270c Mon Sep 17 00:00:00 2001 From: "James M. Allen" Date: Wed, 14 Dec 2016 10:04:33 -0500 Subject: [PATCH] Adding compatibility for OSX 10.12.2 Mail.app, updating build script to automatically put UUID in the correct place and avoid duplicates --- GMailinator.xcodeproj/project.pbxproj | 2 +- GMailinator/Info.plist | Bin 3174 -> 1966 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/GMailinator.xcodeproj/project.pbxproj b/GMailinator.xcodeproj/project.pbxproj index 47d3494..98126b0 100644 --- a/GMailinator.xcodeproj/project.pbxproj +++ b/GMailinator.xcodeproj/project.pbxproj @@ -196,7 +196,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "echo \"Grabbing the mail app uuid for your version....\"\necho \"the Source_ROOT ${SOURCE_ROOT}\"\n\ndefaults write ${SOURCE_ROOT}/GMailinator/Info.plist SupportedPluginCompatibilityUUIDs -array-add \"`${SOURCE_ROOT}/find_uuid.sh`\""; + shellScript = "full_version=$(sw_vers -productVersion)\nmajor_version=$(echo $full_version | awk -F \\. {'print $1'})\nminor_version=$(echo $full_version | awk -F \\. {'print $2'})\n\necho \"OSX v${major_version}.${minor_version}\"\n\nif [ \"$major_version\" -ge \"10\" -a \"$minor_version\" -ge \"12\" ]; then\n compatibility_key=Supported${major_version}.${minor_version}PluginCompatibilityUUIDs\nelse\n compatibility_key=SupportedPluginCompatibilityUUIDs\nfi\n\nmail_uuid=$(${SOURCE_ROOT}/find_uuid.sh)\n\necho \"UUID for your version of Mail.app: ${mail_uuid}\"\n\nif defaults read ${SOURCE_ROOT}/GMailinator/Info.plist ${compatibility_key} | grep \"${mail_uuid}\" >/dev/null; then\n echo \"UUID already exists in ${compatibility_key}\"\nelse\n echo \"Adding UUID to ${compatibility_key}\"\n defaults write ${SOURCE_ROOT}/GMailinator/Info.plist ${compatibility_key} -array-add \"${mail_uuid}\"\nfi"; }; /* End PBXShellScriptBuildPhase section */ diff --git a/GMailinator/Info.plist b/GMailinator/Info.plist index c01268fe3928048149a7ef230ab678f9983f0666..2b90c37bedf3e7b83c4a4c0ec1c6d944c8dcb9b1 100644 GIT binary patch delta 1037 zcmYk5U1-x#6vuCp=5FdfGVA7At@KEFNK_G()5v3?7sE7zE;>UxJiZ4F+=!1d};*;}1eUynHc)Q-B7jl2+<9|+04rH$LN$c#C zW#Ez{il2oJhUHv5Y-n7xcu7-pORLbf)V-{|V|k~?D}|zcv3_aW_8mK=!Ci4VAx|jj zgIP1DA5zk)vUd~}bWP|SRriz&s5q{p9GWupglWy#I6v)Z!Wy+~S*GpixiO=h$HjzM zu#khNu*bm8%z*>LN@+4NB$tahL$5XKt(@k2TMjR@m&@45X@ckKH&44JwAO_g-7aCX zs0r??&)prGAdISGHZEqdg^YxON+nJ3R*th?4^h->#!&V+%IoPFiwx|od}6(vCip5Z z8Q-iXEUl}OC-rREseS_)pgJoybo;;ja855e_!zDR+m!T}ft+KeU7!O^(%sOp+v;6a zoG&7$Y?C*){wrEgrN!8+C>|-GtXVoKi9so33L%gHCa}N^umJ{nFby2g1s;+o1VkW# zFtJi3lO-7hbYKvFgjg5^i4`Y)HS({vwBYHWM6@itEuNx0Px+GaCuN|qrqd~JQNE{aUR28` zDbG;8p!`9(c5zL2l=2$oz>-?r*W`B}*_}ezz+}ayeJ{K4 z49kJ7@lZ4n8|q62BC;~nAC1Qo{e8)d6pe>PaUxmFlRsm6zce95K1A}0g?D_(@23~=; z;0u^%nwc(UfKeHXxx(CMo-uEjkIWqNn{8s-SRZ?iz0JO1zjJPG8;7_H+*9rY_s8XT z?RD9%8?M)`uY3z1;V1dC{3HGy{|mZcBisTr@C-Z`gO}iCcpct^ci>(406vEA;5_`@ Qz<`CrQUays*Y5`S7tVAK7XSbN literal 3174 zcmds3%W@i55M9S#F=2ma?)#C#a^0t+vLsUmrJPl23}ZCq;ZZQi)+gmR@@4745|+e} zO0*0sVEXhq-F>=Y_~zT9$!@F7wq7k?4@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