Skip to content
Snippets Groups Projects
Unverified Commit 5cff4e29 authored by GyDi's avatar GyDi
Browse files

chore: update clash version

parent bce33639
No related branches found
No related tags found
No related merge requests found
...@@ -8,16 +8,16 @@ import { execSync } from "child_process"; ...@@ -8,16 +8,16 @@ import { execSync } from "child_process";
const cwd = process.cwd(); const cwd = process.cwd();
const FORCE = process.argv.includes("--force"); 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 * get the correct clash release infomation
*/ */
function resolveClash() { function resolveClash() {
const { platform, arch } = process; const { platform, arch } = process;
const CLASH_URL_PREFIX =
"https://github.com/Dreamacro/clash/releases/download/premium/";
const CLASH_LATEST_DATE = "2022.03.19";
// todo // todo
const map = { const map = {
"win32-x64": "clash-windows-amd64", "win32-x64": "clash-windows-amd64",
...@@ -84,7 +84,8 @@ async function resolveSidecar() { ...@@ -84,7 +84,8 @@ async function resolveSidecar() {
console.log(`[INFO]: gunzip finished`); console.log(`[INFO]: gunzip finished`);
execSync(`chmod 755 ${sidecarPath}`); execSync(`chmod 755 ${sidecarPath}`);
console.log(`[INFO]: chmod binary finished`); console.log(`[INFO]: chmod binary finished`);
}); })
.on("error", (error) => console.error(error));
} }
// delete temp dir // delete temp dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment