From 0c14e26937410e1d6cbbcdbc1923733a3e903041 Mon Sep 17 00:00:00 2001 From: =bhagwanSingh Date: Fri, 19 Dec 2025 18:59:26 +0530 Subject: [PATCH] Added Mac Build Download URL --- views/download_tracker.ejs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/views/download_tracker.ejs b/views/download_tracker.ejs index d2e626b..7e19618 100644 --- a/views/download_tracker.ejs +++ b/views/download_tracker.ejs @@ -171,12 +171,20 @@ // -------- Download -------- downloadBtn.addEventListener("click", () => { + const activeBtn = document.querySelector(".os-btn.active") + const os = activeBtn.dataset.os; const link = document.createElement("a"); - link.href = `/public/builds/build-1.1.1.1/windows/VA Tracker-Setup-1.1.1.exe`; - link.setAttribute("download", ""); - link.click() + if(os === "mac") { + link.href = `/public/builds/build-1.1.1.1/mac/VA Tracker-1.1.1-universal.dmg`; + link.setAttribute("download", ""); + } else if (os === "windows") { + link.href = `/public/builds/build-1.1.1.1/windows/VA Tracker-Setup-1.1.1.exe`; + link.setAttribute("download", ""); + } + + link.click() // window.location.href = ``; });