1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-26 06:42:12 +03:00
wezterm/install.sh
Wez Furlong 67a57f12af Add basic install script and icon
The icon comes from "Smoothicons 7" by Corey Marion which I found
as a royalty free icon searching the internet.  I would love to
have a purpose built icon, but this is sufficient for now.

The install script sets up a macOS application bundle that references
the generated wezterm binary and the icon.  The same technique could
be used to generate a .desktop file for linux.

I've changed the default-prog on macos to be `login -pf $USER` as
that is a better default experience on macOS.
2019-03-23 18:41:10 -07:00

17 lines
320 B
Bash
Executable File

#!/bin/bash
case $OSTYPE in
darwin*)
APP=$HOME/Applications/WezTerm.app
cargo build --release
rm -rf $APP
cp -r assets/macos/WezTerm.app $APP
cp target/release/wezterm $APP
echo "Installed to $APP"
;;
*)
echo "Don't know how to install the app on this system"
exit 1
;;
esac