Add tiny wrapper to start from '$HOME'

This commit is contained in:
Semyon Pisarev 2017-01-15 19:46:23 +03:00 committed by Bryce Fisher-Fleig
parent dc72b1324f
commit 2f0e31888f
3 changed files with 10 additions and 4 deletions

View File

@ -26,9 +26,9 @@ $(TARGET):
app: | $(APP_NAME) ## Clone Alacritty.app template and mount binary
$(APP_NAME): $(TARGET) $(APP_TEMPLATE)
@mkdir -p $(APP_DIR)
@cp -R $(APP_TEMPLATE) $(APP_DIR)
@cp $(APP_BINARY) $(APP_BINARY_DIR)
@mkdir -p $(APP_BINARY_DIR)
@cp -fRp $(APP_TEMPLATE) $(APP_DIR)
@cp -fp $(APP_BINARY) $(APP_BINARY_DIR)
@echo "Created '$@' in '$(APP_DIR)'"
dmg: | $(DMG_NAME) ## Pack Alacritty.app into .dmg

View File

@ -5,7 +5,7 @@
<key>CFBundleDisplayName</key>
<string>Alacritty</string>
<key>CFBundleExecutable</key>
<string>alacritty</string>
<string>launcher</string>
<!-- <key>CFBundleIdentifier</key> -->
<!-- <string>alacritty</string> -->
<key>CFBundleName</key>

View File

@ -0,0 +1,6 @@
#!/bin/bash
BIN_DIR=$(dirname $0)
cd "$HOME"
exec "$BIN_DIR/alacritty" "$@"