aboutsummaryrefslogtreecommitdiff
path: root/assets/osx/Alacritty.app
diff options
context:
space:
mode:
Diffstat (limited to 'assets/osx/Alacritty.app')
-rw-r--r--assets/osx/Alacritty.app/Contents/Info.plist32
-rwxr-xr-xassets/osx/Alacritty.app/Contents/MacOS/launcher15
-rw-r--r--assets/osx/Alacritty.app/Contents/Resources/alacritty.icnsbin0 -> 66619 bytes
3 files changed, 47 insertions, 0 deletions
diff --git a/assets/osx/Alacritty.app/Contents/Info.plist b/assets/osx/Alacritty.app/Contents/Info.plist
new file mode 100644
index 00000000..77053db1
--- /dev/null
+++ b/assets/osx/Alacritty.app/Contents/Info.plist
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDisplayName</key>
+ <string>Alacritty</string>
+ <key>CFBundleExecutable</key>
+ <string>launcher</string>
+ <!-- <key>CFBundleIdentifier</key> -->
+ <!-- <string>alacritty</string> -->
+ <key>CFBundleName</key>
+ <string>Alacritty</string>
+ <key>CFBundleIconFile</key>
+ <string>alacritty.icns</string>
+ <key>CFBundleShortVersionString</key>
+ <string>0.1.0</string>
+ <key>CFBundleVersion</key>
+ <string>0.1.0</string>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>NSHighResolutionCapable</key>
+ <true/>
+ <key>NSMainNibFile</key>
+ <string></string>
+ <key>NSSupportsAutomaticGraphicsSwitching</key>
+ <true/>
+</dict>
+</plist>
diff --git a/assets/osx/Alacritty.app/Contents/MacOS/launcher b/assets/osx/Alacritty.app/Contents/MacOS/launcher
new file mode 100755
index 00000000..d3c10724
--- /dev/null
+++ b/assets/osx/Alacritty.app/Contents/MacOS/launcher
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# Dynamically discover canonical path to alacritty binary
+BIN_DIR=$(cd "$(dirname "$0")"; pwd)
+
+# Query OS for locale and setup alacritty shell to conform
+ALACRITTY_LOCALE="$(osascript -e "return user locale of (get system info)")"
+export LANG="${ALACRITTY_LOCALE}.UTF-8"
+export LC_CTYPE="${ALACRITTY_LOCALE}.UTF-8"
+
+# Start alacritty in user's home directory
+cd "$HOME"
+
+# Engage
+exec "$BIN_DIR/alacritty"
diff --git a/assets/osx/Alacritty.app/Contents/Resources/alacritty.icns b/assets/osx/Alacritty.app/Contents/Resources/alacritty.icns
new file mode 100644
index 00000000..bdbc0ca1
--- /dev/null
+++ b/assets/osx/Alacritty.app/Contents/Resources/alacritty.icns
Binary files differ