summarylogtreecommitdiffstats
path: root/clash-for-windows-bin.install
diff options
context:
space:
mode:
Diffstat (limited to 'clash-for-windows-bin.install')
-rw-r--r--clash-for-windows-bin.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/clash-for-windows-bin.install b/clash-for-windows-bin.install
new file mode 100644
index 000000000000..abf26ab0bd7b
--- /dev/null
+++ b/clash-for-windows-bin.install
@@ -0,0 +1,15 @@
+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/'
+
+ _parch=$(uname -m | sed "s/x86_64/x64/;s/aarch64/arm64/")
+ echo -e "\033[32m If you want to use clash-meta, install it and run \033[0m"
+ echo -e "\033[32m sudo ln -sf /usr/bin/clash-meta /opt/clash-for-windows/static/files/linux/${_parch}/clash-linux \033[0m\n"
+ 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"
+
+}
+post_upgrade(){
+ post_install
+}