The swiss army knife of lossless video/audio editing
link directly to version
Mikael Finstad39d06ee3952f
diff --git a/public/constants.js b/public/constants.jsindex fbc2c81a..9f2d535e 100644--- a/public/constants.js+++ b/public/constants.js@@ -1,11 +1,11 @@const homepage = 'https://mifi.no/losslesscut/';const githubLink = 'https://github.com/mifi/lossless-cut/';-const releasesPage = 'https://github.com/mifi/lossless-cut/releases';+const getReleaseUrl = (version) => `https://github.com/mifi/lossless-cut/releases/tag/v${version}`;const licensesPage = 'https://mifi.no/losslesscut/licenses.txt';module.exports = {homepage,- releasesPage,+ getReleaseUrl,githubLink,licensesPage,};diff --git a/public/menu.js b/public/menu.jsindex e47c44e2..d0f9d26e 100644--- a/public/menu.js+++ b/public/menu.js@@ -4,7 +4,7 @@ const i18n = require('i18next');const { Menu } = electron;const { dialog } = electron;-const { homepage, releasesPage, licensesPage } = require('./constants');+const { homepage, getReleaseUrl, licensesPage } = require('./constants');module.exports = (app, mainWindow, newVersion) => {const menu = [@@ -295,7 +295,7 @@ module.exports = (app, mainWindow, newVersion) => {submenu: [{label: i18n.t('Download {{version}}', { version: newVersion }),- click() { electron.shell.openExternal(releasesPage); },+ click() { electron.shell.openExternal(getReleaseUrl(newVersion)); },},],});