From 5cff4e299bd4baf49c0bb947dad1fdf9fd94201b Mon Sep 17 00:00:00 2001 From: GyDi Date: Sun, 20 Mar 2022 12:35:49 +0800 Subject: [PATCH] chore: update clash version --- scripts/check.mjs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/check.mjs b/scripts/check.mjs index ad90f00..e9ee436 100644 --- a/scripts/check.mjs +++ b/scripts/check.mjs @@ -8,16 +8,16 @@ import { execSync } from "child_process"; const cwd = process.cwd(); const FORCE = process.argv.includes("--force"); -const CLASH_URL_PREFIX = - "https://github.com/Dreamacro/clash/releases/download/premium/"; -const CLASH_LATEST_DATE = "2022.01.27"; - /** * get the correct clash release infomation */ function resolveClash() { const { platform, arch } = process; + const CLASH_URL_PREFIX = + "https://github.com/Dreamacro/clash/releases/download/premium/"; + const CLASH_LATEST_DATE = "2022.03.19"; + // todo const map = { "win32-x64": "clash-windows-amd64", @@ -84,7 +84,8 @@ async function resolveSidecar() { console.log(`[INFO]: gunzip finished`); execSync(`chmod 755 ${sidecarPath}`); console.log(`[INFO]: chmod binary finished`); - }); + }) + .on("error", (error) => console.error(error)); } // delete temp dir