修改后 Verge 只有 Meta 内核
sudo xattr -r -d com.apple.quarantine /Applications/ClashVerge.app
sudo chown root:admin /Applications/ClashVerge.app/Contents/MacOS/clash-meta
sudo chmod +sx /Applications/ClashVerge.app/Contents/MacOS/clash-meta
sudo setcap cap_net_bind_service,cap_net_admin=+ep /usr/bin/clash-meta
apt install libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev -y
-
Download build tool, msvc required https://visualstudio.microsoft.com/visual-cpp-build-tools/
-
Add patch.exe to PATH DelSkayn/rquickjs#88 (comment)
yarn install
# force update to latest version
# yarn run check --force
yarn run check
Then run
yarn dev
# run it in another way if app instance exists
yarn dev:diff
build
yarn build