Skip to content

Commit

Permalink
actual download
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Jul 24, 2024
1 parent 203e714 commit 4a1b3e4
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/views/DownloadPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
:type="Color.RED"
@click="downloadLatest"
>
Download Gameclient
<a :href="downloadurl">
Download Gameclient
</a>
</BaseCCButton>
<BaseCCButton
v-if="!user.earlyAccess?.invitedByUser"
Expand Down Expand Up @@ -56,7 +58,9 @@
:type="Color.RED"
@click="downloadLatest"
>
Download Gameclient
<a :href="downloadurl">
Download Gameclient
</a>
</BaseCCButton>
<BaseCCButton
:type="Color.TEAL"
Expand Down Expand Up @@ -88,8 +92,18 @@ const addressValid = ref(false);
const inviteAddress = ref("");
const inviteMode = ref(false);
const downloadurl = navigator.appVersion.indexOf("Win") != -1 ?
"https://cardchain.crowdcontrol.network/files/WindowsLauncher.zip" :
navigator.appVersion.indexOf("Mac") != -1 ?
"https://cardchain.crowdcontrol.network/files/MacLauncher.tar.gz" :
navigator.appVersion.indexOf("Linux") != -1 ?
"https://cardchain.crowdcontrol.network/files/LinuxLauncher.tar.gz" :
"THEHELL";
const downloadLatest = () => {
console.log("download ");
// TODO remove this once download is fine for users
// but now keep it in, because we want to read this for users that have pain
console.log("download ", navigator.appVersion);
};
const inviteUser = () => {
Expand Down

0 comments on commit 4a1b3e4

Please sign in to comment.