Files
my-website/src/routes/devops/+page.svelte
2026-02-27 00:55:01 +01:00

27 lines
848 B
Svelte

<script lang="ts">
async function downloadAPK() {
try {
const response = await fetch("https://releases.gilmour109.de/apps/client/calchat.apk");
const blob = await response.blob();
const objectUrl = URL.createObjectURL(blob);
const a = document.createElement("a");
a.style.display = "none";
a.href = objectUrl;
a.download = "calchat.apk";
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(objectUrl);
} catch (error) {
console.error(`coudn't download calchat apk: ${error}`);
}
}
</script>
<h1 class="text-4xl font-bold">This is where CalChat builds can be downloaded from.</h1>
<h3 class="text-xl font-bold">Currently only available for Android arm64</h3>
<button on:click={downloadAPK}>Download APK here!</button>