The swiss army knife of lossless video/audio editing
don't show version store build
Mikael Finstade82f83ccbd99
diff --git a/public/electron.js b/public/electron.jsindex 6b6a9d7f..9940824a 100644--- a/public/electron.js+++ b/public/electron.js@@ -41,6 +41,7 @@ let newVersion;const openFiles = (paths) => mainWindow.webContents.send('openFiles', paths);+const isStoreBuild = process.windowsStore || process.mas;// https://github.com/electron/electron/issues/526#issuecomment-563010533function getSizeOptions() {@@ -124,7 +125,7 @@ function createWindow() {}function updateMenu() {- menu(app, mainWindow, newVersion);+ menu({ app, mainWindow, newVersion, isStoreBuild });}function openFilesEventually(paths) {@@ -206,7 +207,7 @@ if (!argv.allowMultipleInstances && !safeRequestSingleInstanceLock({ argv: proceconst enableUpdateCheck = configStore.get('enableUpdateCheck');- if (enableUpdateCheck && !process.windowsStore && !process.mas) {+ if (enableUpdateCheck && !isStoreBuild) {newVersion = await checkNewVersion();// newVersion = '1.2.3';if (newVersion) updateMenu();diff --git a/public/menu.js b/public/menu.jsindex b5a3c3ae..3b56aa0b 100644--- a/public/menu.js+++ b/public/menu.js@@ -9,7 +9,7 @@ const { Menu } = electron;const { homepage, getReleaseUrl, licensesPage } = require('./constants');-module.exports = (app, mainWindow, newVersion) => {+module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => {const menu = [...(process.platform === 'darwin' ? [{ role: 'appMenu' }] : []),@@ -376,15 +376,17 @@ module.exports = (app, mainWindow, newVersion) => {label: t('Report an error'),click() { mainWindow.webContents.send('openSendReportDialog'); },},- {- label: t('Version'),- click() { mainWindow.webContents.send('openAbout'); },- },+ ...(!isStoreBuild ? [+ {+ label: t('Version'),+ click() { mainWindow.webContents.send('openAbout'); },+ },+ ] : []),],},];- if (newVersion) {+ if (!isStoreBuild && newVersion) {menu.push({label: t('New version!'),submenu: [