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" +}