summarylogtreecommitdiffstats
path: root/clash-for-windows-bin.install
blob: 9eb6900eee79521e79f2fd53e3bf9b75acd08ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
    echo 'Clash for Windows has it own built-in autostart since 0.18.1.'
    echo 'Enable it will create .desktop file under $HOME/.config/autostart/'
    echo -e "\033[32m To use the TUN mode, you need to run \033[0m"
    echo -e "\033[32m sudo systemctl start clash-core-service@\$USER \033[0m"
    echo -e "\033[32m sudo systemctl enable clash-core-service@\$USER \033[0m"

    setcap cap_net_admin,cap_net_bind_service=ep /usr/bin/clash
}
post_upgrade(){
    post_install
}