From b17c9ae35bc62f295c7dabcb02760b7f4a7bee80 Mon Sep 17 00:00:00 2001 From: Seaton Jiang Date: Tue, 4 Aug 2020 10:11:34 +0800 Subject: [PATCH] feat: add china source mirror --- inc/theme-core.php | 2 +- inc/update-checker/update.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 inc/update-checker/update.json diff --git a/inc/theme-core.php b/inc/theme-core.php index e0071ec..fb8f5c7 100644 --- a/inc/theme-core.php +++ b/inc/theme-core.php @@ -179,7 +179,7 @@ add_filter('get_avatar', 'get_https_avatar'); // 主题更新检测 $myUpdateChecker = Puc_v4_Factory::buildUpdateChecker( - 'https://github.com/vtrois/kratos/', + 'https://raw.githubusercontent.com/vtrois/kratos/master/inc/update-checker/update.json', get_template_directory() . '/functions.php', 'Kratos' ); diff --git a/inc/update-checker/update.json b/inc/update-checker/update.json new file mode 100644 index 0000000..43048b2 --- /dev/null +++ b/inc/update-checker/update.json @@ -0,0 +1,5 @@ +{ + "version": "3.1.2", + "details_url": "https://github.com/vtrois/kratos/releases/tag/v3.1.2", + "download_url": "https://mirrors.vtrois.com/kratos/v3.1.2.zip" +}