mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	refactor(website/download): read version number from package.json
This commit is contained in:
		| @@ -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}`; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user