[tools] Fix .apps generated by MacPack not running when Mono 5 is installed on macOS...
commita6e7c1f81c949577480d35c161ca2b75a190c91c
authorNate Woolls <nwoolls@gmail.com>
Tue, 21 Nov 2017 03:27:10 +0000 (20 22:27 -0500)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 21 Nov 2017 03:27:10 +0000 (21 04:27 +0100)
tree12ffeca19d01a32404b66a076b61d1a2d909c928
parentfab0ce54d329b57dbd6a4a37e8de3b96fcb057ef
[tools] Fix .apps generated by MacPack not running when Mono 5 is installed on macOS (#6024)

* [tools] Fix .apps generated by MacPack not running when Mono 5 is installed on macOS

The current script used by the generated .app only checks for Mono in /usr/local/bin, but not in /Library/Frameworks/Mono.framework/Versions/Current/Commands (the default location for new installations of Mono 5 on macOS)

* [tools] Fix WinForms .apps generated by MacPack not running when Mono 5 is installed on 64-bit macOS

Latest Mono now defaults to running mono64 on a 64-bit OS but there is currently no WinForms support on 64-bit Mono. Pass --arch=32 to mono when wrapping a WinForms app with MacPack.
mcs/tools/macpack/LOADER
mcs/tools/macpack/MacPack.cs