Get CI macOS builds

This commit is contained in:
Isaac Marovitz 2023-05-30 17:46:33 -04:00
parent 7d77a27691
commit a569d5cf1d
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
3 changed files with 5 additions and 19 deletions

View File

@ -6,7 +6,6 @@ VITE_COMPATIBILITY_URL=https://github.com/Ryujinx/Ryujinx-Games-List/issues
VITE_GUIDE_URL=https://github.com/Ryujinx/Ryujinx/wiki/Ryujinx-Setup-&-Configuration-Guide
VITE_DISCORD_URL=https://discord.gg/VkQYXAZ
VITE_RELEASE_URL=https://api.github.com/repos/Ryujinx/release-channel-master/releases/latest
VITE_RELEASE_MACOS_URL=https://api.github.com/repos/Ryujinx/release-channel-macos/releases/latest
VITE_OLDER_BUILDS_URL=https://github.com/Ryujinx/release-channel-master/releases
VITE_LDN_BUILD_URL=https://www.patreon.com/posts/ldn-2-5-vulkan-70757628
VITE_PATREON_URL=https://patreon.com/Ryujinx

View File

@ -6,7 +6,6 @@ VITE_COMPATIBILITY_URL=https://github.com/Ryujinx/Ryujinx-Games-List/issues
VITE_GUIDE_URL=https://github.com/Ryujinx/Ryujinx/wiki/Ryujinx-Setup-&-Configuration-Guide
VITE_DISCORD_URL=https://discord.gg/VkQYXAZ
VITE_RELEASE_URL=https://api.github.com/repos/Ryujinx/release-channel-master/releases/latest
VITE_RELEASE_MACOS_URL=https://api.github.com/repos/Ryujinx/release-channel-macos/releases/latest
VITE_OLDER_BUILDS_URL=https://github.com/Ryujinx/release-channel-master/releases
VITE_LDN_BUILD_URL=https://www.patreon.com/posts/introducing-ldn3-74910544
VITE_PATREON_URL=https://patreon.com/Ryujinx

View File

@ -17,7 +17,6 @@ const OLDER_BUILD_URL = import.meta.env.VITE_OLDER_BUILDS_URL as string;
const { t } = useI18n();
const isLoading = ref(true);
const downloadRelease = ref<DownloadRelease>({} as DownloadRelease);
const downloadMacOSRelease = ref<DownloadRelease>({} as DownloadRelease);
const macosBuildUrl = ref("");
const linuxBuildUrl = ref("");
const windowBuildUrl = ref("");
@ -48,6 +47,10 @@ const fetchBuilds = async () => {
windowBuildUrl.value = asset.browser_download_url;
} else if (asset.name.endsWith("linux_x64.tar.gz")) {
linuxBuildUrl.value = asset.browser_download_url;
}
} else if (asset.name.startsWith("test-ava-ryujinx")) {
if (asset.name.endsWith(".app.tar.gz")) {
macosBuildUrl.value = asset.browser_download_url;
}
}
});
@ -55,21 +58,6 @@ const fetchBuilds = async () => {
console.error(err);
}
try {
const result = await axios.get<DownloadRelease>(
import.meta.env.VITE_RELEASE_MACOS_URL
);
downloadMacOSRelease.value = result.data;
downloadMacOSRelease.value?.assets.forEach((asset) => {
if (asset.name.toLowerCase().startsWith("ryujinx")) {
if (asset.name.endsWith(".app.tar.gz")) {
macosBuildUrl.value = asset.browser_download_url;
}
}
});
} catch (err) {}
isLoading.value = false;
};
</script>
@ -183,7 +171,7 @@ const fetchBuilds = async () => {
<div
class="text-xs uppercase text-gray-400 font-semibold tracking-wider mb-4"
>
{{ downloadMacOSRelease.tag_name }}
{{ downloadRelease.tag_name }}
</div>
<div class="relative w-12 mb-8 text-indigo-500 mx-auto">
<img alt="macos logo" src="/assets/images/icons/macos.png" />