summarylogtreecommitdiffstats
path: root/electronic-wechat-uos-bin.install
blob: d230642df8f0b4e1720c3ab24613ccf6221500fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function note() {
	if [ -f /usr/bin/pamac ]; then
		echo "  ==> [Info]: $@"
	else
	all_off="$(tput sgr0)"
	bold="${all_off}$(tput bold)"
	blue="${bold}$(tput setaf 4)"
	yellow="${bold}$(tput setaf 3)"
    printf "${blue}==>${yellow} [Info]:${bold} $1${all_off}\n"
    fi
}

function post_install(){
    note '如果桌面通知无法送达, 请检查是否正确设置 libnotify'
    note '由于 KWin 5.27 支持 text_input_v1, Electronic WeChat 将会在 KDE 桌面上自动切换到 Wayland 后端'
    note '请在 KDE 系统设置中将虚拟键盘设置为 Fcitx5 并注销'
    note '若要在 KDE 下使用原生 Portal, 添加环境变量 GTK_USE_PORTAL=1'
    note "警告! 使用此软件可能导致暂时性或永久性的封号"
}

function post_upgrade(){
    post_install
}