Is the correct way to make the bold binary option preferable to be 32-bit on 64-bit OS X 10.6?

Suppose I ask the user: “Do you want to run in 32-bit mode or 64-bit mode” and they select 32-bit. How to register this fact in the operating system? I looked at the arch command , but I don't need to write a script that wraps the binary. I suspect that there is a plist-y method, but I can not find the documentation (except for the arch).

+3
source share
3 answers

Try to use this key Info.plist, LSArchitecturePriority:

<key>LSArchitecturePriority</key>
<array>
    <string>i386</string>
    <string>x86_64</string>
    <string>ppc</string>
    <string>ppc64</string>
</array>

, . , , . , script.

+5

- ARCHPREFERENCE, .

0

Source: https://habr.com/ru/post/1716545/


All Articles