Installer for a simple command line tool for Mac OS?

How can I create a bootable for beginners (installation loader) installer for the Mac OS X command-line tool and where the binary should be installed so that a novice user who does not know the shell path can just open a terminal application and enter "foo" to start only What is the installed foo tool?

Can the installer also install the documentation so that the user can enter "man foo"?

Are there any other options that should be considered in order to use the clean command line tool (stdin, stdout) for Mac beginners?

+3
source share
1 answer

What is the minimum version of OS X you are planning? 10.6 (and IIRC 10.5) include / usr / local / bin in the PATH by default, but 10.4 did not. Until you need to support 10.4, you just have to put the executable in / usr / local / bin and the man page in / usr / local / share / man / man 1 (or regardless of the number of the corresponding chapter).

Apple PackageMaker ( Xcode). bin share/man/man1 . PackageMaker . . /usr/local. "" , (/, , root/admin, rwxrwxr-x perms , rw-rw-r-- ). - (,.DS_Store) , . , , . , , , .

+4

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


All Articles