From a08dc98055d2018252043b99fe7492469cf18e47 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sun, 4 Jul 2021 15:05:12 +0200 Subject: [PATCH] Download universal APK instead of first one for preview releases (#701) * Download universal APK instead of first one * Support preview APK when it reaches 10k commits Co-authored-by: Soitora Co-authored-by: Soitora --- src/.vuepress/components/DownloadButtons.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/.vuepress/components/DownloadButtons.vue b/src/.vuepress/components/DownloadButtons.vue index 1dcf2a55..4b9055a5 100644 --- a/src/.vuepress/components/DownloadButtons.vue +++ b/src/.vuepress/components/DownloadButtons.vue @@ -42,7 +42,7 @@ export default { } try { const { data } = await this.$store.dispatch("getPreviewReleaseData"); - const apkAsset = data.assets.find((a) => a.name.includes(".apk")); + const apkAsset = data.assets.find((a) => /^tachiyomi-r\d{4,}.apk/.test(a.name)); this.$data.previewTagName = data.tag_name; this.$data.previewbrowserDownloadUrl = apkAsset.browser_download_url; } catch (e) {