chore: update clash
This commit is contained in:
parent
ac66c086f8
commit
b79456e91b
@ -17,7 +17,7 @@ const SIDECAR_HOST = execSync("rustc -vV")
|
|||||||
/* ======= clash ======= */
|
/* ======= clash ======= */
|
||||||
const CLASH_URL_PREFIX =
|
const CLASH_URL_PREFIX =
|
||||||
"https://github.com/Dreamacro/clash/releases/download/premium/";
|
"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 = {
|
const CLASH_MAP = {
|
||||||
"win32-x64": "clash-windows-amd64",
|
"win32-x64": "clash-windows-amd64",
|
||||||
@ -45,10 +45,10 @@ const META_MAP = {
|
|||||||
|
|
||||||
const { platform, arch } = process;
|
const { platform, arch } = process;
|
||||||
if (!CLASH_MAP[`${platform}-${arch}`]) {
|
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}`]) {
|
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() {
|
function clash() {
|
||||||
|
Loading…
Reference in New Issue
Block a user