Make the docs and man pages available in the macos bundle as well

This commit is contained in:
Kovid Goyal
2022-08-19 12:38:10 +05:30
parent 1f499a7c6c
commit 3288400005
5 changed files with 31 additions and 2 deletions

View File

@@ -1280,6 +1280,8 @@ def create_macos_bundle_gunk(dest: str) -> None:
os.mkdir(ddir / 'Contents')
with open(ddir / 'Contents/Info.plist', 'wb') as fp:
fp.write(macos_info_plist())
copy_man_pages(str(ddir))
copy_html_docs(str(ddir))
os.rename(ddir / 'share', ddir / 'Contents/Resources')
os.rename(ddir / 'bin', ddir / 'Contents/MacOS')
os.rename(ddir / 'lib', ddir / 'Contents/Frameworks')