Skip to content

Build your personal knowledge base with Trilium Notes

refactor(website/download): read version number from package.json

Elian Dorancf47abe849dd
diff --git a/apps/website/src/lib/download-helper.ts b/apps/website/src/lib/download-helper.ts
index 7c82c0d72c..0a6b478d63 100644
--- a/apps/website/src/lib/download-helper.ts
+++ b/apps/website/src/lib/download-helper.ts
@@ -1,8 +1,10 @@
+import rootPackageJson from '../../../../package.json';
+
export type Architecture = 'x64' | 'arm64';
export type Platform = 'mac' | 'windows' | 'linux';
-let version = "v0.94.1";
+let version = rootPackageJson.version;
export function buildDesktopDownloadUrl(platform: Platform, format: string, architecture: Architecture): string {
return `https://github.com/TriliumNext/Notes/releases/download/${version}/TriliumNextNotes-${version}-${platform}-${architecture}.${format}`;