aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemyon Pisarev <cema.rus@gmail.com>2017-01-15 19:46:23 +0300
committerBryce Fisher-Fleig <hckr1292@gmail.com>2017-03-06 10:27:25 -0800
commit2f0e31888f6d1d347fe5ffb455eb6aa2ad1569c3 (patch)
tree030fc42b37cf2a7590fc33b902b14798140974ad
parentdc72b1324fbd34fcb3b3bd74d479af534007bd4b (diff)
downloadalacritty-2f0e31888f6d1d347fe5ffb455eb6aa2ad1569c3.tar.gz
alacritty-2f0e31888f6d1d347fe5ffb455eb6aa2ad1569c3.zip
Add tiny wrapper to start from '$HOME'
-rw-r--r--Makefile6
-rw-r--r--assets/osx/Alacritty.app/Contents/Info.plist2
-rwxr-xr-xassets/osx/Alacritty.app/Contents/MacOS/launcher6
3 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b4bc91d0..4f4ca807 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/assets/osx/Alacritty.app/Contents/Info.plist b/assets/osx/Alacritty.app/Contents/Info.plist
index acf636e8..77053db1 100644
--- a/assets/osx/Alacritty.app/Contents/Info.plist
+++ b/assets/osx/Alacritty.app/Contents/Info.plist
@@ -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>
diff --git a/assets/osx/Alacritty.app/Contents/MacOS/launcher b/assets/osx/Alacritty.app/Contents/MacOS/launcher
new file mode 100755
index 00000000..707c3205
--- /dev/null
+++ b/assets/osx/Alacritty.app/Contents/MacOS/launcher
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+BIN_DIR=$(dirname $0)
+
+cd "$HOME"
+exec "$BIN_DIR/alacritty" "$@"