Skip to content

Commit

Permalink
Merge pull request #309 from DecentralCardGame/download-gameclient
Browse files Browse the repository at this point in the history
actual download
  • Loading branch information
patrickwieth authored Jul 26, 2024
2 parents 203e714 + 4a1b3e4 commit 06f793c
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 06f793c

Please sign in to comment.