diff --git a/src/main/index.ts b/src/main/index.ts index 10bfce5..b41b0dd 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -3,7 +3,6 @@ import { join } from 'path'; import ElectronStore from 'electron-store'; import * as electronLocalShortcut from 'electron-localshortcut'; import * as electronRemote from '@electron/remote/main'; -import { release } from 'os'; import { promises } from 'fs'; import { getPlatform } from 'qsu'; import pkg from '../../package.json'; @@ -32,7 +31,6 @@ global.ENV_IS_DEV = !app.isPackaged; global.ENV_OS = CURRENT_OS; global.ENV_IS_WINDOWS = CURRENT_OS === 'Windows'; global.ENV_IS_MAC = CURRENT_OS === 'macOS'; -global.ENV_OS_VERSION = release(); const schema = mainStoreSchema as DeepWriteable; const store = new ElectronStore({ schema }); diff --git a/src/renderer/utils/helper.ts b/src/renderer/utils/helper.ts index a94b231..2e55d16 100644 --- a/src/renderer/utils/helper.ts +++ b/src/renderer/utils/helper.ts @@ -9,8 +9,6 @@ export const goToExtLink = async (ev, link) => { export const getOS = () => getGlobal('ENV_OS'); -export const getOSVersion = () => getGlobal('ENV_OS_VERSION'); - export const getVersionName = () => getGlobal('APP_VERSION_NAME'); export const getRuffleVersion = () => getGlobal('APP_RUFFLE_VERSION_DATE'); @@ -29,7 +27,6 @@ export const isDarkMode = (theme) => { export default { getOS, - getOSVersion, goToExtLink, getVersionName, isDarkMode,