add munkipkg for build pkg that adds ghostty to path at install time

This commit is contained in:
BK
2024-12-31 19:17:55 +01:00
parent eaa872216b
commit 3d3bd911c6
6 changed files with 26 additions and 0 deletions

4
.gitignore vendored
View File

@ -17,3 +17,7 @@ test/cases/**/*.actual.png
glad.zip
/Box_test.ppm
/Box_test_diff.ppm
bin
lib
pyvenv.cfg

View File

@ -26,3 +26,11 @@ clean:
macos/build \
macos/GhosttyKit.xcframework
.PHONY: clean
macpkgreleaselocal:
cp -r macos/build/ReleaseLocal/Ghostty.app munkipkg/Applications/Ghostty.app
munkipkg ./munkipkg
macpkgrelease:
cp -r macos/build/Release/Ghostty.app munkipkg/Applications/Ghostty.app
munkipkg ./munkipkg

3
munkipkg/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
build
payload/Applications/Ghostty.app
!payload/Applications

9
munkipkg/build-info.yaml Normal file
View File

@ -0,0 +1,9 @@
distribution_style: false
identifier: com.mitchellh.ghostty
install_location: /
name: Ghostty-${version}.pkg
ownership: recommended
postinstall_action: none
preserve_xattr: false
suppress_bundle_relocation: true
version: '1.0.1'

View File

2
munkipkg/scripts/postinstall Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
ln -s /Applications/Ghostty.app/Contents/MacOS/ghostty /usr/local/bin/ghostty