feat: windows uses sysproxy.exe for system proxy

This commit is contained in:
huzibaca
2024-10-03 02:09:22 +08:00
Unverified
parent 44b4187365
commit 9a7826752f
2 changed files with 123 additions and 32 deletions

View File

@@ -422,6 +422,12 @@ const resolveEnableLoopback = () =>
downloadURL: `https://github.com/Kuingsmile/uwp-tool/releases/download/latest/enableLoopback.exe`,
});
const resolveWinSysproxy = () =>
resolveResource({
file: "sysproxy.exe",
downloadURL: `https://github.com/clash-verge-rev/sysproxy/releases/download/${arch}/sysproxy.exe`,
});
const tasks = [
// { name: "clash", func: resolveClash, retry: 5 },
{
@@ -455,6 +461,12 @@ const tasks = [
retry: 1,
unixOnly: true,
},
{
name: "windows-sysproxy",
func: resolveWinSysproxy,
retry: 5,
winOnly: true,
},
];
async function runTask() {