feat: support upgrade for release core

This commit is contained in:
MystiPanda 2024-05-08 12:48:27 +08:00
parent 30017eeaa0
commit 9a593d7a61
2 changed files with 12 additions and 14 deletions

View File

@ -101,7 +101,7 @@ async function getLatestAlphaVersion() {
/* ======= clash meta stable ======= */
const META_VERSION_URL =
"https://github.com/MetaCubeX/mihomo/releases/latest/download/version.txt";
const META_URL_PREFIX = `https://github.com/MetaCubeX/mihomo/releases/download`;
const META_URL_PREFIX = `https://github.com/clash-verge-rev/mihomo/releases/download`;
let META_VERSION;
const META_MAP = {

View File

@ -97,7 +97,6 @@ export const ClashCoreViewer = forwardRef<DialogRef>((props, ref) => {
<Box display="flex" justifyContent="space-between">
{t("Clash Core")}
<Box>
{clash_core !== "clash-meta" && (
<LoadingButton
variant="contained"
size="small"
@ -109,7 +108,6 @@ export const ClashCoreViewer = forwardRef<DialogRef>((props, ref) => {
>
{t("Upgrade")}
</LoadingButton>
)}
<Button
variant="contained"
size="small"