From 480f26d6d76c2ce6e7e00e07e9449487e036435e Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 17 Aug 2026 17:19:32 -0700 Subject: [PATCH] Fix Makefile --- clash/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clash/Makefile b/clash/Makefile index b2c9de5..e36e929 100644 --- a/clash/Makefile +++ b/clash/Makefile @@ -45,7 +45,9 @@ deploy-install: deploy-build clash.1 mkdir -p "$(PREFIX)/lib/clash/" cp $(DEPLOY_OUTPUT) "$(PREFIX)/lib/clash/" mkdir -p "$(PREFIX)/bin/" - ln -sf "$(REAL_PREFIX)/lib/clash/clash" "$(PREFIX)/bin/clash" + printf '#!/bin/sh\nexec "$(REAL_PREFIX)/lib/clash/clash" "$${@}"\n' \ + >"$(PREFIX)/bin/clash" + chmod 0755 "$(PREFIX)/bin/clash" mkdir -p "$(PREFIX)/share/man/man1/" cp clash.1 "$(PREFIX)/share/man/man1/"