Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
chore: update clash
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Jan 30, 2023
1 parent ac66c08 commit b79456e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const SIDECAR_HOST = execSync("rustc -vV")
/* ======= clash ======= */
const CLASH_URL_PREFIX =
"https://github.com/Dreamacro/clash/releases/download/premium/";
const CLASH_LATEST_DATE = "2022.11.25";
const CLASH_LATEST_DATE = "2023.01.29";

const CLASH_MAP = {
"win32-x64": "clash-windows-amd64",
Expand Down Expand Up @@ -45,10 +45,10 @@ const META_MAP = {

const { platform, arch } = process;
if (!CLASH_MAP[`${platform}-${arch}`]) {
throw new Error(`clash unsupport platform "${platform}-${arch}"`);
throw new Error(`clash unsupported platform "${platform}-${arch}"`);
}
if (!META_MAP[`${platform}-${arch}`]) {
throw new Error(`clash meta unsupport platform "${platform}-${arch}"`);
throw new Error(`clash meta unsupported platform "${platform}-${arch}"`);
}

function clash() {
Expand Down

0 comments on commit b79456e

Please sign in to comment.