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 version
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Mar 20, 2022
1 parent bce3363 commit 5cff4e2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5cff4e2

Please sign in to comment.