From 3d3bd911c61a8ccf717ee120417b98b7ac200598 Mon Sep 17 00:00:00 2001 From: BK Date: Tue, 31 Dec 2024 19:17:55 +0100 Subject: [PATCH] add munkipkg for build pkg that adds ghostty to path at install time --- .gitignore | 4 ++++ Makefile | 8 ++++++++ munkipkg/.gitignore | 3 +++ munkipkg/build-info.yaml | 9 +++++++++ munkipkg/payload/Applications/.gitignore | 0 munkipkg/scripts/postinstall | 2 ++ 6 files changed, 26 insertions(+) create mode 100644 munkipkg/.gitignore create mode 100644 munkipkg/build-info.yaml create mode 100644 munkipkg/payload/Applications/.gitignore create mode 100755 munkipkg/scripts/postinstall 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