فهرست منبع

feat: support upgrade for release core

MystiPanda 1 سال پیش
والد
کامیت
9a593d7a61
2فایلهای تغییر یافته به همراه12 افزوده شده و 14 حذف شده
  1. 1 1
      scripts/check.mjs
  2. 11 13
      src/components/setting/mods/clash-core-viewer.tsx

+ 1 - 1
scripts/check.mjs

@@ -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 = {

+ 11 - 13
src/components/setting/mods/clash-core-viewer.tsx

@@ -97,19 +97,17 @@ 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"
-                startIcon={<SwitchAccessShortcut />}
-                loadingPosition="start"
-                loading={upgrading}
-                sx={{ marginRight: "8px" }}
-                onClick={onUpgrade}
-              >
-                {t("Upgrade")}
-              </LoadingButton>
-            )}
+            <LoadingButton
+              variant="contained"
+              size="small"
+              startIcon={<SwitchAccessShortcut />}
+              loadingPosition="start"
+              loading={upgrading}
+              sx={{ marginRight: "8px" }}
+              onClick={onUpgrade}
+            >
+              {t("Upgrade")}
+            </LoadingButton>
             <Button
               variant="contained"
               size="small"