mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
website: link to distribution packages
This commit is contained in:
parent
6668e639d5
commit
8f7468cd60
@ -41,6 +41,14 @@ export const downloadMatrix: DownloadMatrix = {
|
|||||||
},
|
},
|
||||||
zip: {
|
zip: {
|
||||||
name: "Portable (.zip)"
|
name: "Portable (.zip)"
|
||||||
|
},
|
||||||
|
scoop: {
|
||||||
|
name: "Scoop",
|
||||||
|
url: "https://scoop.sh/#/apps?q=triliumnext"
|
||||||
|
},
|
||||||
|
winget: {
|
||||||
|
name: "Winget",
|
||||||
|
url: "https://github.com/microsoft/winget-pkgs/tree/master/manifests/t/TriliumNext/Notes/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -66,6 +74,14 @@ export const downloadMatrix: DownloadMatrix = {
|
|||||||
},
|
},
|
||||||
zip: {
|
zip: {
|
||||||
name: "Portable (.zip)"
|
name: "Portable (.zip)"
|
||||||
|
},
|
||||||
|
nixpkgs: {
|
||||||
|
name: "nixpkgs",
|
||||||
|
url: "https://search.nixos.org/packages?query=trilium-next"
|
||||||
|
},
|
||||||
|
aur: {
|
||||||
|
name: "AUR",
|
||||||
|
url: "https://aur.archlinux.org/packages/triliumnext-bin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -107,6 +123,10 @@ export const downloadMatrix: DownloadMatrix = {
|
|||||||
name: "ARM (.tar.xz)",
|
name: "ARM (.tar.xz)",
|
||||||
url: `https://github.com/TriliumNext/Notes/releases/download/v${version}/TriliumNextNotes-Server-v${version}-linux-arm64.tar.xz`
|
url: `https://github.com/TriliumNext/Notes/releases/download/v${version}/TriliumNextNotes-Server-v${version}-linux-arm64.tar.xz`
|
||||||
},
|
},
|
||||||
|
nixos: {
|
||||||
|
name: "NixOS module",
|
||||||
|
url: "https://search.nixos.org/options?query=trilium-server"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pikapod: {
|
pikapod: {
|
||||||
@ -129,7 +149,8 @@ export const downloadMatrix: DownloadMatrix = {
|
|||||||
|
|
||||||
export function buildDownloadUrl(app: App, platform: Platform, format: string, architecture: Architecture): string {
|
export function buildDownloadUrl(app: App, platform: Platform, format: string, architecture: Architecture): string {
|
||||||
if (app === "desktop") {
|
if (app === "desktop") {
|
||||||
return `https://github.com/TriliumNext/Notes/releases/download/v${version}/TriliumNextNotes-v${version}-${platform}-${architecture}.${format}`;
|
return downloadMatrix.desktop[platform]?.downloads[format].url ??
|
||||||
|
`https://github.com/TriliumNext/Notes/releases/download/v${version}/TriliumNextNotes-v${version}-${platform}-${architecture}.${format}`;
|
||||||
} else if (app === "server") {
|
} else if (app === "server") {
|
||||||
return downloadMatrix.server[platform]?.downloads[format].url ?? "#";
|
return downloadMatrix.server[platform]?.downloads[format].url ?? "#";
|
||||||
} else {
|
} else {
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
{recommended[1].name}
|
{recommended[1].name}
|
||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="flex justify-center gap-4 text-sm {textColor} mt-2">
|
<div class="flex flex-wrap justify-center gap-4 text-sm {textColor} mt-2">
|
||||||
{#each Object.entries(platform.downloads).filter((e) => !e[1].recommended) as [format, download]}
|
{#each Object.entries(platform.downloads).filter((e) => !e[1].recommended) as [format, download]}
|
||||||
<a href={buildDownloadUrl(app, platformId as Platform, format, architecture)} class="hover:underline block">
|
<a href={buildDownloadUrl(app, platformId as Platform, format, architecture)} class="hover:underline block">
|
||||||
{download.name}
|
{download.name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user