diff --git a/.gitignore b/.gitignore index 0e301f8c4..b984f706b 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,7 @@ test/cases/**/*.actual.png glad.zip /Box_test.ppm /Box_test_diff.ppm + +bin +lib +pyvenv.cfg \ No newline at end of file diff --git a/Makefile b/Makefile index ad8379f7e..78ef47fc9 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/munkipkg/.gitignore b/munkipkg/.gitignore new file mode 100644 index 000000000..e3bed67dd --- /dev/null +++ b/munkipkg/.gitignore @@ -0,0 +1,3 @@ +build +payload/Applications/Ghostty.app +!payload/Applications \ No newline at end of file diff --git a/munkipkg/build-info.yaml b/munkipkg/build-info.yaml new file mode 100644 index 000000000..7265a58b6 --- /dev/null +++ b/munkipkg/build-info.yaml @@ -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' \ No newline at end of file diff --git a/munkipkg/payload/Applications/.gitignore b/munkipkg/payload/Applications/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/munkipkg/scripts/postinstall b/munkipkg/scripts/postinstall new file mode 100755 index 000000000..63cb0207c --- /dev/null +++ b/munkipkg/scripts/postinstall @@ -0,0 +1,2 @@ +#!/bin/bash +ln -s /Applications/Ghostty.app/Contents/MacOS/ghostty /usr/local/bin/ghostty \ No newline at end of file