uengine-runner/LoadingBinder/uengine-wayland-install.sh

15 lines
457 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
programPath=$(cd $(dirname $0); pwd)
if [[ ! -f /usr/bin/uengine ]]; then
echo 未安装uengine请先安装
exit 1
fi
if [[ -f /usr/bin/uengine-session ]] ;then
echo 已经安装补丁,无需重复安装!
exit 1
fi
sudo mv /usr/bin/uengine /usr/bin/uengine-session
sudo cp "$programPath/uengine" /usr/bin/uengine
sudo chmod +x /usr/bin/uengine
sudo systemctl restart uengine-session.service
echo 补丁安装完成!