mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Add tiny wrapper to start from '$HOME'
This commit is contained in:
parent
dc72b1324f
commit
2f0e31888f
3 changed files with 10 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -26,9 +26,9 @@ $(TARGET):
|
||||||
|
|
||||||
app: | $(APP_NAME) ## Clone Alacritty.app template and mount binary
|
app: | $(APP_NAME) ## Clone Alacritty.app template and mount binary
|
||||||
$(APP_NAME): $(TARGET) $(APP_TEMPLATE)
|
$(APP_NAME): $(TARGET) $(APP_TEMPLATE)
|
||||||
@mkdir -p $(APP_DIR)
|
@mkdir -p $(APP_BINARY_DIR)
|
||||||
@cp -R $(APP_TEMPLATE) $(APP_DIR)
|
@cp -fRp $(APP_TEMPLATE) $(APP_DIR)
|
||||||
@cp $(APP_BINARY) $(APP_BINARY_DIR)
|
@cp -fp $(APP_BINARY) $(APP_BINARY_DIR)
|
||||||
@echo "Created '$@' in '$(APP_DIR)'"
|
@echo "Created '$@' in '$(APP_DIR)'"
|
||||||
|
|
||||||
dmg: | $(DMG_NAME) ## Pack Alacritty.app into .dmg
|
dmg: | $(DMG_NAME) ## Pack Alacritty.app into .dmg
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>Alacritty</string>
|
<string>Alacritty</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>alacritty</string>
|
<string>launcher</string>
|
||||||
<!-- <key>CFBundleIdentifier</key> -->
|
<!-- <key>CFBundleIdentifier</key> -->
|
||||||
<!-- <string>alacritty</string> -->
|
<!-- <string>alacritty</string> -->
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
|
|
6
assets/osx/Alacritty.app/Contents/MacOS/launcher
Executable file
6
assets/osx/Alacritty.app/Contents/MacOS/launcher
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BIN_DIR=$(dirname $0)
|
||||||
|
|
||||||
|
cd "$HOME"
|
||||||
|
exec "$BIN_DIR/alacritty" "$@"
|
Loading…
Reference in a new issue