diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | assets/osx/Alacritty.app/Contents/Info.plist | 2 | ||||
-rwxr-xr-x | assets/osx/Alacritty.app/Contents/MacOS/launcher | 6 |
3 files changed, 10 insertions, 4 deletions
@@ -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" "$@" |