Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/web/src/app/download/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Metadata } from "next";

import { Header } from "@/components/header";
import { Footer } from "@/components/footer";
import { DownloadDesktopButton } from "@/components/download-desktop-button";
import { DownloadDesktopButton, RELEASES_URL } from "@/components/download-desktop-button";

const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || "https://mydevtools.tech";

Expand Down Expand Up @@ -54,7 +54,7 @@ export default function DownloadPage() {
Each release ships a <code>.sha256</code> checksum on the{" "}
<a
className="underline underline-offset-2"
href="https://github.com/mydevtools-tech/mydevtools-releases/releases/latest"
href={RELEASES_URL}
target="_blank"
rel="noreferrer"
>
Expand Down
7 changes: 5 additions & 2 deletions apps/web/src/components/download-desktop-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ import { Download } from "lucide-react";

import { Button } from "@/components/ui/button";

/** GitHub's permanent "latest release" page — releases live in the source repo. */
export const RELEASES_URL =
"https://github.com/mydevtools-tech/mydevtools/releases/latest";

/**
* GitHub's permanent "latest release" redirect — always serves the newest DMG.
* release-local.sh uploads a version-less MyDevTools.dmg to every release.
*/
export const DMG_URL =
"https://github.com/mydevtools-tech/mydevtools/releases/latest/download/MyDevTools.dmg";
export const DMG_URL = `${RELEASES_URL}/download/MyDevTools.dmg`;

/** Minimal Apple logo (lucide has no Apple icon in this version). */
export function AppleGlyph({ className }: { className?: string }) {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { motion, AnimatePresence, useReducedMotion } from "framer-motion";
import { ArrowUp } from "lucide-react";
import { Logo } from "./logo";

/** Source repository — AGPL v3. Built releases live in mydevtools-releases. */
/** Source repository — AGPL v3. Built releases ship on this repo's releases page. */
export const SOURCE_URL = "https://github.com/mydevtools-tech/mydevtools";

const footerLinks = [
Expand Down
Loading