#!/usr/bin/env bash set -e script_path=`readlink -f $0` script_dir=`dirname $script_path` cd "$script_dir" if [ ! -f ~/.local/share/fonts/Lato-Regular.ttf ]; then mkdir -p ~/.local/share/fonts cp ./fonts/Lato-Regular.ttf ~/.local/share/fonts/Lato-Regular.ttf fc-cache fi if [ ! -f ~/.local/share/fonts/Lato-Bold.ttf ]; then mkdir -p ~/.local/share/fonts cp ./fonts/Lato-Bold.ttf ~/.local/share/fonts/Lato-Bold.ttf fc-cache fi platform=`sibs platform` if [[ "$NATIVE_STYLE" -eq 1 ]]; then ./sibs-build/$platform/debug/dchat $@ else env GTK_THEME=Adwaita:light ./sibs-build/$platform/debug/dchat $@ fi