Ghostty-per-Projekt-Builder: Template + make/rebuild-Skripte
- ghostty-template/Ghostty.app: lokal gebautes Ghostty v1.3.1 mit DockTilePlugin-Patch (eigenes Dock-Icon ueber Contents/Resources/DockIcon.png) - make-ghostty-app.sh: erzeugt pro Projekt eine App; Slots fuer icon/workdir/command/theme/bg/fg/font/font-size - rebuild-template.sh: baut Template lokal neu (nur Xcode, kein Zig/VM), gepinnt auf vendor/libghostty v1.3.1 - ghostty-template/dock-icon.patch: der DockTilePlugin-Patch - icons/robotunits.png - enthaelt zudem die vorausgehende MiniTerm/libghostty-Integration
This commit is contained in:
+5
-1
@@ -15,7 +15,8 @@
|
||||
# [--font-size 13] \
|
||||
# [--font "JetBrains Mono"] \
|
||||
# [--icon ./icons/projekta.png] \ # .png/.jpg (auto-converted) or .icns
|
||||
# [--out ~/Applications]
|
||||
# [--out ~/Applications] \
|
||||
# [--close-on-exit] # close the window when the command exits
|
||||
#
|
||||
# Build the binary fresh? The script runs `swift build -c release` automatically
|
||||
# the first time and reuses the result for further apps.
|
||||
@@ -31,6 +32,7 @@ FONT_SIZE="13"
|
||||
FONT_NAME="Menlo"
|
||||
ICON=""
|
||||
OUTDIR="$HOME/Applications"
|
||||
CLOSE_ON_EXIT="false"
|
||||
|
||||
# ---- parse args -----------------------------------------------------------
|
||||
while [[ $# -gt 0 ]]; do
|
||||
@@ -43,6 +45,7 @@ while [[ $# -gt 0 ]]; do
|
||||
--font) FONT_NAME="$2"; shift 2 ;;
|
||||
--icon) ICON="$2"; shift 2 ;;
|
||||
--out) OUTDIR="$2"; shift 2 ;;
|
||||
--close-on-exit) CLOSE_ON_EXIT="true"; shift ;;
|
||||
-h|--help)
|
||||
grep '^#' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;;
|
||||
*) echo "Unknown option: $1" >&2; exit 1 ;;
|
||||
@@ -139,6 +142,7 @@ cat > "$APP/Contents/Info.plist" <<PLIST
|
||||
<key>MTWindowTitle</key><string>${NAME}</string>
|
||||
<key>MTFontSize</key><integer>${FONT_SIZE}</integer>
|
||||
<key>MTFontName</key><string>${FONT_NAME}</string>
|
||||
<key>MTCloseOnExit</key><${CLOSE_ON_EXIT}/>
|
||||
</dict>
|
||||
</plist>
|
||||
PLIST
|
||||
|
||||
Reference in New Issue
Block a user