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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"astro-compressor": "^0.4.1",
"astro-icon": "^0.8.1",
"astro-lazy-youtube-embed": "^0.5.4",
"classnames": "^2.5.1",
"platform": "^1.3.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
7 changes: 6 additions & 1 deletion public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/gitbook-access https://app.gitbook.com/invite/-MhmG2mhIIHTtQPuHV_k/acNI2LAF6LtdJW06t4Hc
/devserver https://discord.gg/N3XKxzTrq3
/dev https://audacity.gitbook.io/dev/
/nightly /beta
/nightly /next
/au4win https://nightly.link/audacity/audacity/workflows/au4_build_windows/master
/au4mac https://nightly.link/audacity/audacity/workflows/au4_build_macos/master
/au4lin https://nightly.link/audacity/audacity/workflows/au4_build_linux/master
Expand All @@ -29,6 +29,11 @@
/) /
/vpat /VPAT.pdf

# prerelease
/au4 /next 301
/alpha /next 301
/beta /next 301

# campaign links
/survey https://docs.google.com/forms/d/e/1FAIpQLSd42XPhC69bKUA9kbYiTXboRLaj9Q11_BUEXTK0v0TzWJQmDQ/viewform?usp=dialog
/audacitypromo https://www.youtube.com/watch?v=Lb7jx4wdXXE&mtm_campaign=audacityapp&mtm_content=welcomescreen_video
Expand Down
165 changes: 161 additions & 4 deletions src/assets/data/audacityReleases.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
export type ReleaseInfo = {
name: string;
browser_download_url: string;
checksum: string;
checksum?: string;
type: string;
};

type ReleaseDirectory = {
export type ReleaseDirectory = {
version: string;
win: ReleaseInfo[];
mac: ReleaseInfo[];
lin: ReleaseInfo[];
src: ReleaseInfo[];
src?: ReleaseInfo[];
};

export const audacityReleases: ReleaseDirectory = {
Expand Down Expand Up @@ -127,4 +127,161 @@ export const audacityReleases: ReleaseDirectory = {
type: ".tar.gz",
},
],
};
};

export const hasDownloadAssets = (downloads?: ReleaseDirectory): boolean => {
if (!downloads) {
return false;
}

const { win, mac, lin, src } = downloads;

return Boolean(
(win && win.length)
|| (mac && mac.length)
|| (lin && lin.length)
|| (src && src.length),
);
};

export type PreReleaseEntry = {
id: string;
label: string;
isActive: boolean;
summary: string;
pageHref: string;
downloads: ReleaseDirectory;
};

export const alphaPreRelease: PreReleaseEntry = {
id: "alpha",
label: "Alpha",
isActive: true,
summary:
"Get an early look at the next major release. Expect unfinished features and potential bugs.",
pageHref: "/next",
downloads: {
version: "Audacity 4 Alpha 1",
win: [
{
name: "64 bit",
browser_download_url:
"https://github.com/audacity/audacity/actions/runs/18406361889/artifacts/4237171895",
type: ".zip",
},
],
mac: [
{
name: "ARM 64 zip (Apple Silicon)",
browser_download_url:
"https://github.com/audacity/audacity/actions/runs/18406354692/artifacts/4237536953",
type: ".zip",
},
],
lin: [
{
name: "AppImage",
browser_download_url:
"https://github.com/audacity/audacity/actions/runs/18406368664/artifacts/4237050905",
type: ".zip",
},
],
src: [],
},
};

export const betaPreRelease: PreReleaseEntry = {
id: "beta",
label: "Beta",
isActive: false,
summary: "Help us test upcoming features before they ship.",
pageHref: "/next",
downloads: {
version: "3.5.0 beta",
win: [
{
name: "64 bit installer (recommended)",
browser_download_url:
"https://github.com/audacity/audacity/releases/download/Audacity-3.5.0-beta-3/audacity-win-3.5.0-beta-3-64bit.exe",
checksum:
"ed7de964ed11cbc8f74e815dbcb2cb8487ba136818cf1a148f16cadd4c10f3d0",
type: ".exe",
},
{
name: "64 bit zip file",
browser_download_url:
"https://github.com/audacity/audacity/releases/download/Audacity-3.5.0-beta-3/audacity-win-3.5.0-beta-3-64bit.zip",
checksum:
"52da5c3e2507408d72c4ab425c2e465e3c8ad452b2ac89ddfb3f5bc141d68a03",
type: ".zip",
},
{
name: "32 bit installer",
browser_download_url:
"https://github.com/audacity/audacity/releases/download/Audacity-3.5.0-beta-3/audacity-win-3.5.0-beta-3-32bit.exe",
checksum:
"6bb6c0d3513be7d98c400f43d84cd39992065f4c6460d80b6cb1667733ca95c7",
type: ".exe",
},
{
name: "32 bit zip file",
browser_download_url:
"https://github.com/audacity/audacity/releases/download/Audacity-3.5.0-beta-3/audacity-win-3.5.0-beta-3-32bit.zip",
checksum:
"c313ca3c475b487bf88a42537cbc9454090391250017fe210226b3ca78797d9a",
type: ".zip",
},
],
mac: [
{
name: "Universal dmg (recommended)",
browser_download_url:
"https://github.com/audacity/audacity/releases/download/Audacity-3.5.0-beta-3/audacity-macOS-3.5.0-beta-3-universal.dmg",
checksum:
"9500ede91b837fc12e5106fa33d6603829288b90fb1e28d2d70bfee9db33406e",
type: ".dmg",
},
{
name: "ARM 64 dmg (Apple Silicon)",
browser_download_url:
"https://github.com/audacity/audacity/releases/download/Audacity-3.5.0-beta-3/audacity-macOS-3.5.0-beta-3-arm64.dmg",
checksum:
"0f3e9b9ee8e77d8b8613db8d66927e982bbec870e801811060d3d8fbc25c7698",
type: ".dmg",
},
{
name: "x86_64 dmg (Intel)",
browser_download_url:
"https://github.com/audacity/audacity/releases/download/Audacity-3.5.0-beta-3/audacity-macOS-3.5.0-beta-3-x86_64.dmg",
checksum:
"415342de27b572bd3801f51bd77e850a21701b39e2392c2c347ea8db4da4f122",
type: ".dmg",
},
],
lin: [
{
name: "AppImage",
browser_download_url:
"https://github.com/audacity/audacity/releases/download/Audacity-3.5.0-beta-3/audacity-linux-3.5.0-beta-3-x64.AppImage",
checksum:
"fc5df63e3819f4f59b4366c436579bd1a73b045a4dae28316edf6c23948a06ce",
type: ".AppImage",
},
],
src: [
{
name: "Source code",
browser_download_url:
"https://github.com/audacity/audacity/releases/download/Audacity-3.5.0-beta-3/audacity-sources-3.5.0-beta-3.tar.gz",
checksum:
"53c33ed875f4eb1501707d7989a6de253370a368c1c50a877e5cfa96c02bebdc",
type: ".tar.gz",
},
],
},
};

export const preReleaseList: PreReleaseEntry[] = [
alphaPreRelease,
betaPreRelease,
];
98 changes: 0 additions & 98 deletions src/assets/data/betaReleases.ts

This file was deleted.

Loading