Ryujinx-Website/src/pages/Download.vue

141 lines
4.3 KiB
Vue
Raw Normal View History

<template>
<Layout>
<div>
<section>
2020-02-10 15:59:13 +01:00
<v-row class="my-5" align="center">
<v-container fluid>
<v-row align="start" justify="center">
<v-col cols="12" md="6">
<div class="text-center">
<p class="display-1">Building Ryujinx and latest downloads</p>
2020-06-15 21:49:01 +02:00
<v-img :aspect-ratio="49/32" class="text-center" src="/public/shell.png" alt="Shell" />
<v-container>
2020-02-10 15:59:13 +01:00
<v-row align="start" justify="center">
2020-06-15 21:49:01 +02:00
<v-col>
<div class="text-h5">
Automatically compiled builds
</div>
<p>
<v-btn
text
small
target="_blank"
rel="noopener"
href="https://ci.appveyor.com/project/gdkchan/ryujinx?branch=master"
>
<g-image
width="140"
src="https://ci.appveyor.com/api/projects/status/ssg4jwu6ve3k594s?svg=true"
alt="AppVeyor Badge"
/>
</v-btn>
</p>
<DownloadButton
color="orange"
platform="windows"
:version="version"
:href="`${downloadURL}-win_x64.zip`"
:click="trackDownload"
:loading="isLoading"
/>
<DownloadButton
color="orange"
platform="linux"
:version="version"
:href="`${downloadURL}-linux_x64.tar.gz`"
:click="trackDownload"
:loading="isLoading"
/>
<DownloadButton
color="orange"
platform="apple"
:version="version"
:href="`${downloadURL}-osx_x64.zip`"
:click="trackDownload"
:loading="isLoading"
/>
2020-06-15 21:49:01 +02:00
<p class="mt-4">
<v-btn dark depressed small color="yellow darken-4" href="https://github.com/Ryujinx/Ryujinx/wiki/Changelog" rel="noopener" target="_blank">
Changelog
</v-btn>
</p>
2020-02-10 15:59:13 +01:00
</v-col>
</v-row>
2020-06-15 21:49:01 +02:00
<v-row justify="center">
<v-col>
<p class="text-h5">Building methods</p>
<v-btn dark class="mx-2" color="ryu_blue" to="/build">
<v-icon class="ml-n1 mr-2">fas fa-code</v-icon>.NET Core
</v-btn>
</v-col>
</v-row>
</v-container>
</div>
2020-02-10 15:59:13 +01:00
</v-col>
</v-row>
</v-container>
2020-02-10 15:59:13 +01:00
</v-row>
</section>
</div>
</Layout>
</template>
2020-02-08 16:59:15 +01:00
<page-query>
query {
extraPagesInfo(path: "/download") {
path
title
keywords
}
}
</page-query>
<script>
export default {
data() {
return {
downloadURL: "",
isLoading: true,
version: "Loading ...",
showProfiledBuilds: false,
jobId_profiled: ""
};
},
methods: {
async fetchDownloadURL() {
this.isLoading = true;
let _f = await fetch(
"https://ci.appveyor.com/api/projects/gdkchan/ryujinx/branch/master"
);
let json = await _f.json();
this.version = json.build.version;
const jobId = json.build.jobs[0].jobId;
this.downloadURL = `https://ci.appveyor.com/api/buildjobs/${jobId}/artifacts/ryujinx-${this.version}`;
this.isLoading = false;
},
trackDownload() {
this.$ga.event({
eventCategory: 'release',
eventAction: 'download',
eventLabel: this.version
});
}
},
mounted() {
this.fetchDownloadURL();
}
};
</script>